Telehealth Architecture · November 23, 2026 · Maryna Poplavska

Epic EHR Integration for Telehealth Video: Launching the Visit, Passing Context, Writing It Back

Epic EHR Integration for Telehealth Video: Launching the Visit, Passing Context, Writing It Back

By Maryna Poplavska, Lead Project Manager · Last updated 19 November 2026

Epic EHR integration for telehealth video means a video visit that opens from inside the clinician’s EHR session with the patient and encounter already known, and that leaves a record of the visit in the chart afterwards. The video is the familiar half. The work is in the launch context, in matching the EHR’s patient and user to your own records, in writing the visit back, and in getting the app approved and switched on at each hospital.

This guide covers clinician-launched visits in Epic, Oracle Health (formerly Cerner) and eClinicalWorks, from each vendor’s developer documentation as we read it on 19 November 2026. It is an engineering reading: confirm the current documentation before you design around it. The mechanics come from HL7 and vendor documents, not from the Martti build described below. We write as a WebRTC team: in our view, the camera, the embedded browser and the hospital network are the parts those documents leave to you.

Key takeaways

  • “Integrate with Epic” covers four depths: a link, a launch with context, a launch plus write-back, and scheduling. Choose per visit type, not per vendor.
  • The standard route to context is SMART’s EHR launch: the EHR passes a one-time launch value and its FHIR endpoint (iss); the patient ID arrives with the access token, and the encounter ID when one is open.
  • Never treat the EHR’s patient or user as your own without a match step, and design for a launch with no encounter.
  • Write-back options differ in maturity and per-site support. Confirm each with the vendor and the hospital first.
  • Every hospital switches your app on separately. Ask the hospital, not a guide, for dates.

Product and delivery readers: start with the path to production and what Trembit has built. Engineers: the launch and what breaks.

What does “integrating telehealth video with Epic” actually mean?

It means deciding how deep the video visit sits in the clinician’s workflow. HL7’s SMART App Launch separates two starting points: in an EHR launch, “a user has established an EHR session and then decides to launch an app”; in a standalone launch, “a user selects an app from outside the EHR”. A clinician starting a visit from the patient’s chart is the first case. A join link pasted into the chart is neither: it carries no context.

Four depths of EHR integration for a telehealth video visit, from a plain link to scheduling sync

In our view, scope it as four depths, each adding to the one before.

Depth The visit starts from What the EHR gives your app What you must build What can go wrong
1. Link-out A join link opened from the chart Nothing Your own login, patient lookup and visit record The wrong patient’s visit opens; nothing lands in the chart
2. Launch with context A button in the clinician’s EHR session (SMART EHR launch) The patient, the encounter if a visit is open, the user if requested A launch endpoint, authorisation and a match step No encounter in context; a hospital endpoint or allowlist entry missing
3. Plus write-back As depth 2 Permission to create specific records A write path the hospital accepts, with retries and a visible failure state A silent failure, or a write to the wrong encounter
4. Plus scheduling A visit list built from the EHR’s appointments Appointment data Reading appointments, and writing them if you book The visit list and the schedule drift apart

In our view, depths 2 to 4 add work at every hospital, not only in your code.

How does a video visit launch from inside the EHR?

Through SMART’s EHR launch, which Epic and Oracle Health both document. The steps follow HL7’s SMART App Launch 2.2.0, with Epic’s wording where it adds detail.

