CMS-aligned prior authorization blueprint wiring Da Vinci CRD, DTR, and PAS onto Epic. Fires coverage-requirement cards at order entry, drives payer questionnaires from clinical data, and submits electronic prior auth as X12 278 with real-time and deferred decision handling.
Tags: healthcare, epic, fhir, da-vinci, prior-authorization, smart-on-fhir, x12, payer
Prior Authorization
Objective: Clinicians discover a service or drug needs prior authorization only after ordering, often at the pharmacy or scheduling desk, delaying care and generating rework. The goal is to surface coverage requirements at ordering, auto-populate the payer's questions from chart data, and submit the authorization electronically with a tracked decision. Done looks like: a CRD card appears in Hyperdrive at order-select when auth is required, DTR pre-fills most of the payer questionnaire from Epic FHIR data, and a PAS submission returns a decision with an authorization number written back to the encounter. This accelerator packages the Prior Authorization Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- CRD (Experience API) — fires coverage-requirement cards at order entry via CDS Hooks ·
GET /cds-services, POST /cds-services/order-select, POST /cds-services/order-sign
- Prior Authorization (Process API) — orchestrates coverage rules, DTR pre-fill, PAS submit and pended-decision polling ·
POST /coverage/evaluate, POST /dtr/questionnaire-response, POST /pas/submit, POST /pas/inquire
- Epic FHIR (System API) — reads FHIR R4 chart data and writes the authorization number back to the encounter ·
GET /Coverage/{id}, GET /ServiceRequest/{id}, GET /QuestionnaireResponse, PUT /Encounter/{id}
- DTR SMART App (Experience API) — SMART on FHIR launch that pre-populates the payer questionnaire from chart data ·
GET /Questionnaire/{id}, POST /QuestionnaireResponse
- Payer Da Vinci Endpoint (target) — payer CRD/DTR/PAS endpoint receiving the PAS Claim as X12 278 and returning the ClaimResponse ·
POST /Claim/$submit (278), POST /Claim/$inquire, POST /275 attachment
- Prior-Auth DLQ (Dead-letter queue) — dead-letters unparseable ClaimResponses and 278 rejects keyed by correlation ID for manual work ·
PUBLISH {correlationId}, CONSUME {correlationId}
Prerequisites
- Epic App Orchard/Vendor Services registration with SMART on FHIR backend and standalone launch scopes for Coverage, Patient, Encounter, ServiceRequest, MedicationRequest, and QuestionnaireResponse.
- Payer or intermediary endpoints implementing Da Vinci CRD 2.0, DTR 2.0, and PAS 2.0 with published CDS Hooks discovery and X12 278/275 support.
- Anypoint Platform environment with API Manager, Runtime Fabric or CloudHub 2.0, Anypoint MQ, and a client-app OAuth2 credential per payer.
- Epic CDS Hooks configured to call the CRD order-select service, with the coverage-requirements card display enabled in Hyperdrive.
- Payer coverage rules and Da Vinci CQL/DTR questionnaire packages loaded, plus a trading-partner map of payer IDs to CRD/DTR/PAS base URLs.
- X12 278 companion guide and 275 attachment agreement per payer, including any clearinghouse routing for payers not yet on FHIR.
1. Epic interfaces and standards
This accelerator implements the Prior Authorization Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- CDS Hooks order-select and order-sign services invoked from Hyperdrive/Hyperspace
- SMART on FHIR launch for DTR with FHIR R4 Questionnaire and QuestionnaireResponse
- FHIR R4 Coverage, ServiceRequest, MedicationRequest, Patient, Encounter, Practitioner resources
- Da Vinci CRD, DTR, and PAS implementation guides (Claim/ClaimResponse profiles)
- X12 278 request/response and 275 attachments via Bridges
- Epic Coverage and referral/authorization records for decision write-back
Architecture
2. Business requirements
- Detect prior-auth and coverage requirements at order-select, before the order is signed, not at the pharmacy or scheduling desk.
- Pre-populate the payer questionnaire from Epic chart data so staff answer only what the record cannot supply.
- Submit prior authorization electronically as an FHIR PAS Claim mapped to X12 278, and persist the returned authorization number to the encounter.
- Handle pended decisions asynchronously: poll or receive callbacks until the payer returns final adjudication without blocking the clinician.
- Keep one correlation ID from the CRD card through DTR and PAS so a single authorization can be traced end to end.
3. CRD at order entry
- Expose a CDS Hooks order-select service whose discovery endpoint Epic registers; return coverage-information cards, not free-text advice.
- Evaluate payer coverage rules against the draft ServiceRequest or MedicationRequest and the patient Coverage resource.
- Return a card with a SMART app link that launches DTR only when documentation is actually required, to avoid alert fatigue.
- Include the payer, the auth requirement, and any covered-alternative suggestions as CDS Hooks system actions where the payer supports them.
- Cap the synchronous CRD call so a slow payer never stalls order entry; degrade to an informational card on timeout.
4. DTR questionnaire pre-population
- Fetch the payer Questionnaire and its embedded CQL, then run prepopulation against Epic FHIR R4 reads to build a QuestionnaireResponse.
- Resolve Questionnaire launchContext and item extensions in DataWeave; never hand-map fields the CQL library already defines.
- Launch DTR via SMART on FHIR EHR launch so the app inherits patient and encounter context from Hyperdrive.
- Show the clinician only unanswered or low-confidence items; carry pre-filled answers forward as read-only with provenance.
- Persist the completed QuestionnaireResponse and its Task so PAS can attach it as supporting documentation.
5. PAS submission and decision
- Assemble a PAS Claim bundle referencing the QuestionnaireResponse, then transform to X12 278 for payers behind a clearinghouse.
- Attach supporting clinical documents as 275 or FHIR DocumentReference per the payer companion guide.
- Parse the ClaimResponse: approved yields an authorization number, pended yields a tracking ID, denied yields a reason code.
- For pended requests, use the PAS inquiry operation on a schedule until final status, then write the outcome back to Epic.
- Write the authorization number to the Epic referral/authorization record and stamp the encounter so downstream billing sees it.
6. Error handling and operations
- Route unparseable ClaimResponses and 278 rejects to a dead-letter queue keyed by correlation ID for manual work.
- Alert on the absence of an expected pended-decision callback, which is the failure mode dashboards miss most often.
- Distinguish a payer 'no auth required' response from a connectivity failure; never silently treat an error as approval.
- Cache payer coverage rules and Questionnaires with the payer's stated refresh interval to survive endpoint outages.
- Track per-payer decision latency and pend rate so slow trading partners surface before clinicians complain.
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 SMART tokens to the launching patient and encounter; DTR must not read charts outside its launch context.
- Store payer OAuth2 client credentials in Anypoint Secrets Manager, rotated per trading-partner agreement, never in property files.
- Sign and verify CDS Hooks JWTs so only Epic's registered order-select hook can invoke the CRD service.
- Encrypt X12 278/275 payloads in transit and at rest, and segregate each payer's traffic to prevent cross-trading-partner data leakage.
Sample payload — CDS Hooks order-select request from Hyperdrive to CRD service
{
"hookInstance": "d1e0f7a2-6b3c-4e2a-9f10-7c5b2a1d9e44",
"hook": "order-select",
"fhirServer": "https://epic.example.org/api/FHIR/R4",
"context": {
"userId": "Practitioner/e63bXhq2",
"patientId": "Patient/eJm9k2LptQ",
"encounterId": "Encounter/eN4pQ8vRt",
"selections": ["ServiceRequest/srx-0091"],
"draftOrders": {
"resourceType": "Bundle",
"type": "collection",
"entry": [{
"resource": {
"resourceType": "ServiceRequest",
"id": "srx-0091",
"status": "draft",
"intent": "order",
"code": {"coding": [{"system": "http://www.ama-assn.org/go/cpt", "code": "70553", "display": "MRI brain with and without contrast"}]},
"subject": {"reference": "Patient/eJm9k2LptQ"},
"insurance": [{"reference": "Coverage/cvg-2231"}]
}
}]
}
}
}
Testing and validation
- Fire the CRD order-select hook with a service known to require auth and confirm a coverage-information card with a DTR launch link returns within the timeout.
- Verify a no-auth-required service returns an informational card and never launches DTR.
- Run DTR prepopulation against a synthetic chart and assert the QuestionnaireResponse fills every CQL-derivable item with correct provenance.
- Submit a PAS Claim and validate the FHIR-to-X12 278 transform against the payer companion guide, then confirm the parsed authorization number.
- Simulate a pended decision and confirm the inquiry schedule polls to final status and writes back without clinician action.
- Inject a malformed ClaimResponse and confirm it lands in the dead-letter queue rather than being treated as an approval.
Phased rollout
Phase 1 — Connect
- Register the CRD CDS Hooks service in Epic and confirm order-select discovery and JWT verification.
- Establish OAuth2 client credentials and CRD/DTR/PAS base URLs for one pilot payer.
Phase 2 — Map and test
- Build DataWeave transforms for Questionnaire prepopulation and PAS Claim to X12 278, validated against the payer companion guide.
- Test CRD cards, DTR pre-fill, and PAS approve/pend/deny paths in a non-production Epic environment with synthetic patients.
Phase 3 — Production
- Enable the CRD card for a limited order set and payer, monitoring decision latency and pend rate.
- Expand to additional service lines and payers once write-back accuracy and dead-letter volume hold steady.
Success metrics
- Prior-auth requirements surfaced at order-select versus discovered downstream, as a percentage.
- Median CRD card response latency, held under the order-entry timeout.
- DTR auto-population rate: share of questionnaire items pre-filled from chart data.
- Real-time PAS approval rate versus pended rate, tracked per payer.
- Time from PAS submission to authorization write-back for pended decisions.
Troubleshooting
- CRD card never appears in Hyperdrive at order-select. — Likely cause: CDS Hooks discovery is unreachable or the JWT signature fails Epic verification. Fix: Confirm the discovery endpoint returns the order-select service and that Epic's registered public key matches the JWT signing key; check for clock skew on the iat/exp claims.
- DTR launches but pre-fills almost nothing, forcing manual entry. — Likely cause: SMART launch context is missing or FHIR read scopes are too narrow for the CQL library. Fix: Verify the EHR launch passes patient and encounter, and grant the read scopes the Questionnaire's CQL requires so prepopulation can resolve every launchContext.
- A prior auth is billed as approved but the payer denied it. — Likely cause: A PAS error or 278 reject was mishandled and defaulted to approved. Fix: Treat any non-approved or unparseable ClaimResponse as not-approved, route it to the dead-letter queue, and require an explicit approved status plus authorization number before write-back.
Deliverable: A deployable Anypoint blueprint exposing Da Vinci CRD, DTR, and PAS APIs against Epic: CDS Hooks order-select service, SMART on FHIR DTR questionnaire launch, and X12 278-backed PAS submit/inquire, with correlation-ID tracking from coverage check to authorization decision.