A MuleSoft blueprint connecting a health plan to Epic provider organizations for panel roster/attribution exchange and Da Vinci clinical workflows (CRD, DTR, PAS, Member Match), landing coverage and prior-auth into Hyperdrive without one-off point-to-point builds.
Tags: healthcare, epic, payer, da-vinci, fhir, us-core, prior-authorization, api-led
Payer Connections to Epic Providers
Objective: A payer and an Epic provider organization need a durable two-way link: the plan pushes attributed member panels and roster changes so schedulers and care teams work the right list, and clinicians hit real-time coverage discovery, documentation requirements, and prior-authorization from inside the encounter instead of a portal in another tab. Today this is fax, spreadsheets, and payer portals — attribution drifts, prior-auth is a phone call, and denials arrive after the service. Done looks like rosters reconciled to Epic Coverage and patient panels with a verifiable match rate, and CRD/DTR/PAS firing at order and scheduling time so the answer lands in Hyperdrive before the patient leaves. This accelerator packages the Payer Connections to Epic Providers Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Roster and Auth (System API) — ingests the payer attribution and UM feeds and normalizes rosters to FHIR Group and Coverage ·
POST /roster, PUT /Coverage, GET /Group/{id}
- Member Match (Process API) — resolves payer members to Epic patients via $member-match and correlates CRD, DTR, and PAS under one correlation ID ·
POST /$member-match, GET /correlation/{id}
- Da Vinci (Experience API) — exposes CRD CDS Hooks, the DTR SMART app, and PAS submit/inquire to Epic ·
POST /cds-services/crd, POST /Claim/$submit, POST /Claim/$inquire, POST /QuestionnaireResponse
- Member Match Crosswalk (Object Store) — caches payer memberId to Epic FHIR id with match confidence and method ·
GET /{memberId}, PUT /{memberId}, DELETE /{memberId}
- Bridges HL7v2 fallback (System API) — syncs demographics from the Bridges ADT feed for fallback member matching ·
MLLP LISTEN ADT^A08, MLLP LISTEN DFT
- Dead Letter Queue (target) — holds failed roster rows and rejected PAS submissions keyed by correlation ID for replay ·
PUBLISH dlq, REPLAY /{correlationId}
Prerequisites
- Epic on FHIR R4 and Payer Platform enabled with an OAuth 2.0 backend-services client (client-credentials, JWT assertion) registered for the payer app in the provider App Orchard listing
- Da Vinci support confirmed on the Epic build: Coverage Requirements Discovery via CDS Hooks order-select and order-sign, DTR SMART app, and PAS FHIR endpoints
- Interconnect / Bridges available for HL7v2 fallback and a defined ADT feed for demographic reconciliation
- Payer source systems reachable: enrollment/eligibility, attribution engine, and the utilization-management (auth) system with FHIR or X12 278 interfaces
- Anypoint Platform with VPC/VPN or Anypoint Connectivity to both the payer network and the Epic Interconnect endpoint, plus an Object Store v2 or database for the member-match crosswalk
- Signed data-use/trading-partner agreement and Carequality or directed-exchange trust framework in place for clinical data flow
1. Epic interfaces and standards
This accelerator implements the Payer Connections to Epic 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.
- Da Vinci CRD via CDS Hooks (order-select, order-sign, appointment-book) returning coverage cards to Hyperdrive
- Da Vinci DTR SMART on FHIR app with CQL/Questionnaire and QuestionnaireResponse
- Da Vinci PAS Claim $submit and $inquire (mapped from X12 278) plus PAS Bundle
- FHIR R4 Coverage, Patient, Group, and $member-match operation for attribution and roster reconciliation
- Bridges HL7v2 ADT for demographic sync and DFT fallback
Architecture
2. Business requirements
- Deliver attributed panels to the provider as FHIR Group and Coverage so schedulers and care managers work the plan's list, not a stale spreadsheet.
- Reconcile every roster member to an Epic Patient before writing Coverage; an unmatched member is a data-quality event, not a silent drop.
- Fire coverage discovery at order and scheduling time so the clinician sees network, docs-needed, and auth status inside the encounter.
- Return a prior-authorization determination or pended status to the ordering workflow, with the auth number persisted for downstream claims.
- Keep roster and clinical exchange as separate flows with separate SLAs: roster is batch-reconcilable, CRD/PAS is interactive and latency-bound.
3. Roster and attribution ingestion
- Ingest the payer attribution feed on the Roster System API and normalize to FHIR Group members plus Coverage in DataWeave.
- Treat roster as a full-state or delta contract explicitly; a delta with no matching prior state is an error, not an add.
- Stamp every member row with the payer memberId, plan, and effective/termination dates so Coverage periods are exact.
- Write Coverage with a stable identifier keyed on payer subscriberId so re-runs update rather than duplicate.
- Emit an attribution-add and attribution-remove event per member so the provider panel stays in sync on term-outs.
4. Member matching and normalization
- Resolve payer members to Epic patients via FHIR $member-match before any clinical write, and cache the crosswalk keyed on payer memberId to Epic FHIR id.
- Fall back to demographic matching from the Bridges ADT feed only when $member-match returns no single high-confidence result.
- Never auto-create a patient from the payer feed; route no-match and multi-match to a human reconciliation queue.
- Normalize plan and network codes to a shared value set so CRD cards and Coverage read consistently across payers.
- Record match confidence and method on the crosswalk so a later false-match can be audited and reversed.
5. Da Vinci orchestration (CRD, DTR, PAS)
- Expose CRD as a CDS Hooks service; on order-select and order-sign, look up coverage and return cards with docs-needed, prior-auth-required, and alternative flags.
- Launch DTR as a SMART app that pulls the CQL/Questionnaire, prefills from Epic FHIR reads, and returns a QuestionnaireResponse to the payer.
- Submit prior-auth via PAS Claim $submit, mapping the PAS Bundle to and from X12 278 for UM systems that speak EDI.
- Correlate CRD, DTR, and PAS for one order under a single correlation ID so a pended auth can be inquired and resolved later.
- Persist the returned auth number and status back to the provider so it flows onto the eventual claim, closing the CRD-to-claim loop.
6. Error handling and operations
- Route failed roster rows and rejected PAS submissions to a dead-letter queue keyed by correlation ID, not a generic error log.
- Alert on the absence of an expected roster file, which is the failure mode dashboards miss most often.
- Time-box CDS Hooks responses; a slow CRD card that blocks signing is worse than a card that says coverage-unknown.
- Reconcile the member-match crosswalk on a schedule and flag members whose Coverage lapsed but panel membership did not.
- Track PAS pended authorizations and auto-fire $inquire so determinations return without the clinician re-checking a portal.
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.
- Scope the Epic OAuth backend client to only the FHIR resources the payer flows require (Coverage, Patient, Group, Claim), and rotate the JWT signing key on a fixed cadence.
- Enforce the trading-partner agreement in the API layer: reject roster rows for members not attributed to this provider TIN, preventing cross-payer or cross-provider data bleed.
- Sign and verify CDS Hooks requests so a coverage card cannot be spoofed into the clinician's decision surface.
- Segregate DTR QuestionnaireResponse and PAS clinical attachments in transit and at rest, since they carry the most sensitive documentation in the flow.
Sample payload — CRD CDS Hooks order-select request from Hyperdrive
{
"hookInstance": "d1f2a3b4-5c6d-7e8f-9012-abcdef012345",
"hook": "order-select",
"fhirServer": "https://epic.example.org/api/FHIR/R4",
"context": {
"userId": "Practitioner/e8Kf2",
"patientId": "eXyZ9AbC",
"encounterId": "eEnc4421",
"selections": ["ServiceRequest/sr-mri-lumbar-1"],
"draftOrders": {
"resourceType": "Bundle",
"type": "collection",
"entry": [{
"resource": {
"resourceType": "ServiceRequest",
"id": "sr-mri-lumbar-1",
"status": "draft",
"intent": "order",
"code": {"coding": [{"system": "http://www.ama-assn.org/go/cpt", "code": "72148", "display": "MRI lumbar spine without contrast"}]},
"subject": {"reference": "Patient/eXyZ9AbC"}
}
}]
}
},
"prefetch": {
"coverage": {
"resourceType": "Coverage",
"status": "active",
"subscriberId": "ZQW1234567",
"payor": [{"identifier": {"value": "PAYER-0042"}}]
}
}
}
Testing and validation
- Validate roster ingestion with a full-state file then a delta, asserting Coverage periods and term-outs land correctly and no duplicate Coverage is written on re-run.
- Test member-match against golden records covering exact, demographic-only, no-match, and multi-match cases, asserting the human queue receives ambiguous ones.
- Fire CRD order-select and order-sign hooks and assert cards return docs-needed and prior-auth-required flags within the latency budget.
- Drive DTR end to end: launch the SMART app, prefill from FHIR reads, submit a QuestionnaireResponse, and confirm the payer accepts it.
- Submit PAS Claim submit for approved, pended, and denied paths, and verify inquire resolves a pended auth to a final determination.
- Run the X12 278 to PAS Bundle mapping against real UM payloads and assert round-trip fidelity of auth number and status.
Phased rollout
Phase 1 — Connect
- Register and scope the Epic OAuth backend client; validate FHIR reads for Coverage, Patient, and Group against the provider sandbox.
- Establish network connectivity to Epic Interconnect and the payer enrollment/attribution/UM systems, and stand up the member-match crosswalk store.
Phase 2 — Map and test
- Build and unit-test DataWeave mappings to US Core and Da Vinci profiles and the X12 278 to PAS Bundle transform.
- Run member-match, roster reconciliation, and CRD/DTR/PAS flows end to end in the Epic sandbox with the golden-record test set.
Phase 3 — Production
- Pilot with one provider TIN and one plan; monitor match rate, CRD latency, and DLQ volume before widening.
- Enable full roster cadence and interactive CRD/PAS for production users, with the reconciliation job and pended-auth inquire loop running.
Success metrics
- Member-match rate and unresolved-queue backlog
- CRD CDS Hooks p95 response latency against the signing budget
- Prior-auth turnaround: submit-to-determination time and auto-approval rate
- Roster reconciliation error rate and missing-file alerts
- PAS pended-authorization aging and inquire resolution rate
Troubleshooting
- CRD cards never appear in Hyperdrive at order-select. — Likely cause: The CDS Hooks service is not registered to the hook Epic actually fires, or prefetch coverage is absent and the service returns no card. Fix: Confirm the service is bound to order-select and order-sign in the Epic build, and handle empty prefetch by doing a live Coverage read before deciding to suppress the card.
- Roster run creates duplicate Coverage resources on every load. — Likely cause: Coverage is written without a stable business identifier, so Epic treats each load as a new create. Fix: Key Coverage on payer subscriberId plus plan and use conditional update so re-runs match and update the existing resource.
- PAS submissions return an auth number the provider never sees on the claim. — Likely cause: CRD, DTR, and PAS were not correlated, so the returned authorization is not written back to the originating order. Fix: Carry one correlation ID across all three exchanges and persist the PAS auth number and status onto the provider order before closing the flow.
Deliverable: A deployable Anypoint application set — payer System APIs for Roster/Attribution and Da Vinci CRD/DTR/PAS, a Member-Match Process API, and a Bridges HL7v2 fallback flow — with DataWeave mappings to US Core and Da Vinci profiles, a member-match reconciliation store, dead-letter queues, and CI/CD pipelines wiring a payer to an Epic provider org.