SMART EHR launch for a video visit: launch value, authorisation with PKCE, code exchange, then context and id_token
  1. The clinician clicks the visit button. The EHR opens your registered launch URL, in a new browser instance or an iframe, with two parameters: iss, which “Identifies the EHR’s FHIR endpoint”, and launch, an “Opaque identifier for this specific launch and any EHR context associated with it.” Epic’s OAuth 2.0 Specification adds that the launch token “is one-time use and will be exchanged for the authorization code”.
  2. Your app checks iss. Epic: “Your application should create an allowlist of iss values (AKA resource servers) to protect against phishing attacks.” The app then reads .well-known/smart-configuration to find the authorisation and token endpoints.
  3. Your app requests authorisation, echoing the launch value, setting aud to the iss value, sending an unpredictable state and a PKCE code_challenge, and requesting the launch scope, which the SMART launch specification describes as “a launch value indicating that the app wants to receive already-established launch context details from the EHR”. launch/patient and launch/encounter can be added as hints, but “The EHR MAY ignore these hints”. openid and fhirUser identify the clinician. SMART requires state and PKCE (“All SMART apps SHALL support Proof Key for Code Exchange (PKCE)”); Epic lists both as optional and has required aud since its May 2023 version. In our view, follow the stricter rule. The EHR then redirects back with an authorisation code, which your app exchanges at the token endpoint.
  4. The token response carries the context. In SMART’s words, “Launch context parameters come alongside the access token”: the patient ID, the encounter “if in context at time of launch” (Epic), display hints such as need_patient_banner and smart_style_url, and an id_token for the clinician.
  5. Your app opens the visit for that patient and encounter.

How do you map the EHR’s patient and user to your visit and your account?

By taking context only from the token response, never the launch URL, and matching it to your records explicitly. In our reading of the SMART and Epic documents, five rules follow.

  • Store EHR IDs with their source. Epic warns that FHIR IDs and MRNs “are not globally unique” and that “These IDs are only unique when stored off with an identifier-system”. In our view, key each visit to the hospital plus the encounter ID, so a second launch from the same encounter reopens the visit rather than duplicating it.
  • Design for “no encounter”. Epic’s context tokens “are not always returned, and this is controlled by the specific workflow your app is used in”. In our view, a launch with a patient but no encounter should open a “choose or create the visit” step, never a guess.
  • Validate the clinician’s identity token. SMART says the id_token “must be validated according to the OIDC specification”. Key the clinician on that token’s iss plus sub; Epic notes that this iss is not the one your app received at launch. In our view, never key on an email address.
  • Decide how the clinician becomes your user. Epic describes how to “create an account on-the-fly for anyone that can launch your app from Epic”. In our view, on-the-fly accounts make every launch work; pre-provisioned accounts give the hospital control, at the cost of a failed first launch for anyone not yet linked.
  • Honour the display hints. need_patient_banner says whether “a patient banner is required”; smart_style_url points to the EHR’s style parameters. In our view, showing a banner means reading the patient’s details, so request the matching scope deliberately.

The patient joins by a different path: a link, or the patient portal. In our view, the token response shows which patient the EHR launched, not who is on the call, so the patient’s joining flow needs its own identity check.

What should you write back after the visit, and how?

In our view, write the smallest record the hospital asks for, through a path its EHR accepts for writes, with every failure visible to a person. FHIR offers candidates; it does not decide what a given EHR or hospital accepts.

Candidate What FHIR R4 says it is R4 status Typical use after a video visit (in our view)
DocumentReference “used to index a document, clinical note, and other binary objects” Maturity Level 3, Trial Use A visit summary or note
Encounter “An interaction between a patient and healthcare provider(s)” for care or assessment Maturity Level 2, Trial Use The visit’s status, times and participants; confirm whether your path matches an existing encounter or creates one
Communication “A record of information transmitted from a sender to a receiver” Maturity Level 2, Trial Use A notification about the visit, not the visit record

FHIR draws that line itself: “The phone calls involving the Patient should be handled using Encounter.”

Epic’s Developer Testing Guide notes that “a handful of resources have Create” and says to “check that the action you want is available before planning around it.” Each hospital supplies the “clinical note types that you need to map” (Epic). And Oracle Health’s open sandbox endpoint is read-only: “Writes are available only when using authentication.”

Some hospitals will ask for an HL7 v2 interface instead; Epic’s own integration guides use MDM^T02 for scanned documents, ORU^R01 for results and SIU for scheduling. Epic warns that an acknowledgement “does not necessarily indicate that the information in your message filed correctly”, and that “you must always consider how you are resolving this encounter – either by matching or creation on the fly”.

