Provisions a third-party video-visit platform and provider staffing into Epic Cadence telehealth scheduling and Hyperdrive encounter workflows, so a booked video visit gets a working join link on both the patient MyChart side and the clinician side without manual copy-paste.
Tags: healthcare, epic, telehealth, scheduling, fhir, hl7v2, smart-on-fhir, system-api
Telehealth Providers
Objective: A visit booked in Epic Cadence has no meeting link, the video vendor knows nothing about the appointment, and staff hand-copy URLs between systems. This blueprint wires the vendor into Epic's telehealth scheduling and encounter flow so booking a video visit type auto-provisions a vendor meeting, writes the patient join link into MyChart and the clinician launch link into Hyperdrive, keeps both sides in sync on reschedule or cancel, and reconciles provider rosters. Done looks like: a patient books online, both parties click one link at the appointed time, and the encounter closes cleanly with no manual link handling. This accelerator packages the Telehealth Providers Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Video Vendor (System API) — creates, updates, and cancels the video-vendor meeting and ingests signed join/end webhooks ·
POST /meetings, PATCH /meetings/{id}, DELETE /meetings/{id}, POST /webhooks/meeting-events
- Cadence Scheduling (System API) — receives the Cadence SIU scheduling trigger and filters to telehealth visit types ·
MLLP LISTEN SIU^S12, MLLP LISTEN SIU^S14, MLLP LISTEN SIU^S15, SUBSCRIBE FHIR Appointment
- Visit Orchestrator (Process API) — provisions the vendor meeting on booking, keeps both sides in sync on reschedule/cancel, and reconciles the tele-provider roster on NPI ·
POST /visits/provision, PUT /visits/{csn}, DELETE /visits/{csn}, POST /roster/reconcile
- Epic Telehealth (System API) — writes the patient MyChart join link and the Hyperdrive clinician SMART launch link back to the appointment and reads Practitioner for roster reconciliation ·
POST /Telehealth/links, GET Practitioner, GET PractitionerRole
- link-idempotency (Object Store) — holds the vendor meetingId keyed on Appointment CSN so replayed SIU triggers and updates resolve one meeting ·
GET /{csn}, PUT /{csn}, DELETE /{csn}
- Dead Letter Queue (target) — captures provisioning failures keyed on Appointment CSN for replay after vendor recovery ·
PUBLISH failure, REPLAY /{csn}
Prerequisites
- Epic Cadence licensed with telehealth visit types configured, and the Telehealth Video web service enabled in the customer's Epic build
- Video-visit vendor account with a REST API for meeting create/update/cancel and per-participant join URLs, plus webhook callbacks for join and end events
- App registered on Epic on FHIR with Backend OAuth 2.0 client credentials scoped to Appointment, Schedule, Slot, Encounter, and Practitioner
- Bridges interface engine access for SIU (scheduling) inbound feed, or FHIR Appointment subscription enabled as the trigger source
- Anypoint Platform environment with CloudHub 2.0, VM/Anypoint MQ queues for async provisioning, and a configured Object Store v2 for link idempotency keys
- Provider identity mapping agreed between the vendor roster and Epic Practitioner/SER records, keyed on NPI
1. Epic interfaces and standards
This accelerator implements the Telehealth Providers Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- Epic Cadence telehealth visit types and the Telehealth Video web service for writing join links
- FHIR R4 Appointment, Schedule, Slot, and Encounter resources for the visit lifecycle
- FHIR R4 Practitioner and PractitionerRole for tele-provider roster reconciliation
- HL7v2 SIU messages (S12 new, S14 modify, S15 cancel) as the scheduling trigger via Bridges
- SMART on FHIR EHR launch so the clinician opens the vendor call in-context from Hyperdrive
- MyChart video-visit link surfacing for the patient join URL
Architecture
2. Business requirements
- Booking a telehealth visit type must provision a vendor meeting and return two distinct join links: one for the patient, one for the provider.
- Reschedule and cancel must propagate to the vendor within seconds, not overnight, so patients never click a stale link.
- The clinician launches the call from inside the Hyperdrive encounter, never from a separately-logged-in vendor portal.
- The tele-provider roster in the vendor must match Epic Practitioner records so the right clinician is credentialed for the right visit.
- No PHI beyond the minimum needed to name and route the meeting leaves Epic for the vendor.
3. Ingestion and scheduling triggers
- Trigger provisioning off SIU^S12 for new bookings, S14 for modifications, and S15 for cancellations, mapped to vendor create, update, and cancel.
- Prefer a FHIR Appointment subscription where the customer supports it, since it carries the FHIR Appointment.id you will need to write links back.
- Filter to telehealth visit types only, keyed on the Cadence visit-type identifier, so in-person appointments never hit the vendor.
- Derive the vendor meeting start and duration from Appointment.start and Appointment.minutesDuration, not from free-text.
- Carry the Epic Appointment CSN and FHIR id as the idempotency key so a replayed SIU message never creates a duplicate meeting.
4. Link provisioning and write-back
- Call the vendor create-meeting API, then write the patient join URL and clinician launch URL back through the Telehealth Video web service against the same appointment.
- Store the vendor meetingId keyed on Appointment CSN in Object Store v2 so update and cancel resolve the right meeting.
- Build the clinician launch as a SMART on FHIR EHR-launch URL so Hyperdrive opens the call with encounter context already resolved.
- Surface the patient URL through MyChart so it appears in the visit reminder and the pre-visit checklist.
- Write the links only after the vendor confirms creation, so Epic never shows a link that resolves to nothing.
5. Provider roster reconciliation
- Reconcile tele-providers nightly by pulling Practitioner and PractitionerRole and matching to the vendor roster on NPI.
- Flag providers present in the vendor but absent or inactive in Epic, which is the mismatch that silently routes visits to an uncredentialed host.
- Push add and deactivate deltas to the vendor rather than a full reload, to keep the audit trail clean.
- Treat NPI as the join key and never fall back to name matching, which collides on common names.
- Hold roster changes in a review queue when a delta would deactivate a provider with visits booked in the next 48 hours.
6. Error handling and operations
- Route any provisioning failure to a dead-letter queue keyed on Appointment CSN, and replay after the vendor recovers rather than dropping the visit.
- Alert on the absence of an expected link write within N minutes of a booking, which is the failure mode dashboards miss most often.
- Reconcile daily: every future telehealth appointment must have exactly one live vendor meeting and one written link pair.
- Carry a correlation ID from the SIU trigger through the vendor call to the Epic write-back so support can trace one visit end to end.
- Back off and retry vendor 429s with jitter, and never retry a 4xx meeting-create as if it were transient.
7. Security and compliance
- Encrypt PHI in transit and at rest.
- Audit-log every access to and modification of patient data, and carry a correlation ID end to end.
- Enforce minimum-necessary access for integration operators and support users.
- Send the vendor only patient display name, appointment time, and a de-identified meeting reference; keep MRN and SSN inside Epic.
- Generate per-participant single-use join URLs with short expiry so a forwarded link cannot admit an uninvited party.
- Store vendor API credentials and webhook signing secrets in Anypoint Secrets Manager, and verify the HMAC signature on every inbound vendor webhook before acting on it.
- Log meeting join and end events against the Epic Encounter for audit, but never persist call recordings or media in the integration layer.
Sample payload — FHIR Appointment (telehealth visit) triggering vendor provisioning
{
"resourceType": "Appointment",
"id": "eSlot-847213",
"status": "booked",
"appointmentType": {
"coding": [
{
"system": "urn:oid:1.2.840.114350.1.13.861.1.7.4.686980.1000",
"code": "VIDEO-VISIT",
"display": "Telehealth Video Visit"
}
]
},
"start": "2026-08-25T15:00:00Z",
"end": "2026-08-25T15:20:00Z",
"minutesDuration": 20,
"participant": [
{
"actor": { "reference": "Patient/ePt-33091", "display": "Jordan Rivera" },
"status": "accepted"
},
{
"actor": { "reference": "Practitioner/ePr-5521", "display": "Dr. A. Osei" },
"status": "accepted"
}
],
"identifier": [
{ "system": "urn:oid:1.2.840.114350.1.13.861.1.7.3.698084.8", "value": "CSN-990241785" }
]
}
Testing and validation
- Book, reschedule, and cancel a telehealth visit in a Cadence test environment and assert the vendor meeting mirrors each state within the alert window
- Replay the same SIU S12 twice and confirm Object Store idempotency yields one vendor meeting, not two
- MUnit the DataWeave that maps Appointment.appointmentType to the vendor create payload, including the non-telehealth reject path
- Fire a signed and an unsigned vendor webhook and confirm the unsigned one is rejected before any Encounter write
- Run the nightly roster reconciliation against a fixture with a name-collision NPI mismatch and assert it matches on NPI only
- Force a vendor 500 and a vendor 400 and confirm the 500 dead-letters and replays while the 400 alerts without retry
Phased rollout
Phase 1 — Connect
- Register the Backend OAuth app on Epic on FHIR and validate token exchange against Appointment and Encounter scopes.
- Stand up the vendor and scheduling System APIs read-only and confirm SIU or FHIR Appointment triggers arrive with correct visit-type filtering.
Phase 2 — Map and test
- Build the Process API create, update, cancel flows and write links to a non-production Epic with a pilot visit type.
- Run idempotency, webhook-signature, and reconciliation MUnit suites and shake out the dead-letter replay path.
Phase 3 — Production
- Enable for one clinic and one telehealth visit type, monitoring the missing-link alert daily before widening.
- Turn on nightly provider roster reconciliation and expand visit types once link-write success holds above the SLA.
Success metrics
- Link-write success rate: booked telehealth visits with a live patient and clinician link pair, target above 99.5 percent
- Provisioning latency: median seconds from booking to written link, and the 95th percentile under the alert window
- Reschedule and cancel propagation lag from SIU event to vendor confirmation
- Roster drift: count of vendor providers not matched to an active Epic Practitioner, target zero
- Dead-letter volume and mean time to replay for failed provisioning attempts
Troubleshooting
- Patient sees a video link that opens an empty or expired meeting. — Likely cause: The link was written to Epic before the vendor confirmed meeting creation, or the join URL expired before the visit. Fix: Write links only after a 2xx create response, and provision short-lived per-participant URLs refreshed close to visit start rather than at booking.
- Rescheduling a visit in Cadence leaves the old vendor meeting live. — Likely cause: The S14 modify was not mapped to a vendor update, or the meetingId lookup missed because the idempotency key changed. Fix: Map S14 explicitly to vendor update and key the Object Store lookup on the stable Appointment CSN, not the slot id.
- A visit routes to a provider the vendor cannot host. — Likely cause: Roster reconciliation matched on provider name and hit a collision, or a deactivation delta was never pushed. Fix: Reconcile on NPI only and push add/deactivate deltas nightly, holding deltas that would deactivate a provider with visits inside 48 hours.
- Duplicate vendor meetings appear for a single booking. — Likely cause: An SIU message was redelivered and the flow created a new meeting each time. Fix: Enforce idempotency in Object Store v2 keyed on Appointment CSN so a replayed trigger resolves to the existing meeting.
Deliverable: A deployable Anypoint project with System APIs for the telehealth vendor, Epic Cadence scheduling, and the Epic Telehealth Video web service; a Process API that provisions video links onto SIU appointments and joins encounters; DataWeave transforms, a launch-URL orchestration, error-handling and dead-letter flows, MUnit suites, and a phased rollout runbook.