Request only the access the write needs, in the APIs you register and the SMART scopes you request. At Epic, “your app is authorized to use all the APIs on your client ID”, and hospital reviewers “may delay or reject apps that request more access than they clearly need.”

Our design reading:

  • Queue and retry writes; a timeout means “unknown”, so check whether the record landed before resending.
  • Route a failed write to a person as a task, not only a log line. Epic asks that “Every significant action leaves an observable trail (logs, audit records, or UI confirmation).”
  • Send a summary, not media, unless the hospital decides otherwise.

How do appointments and scheduling relate to the visit?

Scheduling is the fourth integration depth, and reading the schedule is a different job from writing to it. Epic can pass an appointment at launch when the visit “began as a scheduled appointment”; for upcoming visits, its guide says to “use the Appointment resource to retrieve information on upcoming appointments”, and its integration guides note that SIU HL7 v2 interfaces “can push appointment information to your app”. In our view, ask each hospital how your app learns of reschedules and cancellations, and when the encounter is created. If your product also books visits, see our checks for an agent that writes to the schedule.

How do Epic, Oracle Health and eClinicalWorks differ for this?

Same standard family; different portals, test environments and enabling steps. The table holds only what each vendor’s own pages state, as we read them on 19 November 2026. The eClinicalWorks column is thin because its developer portal did not load for us; ask the vendor.

Epic Oracle Health (Cerner Millennium) eClinicalWorks
Portal and registration Epic on FHIR: registering “creates an app record in the Epic database and assigns the app production and non-production client IDs” code Console, which “requires a CernerCare account, which you can create upon initial use” Provider-facing apps, “including SMART on FHIR and bulk/backend service applications”, use the eClinicalWorks FHIR Developer Portal
Launch from inside the EHR The EHR “appends a launch token and the FHIR server’s endpoint URL (ISS parameter) in the query string” “In the EHR application launch flow, the end user opens a SMART application from the EHR.” Implements SMART App Launch 1.0.0 and 2.0.0 Not stated on the page we read
FHIR versions Sandbox endpoints for R4, STU3 and DSTU2 “Develop your application for R4 as DSTU 2 is being retired.” Not stated on the page we read
Sandbox One shared sandbox, synthetic data only; data you wrote “from the prior week will be erased” each week An open read-only endpoint; a secure sandbox once registered Not stated on the page we read
Who switches it on at a hospital The hospital signs the open.epic API Subscription Agreement once, downloads your client record, and its IT team builds the launch “Oracle Health customers may then enable client applications to access their protected resources.” Not stated on the page we read
Where the app appears Embedded in Hyperspace or in a browser alongside it; mobile apps “have the same support for SMART on FHIR as their desktop platform counterparts” From PowerChart, both “the PowerChart table of contents (TOC) and an MPages component embedded in PowerChart” Not stated on the page we read
Patient-facing apps Can launch from MyChart Not stated on the pages we read A separate healow FHIR Developer Portal, “including scheduling platforms and patient data access”

In our view, the table argues for one adapter per EHR and configuration per hospital. Oracle Health’s authorisation documentation says endpoint URLs “must be discovered (rather than hard-coded into your client application)”, and Epic says “each Epic community member has their own authorization and servers”. The tenancy side is in our guide to multi-tenant telehealth architecture.

What is the path from sandbox to production, and who approves what?

For Epic, six steps lead from app registration to cutover at each hospital, across three organisations: you, the hospital and Epic. We publish no durations or fees: no primary source we read states an approval time, and it varies by hospital.

  1. Register the app and get production and non-production client IDs.
  2. Test in the sandbox with synthetic data and Epic’s launch simulators.
  3. Mark it Ready for Production. Until then, “The app cannot be used in any community member environments, either production or non-production”. Then: “Neither you nor Epic can make updates to an app once it has been marked Ready for Production. With the exception of adding redirect URIs and modifying your JWK Set URLs, all technical changes will require you to build a new app.” The app’s scope is fixed at this step, so agree it with your product and sales leads first.
  4. The hospital requests your app, signing the open.epic API Subscription Agreement (once per organisation) and downloading your client record with the client ID you give it.
  5. Kick-off and hospital build. Epic recommends a kick-off with the developer, the hospital and Epic. The hospital configures user security, Interconnect, its browser allowlist and the launch button, then both sides test end to end; “you need to activate for Non-Production before you can activate for Production.”
  6. Training and cutover, site by site.

In our view, plan approval as a dated workstream per hospital, with the hospital’s Epic team setting the dates; Epic notes that requirements “may differ significantly” between two sites on the same version. The Oracle Health and eClinicalWorks pages we read describe no such sequence. Passing these steps is not an endorsement: Epic “does not endorse, certify, or verify the integrity, safety, performance, or practices of the developers who use Epic on FHIR or their software.”

What breaks in a video-in-EHR integration?

Three areas break: the launch and its context, media inside someone else’s browser, and write-back. In our view, the media items are the ones a launch-only checklist skips.

Failure points in a video visit launched from an EHR, from launch context to media permissions to write-back

Launch and context

  • A replayed launch or redirect. The launch token “is one-time use”, and RFC 6749 says “The client MUST NOT use the authorization code more than once”, so reusing a consumed launch token or code fails. In our view, complete the exchange once, redirect to a clean, tab-specific URL and let a reload reopen the visit from your server-side session.
  • The chart changes during the visit. SMART: “if the patient chart is changed during the session, the application will not inherently be updated.” Epic tells embedded apps to “remember what patient is open in each tab” with “a dedicated URL parameter representing the tab”, and notes that “Epic’s Hyperspace browser does not support segregated session storage.” In our view, key the browser session to the launch that created it, so a second launch cannot overwrite the first. A second launch for the same encounter reattaches to the same visit; one for another patient during a live call opens separately and never repoints the call.
  • Fewer scopes than requested. SMART says the granted scope “can be different from the scopes requested by the app.” Read the granted scope in the token response and degrade gracefully, rather than failing at the first write.

Media inside someone else’s browser

  • Camera and microphone blocked in a frame. The W3C Permissions Policy draft gives the example: “Camera and microphone are disabled by default in all cross-origin frames.” The embedding page delegates them with the iframe allow attribute, within its own Permissions Policy, and inside an EHR that page is the EHR’s, so delegation is a per-site request your code cannot grant. Epic’s Hyperdrive “includes an embedded browser based on Chromium”; whether it then allows capture is the host application’s decision, and the Epic documents we read are silent on it. In our view, test it in each hospital’s non-production environment.
  • Your own session inside a frame. Your pages must allow framing by the hospital’s Hyperspace web server (CSP frame-ancestors); a session cookie in a cross-site frame needs SameSite=None; Secure, and a browser that blocks third-party cookies still will not send it (MDN notes some browsers now block them by default); Chromium also partitions third-party storage by top-level site, so do not rely on shared local storage. If your app “cannot support embedding in an iframe”, Epic’s fallback is a floating window, then the default browser. In our view, test the first launch in the real embedded client.
  • A virtual desktop in the way. Epic lists “Launched in an external browser running on Citrix alongside Hyperspace” as a display option. In our view, depending on the Citrix configuration, the browser and its peer connection may run on the virtual desktop, so test camera redirection, ICE and TURN from there, unless the site offloads media to the clinician’s device (Citrix documents this for Microsoft Teams).
  • Domains missing from the allowlist. Epic’s troubleshooting guide links an endless launch spinner to login domains missing from the “Epic Browser Allowlist”, and Epic asks developers to “precisely document the domains that your web app needs to access”: page navigations, scripts, cookies and static files. In our view, your signalling hosts belong on that list too.
  • Hospital firewalls can block the paths WebRTC prefers. In our view, the hospital’s network team needs to allow outbound traffic to your signalling, STUN/TURN and SFU endpoints on their UDP and TCP ports, and you should test both direct paths and TURN relay fallback under the real policy; see why hospital networks break WebRTC.

Write-back

  • A silent failure, or an interface acknowledgement mistaken for successful filing. Sandbox data you wrote is erased weekly, so re-seed your test records before re-running a write-back test.
  • The token expires before the write. Epic says refresh tokens “are not typically needed for embedded (SMART on FHIR) launches”, but check expires_in in the token response against a long visit with the note written at the end: a refresh token needs the online_access or offline_access scope, and the site’s server decides whether to issue one.

The media items above are the kind of problem our WebRTC engineers debug in production.

What has Trembit built toward this, and what have we not?

For Martti, Equiti Health’s video medical-interpretation platform, Trembit engineered the integration that lets a session start with one click from Epic (Hyperspace, Hyperdrive, Haiku, Canto and Rover), Oracle Cerner and eClinicalWorks, with automatic language detection and session write-back to the record, as described on the Martti case page.

We have not published a case study of a SMART on FHIR app or of a provider-to-patient telehealth visit launched from Epic. Martti connects a video interpreting session to the clinician’s EHR workflow; the mechanisms described in this guide come from the HL7 and vendor documents cited, not from the Martti build.

How should you scope an Epic-connected video build?

Settle seven questions before anyone estimates.

  1. Which EHRs and client surfaces, for your first hospitals.
  2. Which depth per visit type: link-out, launch with context, plus write-back, or plus scheduling.
  3. What is written back, in which form, and who at the hospital decides.
  4. Who approves at each hospital, with a named owner on each side (on yours, the person who talks to the hospital) and the hospital’s dates.
  5. How you test before you have a hospital environment, and when you get theirs.
  6. Who owns per-hospital configuration: endpoints, client IDs, allowlisted domains, note types.
  7. What the clinician does when the launch fails or the camera is blocked, agreed in writing.

Choosing the video platform itself? See white-label telehealth vs custom build.

FAQ

Do I need SMART on FHIR to launch a video visit from Epic?

To launch with patient and encounter context, SMART’s EHR launch is the standard route, and Epic calls SMART on FHIR “the recommended practice for app integrations that launch from Epic.” A plain link needs no SMART, but carries no context.

Can my app write the visit note back into the chart?

It depends on whether the vendor supports creating the resource you need, whether the hospital licenses and configures it, and what the hospital wants in the record. Epic’s industry-standard and public APIs are “licensed directly to healthcare organizations (not to app developers)”.

How long does Epic approval take?

We publish no figure: no primary source we read states one, and each hospital reviews, configures and activates your app separately. Ask the hospital’s Epic team for its dates.

Is it the same for Oracle Cerner and eClinicalWorks?

Same standard family, different portals, test environments and enabling steps: apps register on Epic on FHIR, in Oracle Health’s code Console, and, for provider-facing eClinicalWorks apps, on the eClinicalWorks FHIR Developer Portal.

Do I still need HL7 v2 or an interface engine?

Not for the launch. But Epic calls HL7 v2 “By far the most popular standard used by Epic customers and the healthcare industry in general”, and says interfaces are “more commonly” routed through an interface engine. If the hospital wants admissions, results or documents as v2 messages, that is a separate integration at each site.

Planning a video visit that has to launch from Epic, Oracle Health or eClinicalWorks? Book a free 30-minute call with an engineer from our WebRTC practice. Bring your target EHRs, your visit types (clinician-launched, patient-launched, interpreter or specialist) and what must land in the chart. We’ll mark which integration depth each visit type needs and where the video could fail once it opens inside the clinician’s EHR window. No deck, no pitch.

Maryna Poplavska
Written by Maryna Poplavska Project Manager & Business Analyst

Related Articles

Ready to start?

Let Us Work Together

Tell us about your project and we'll get back within 24 hours.

Get in Touch