MuleSoft blueprint for generating and consuming FHIR International Patient Summary (IPS) documents against Epic, enabling cross-border and cross-organization care with a standardized, dictionary-neutral clinical snapshot.
International Patient Summary
Objective: A patient treated outside their home organization or country arrives with no reliable medication list, allergy record, or problem list, and the receiving clinician has no time to chase records across borders and languages. The International Patient Summary standardizes a minimal, condensed, clinically relevant snapshot as a FHIR Bundle so any conformant system can render it. Done looks like Epic producing a valid IPS document on demand for a patient, translating local Epic dictionaries into IPS-required international terminologies, and consuming inbound IPS Bundles from external systems into Epic in a reviewable form that a clinician can reconcile rather than blindly import. This accelerator packages the International Patient Summary Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- IPS Access API (Experience API) — accepts inbound external IPS Bundles and serves on-demand IPS generation with an async poll token ·
POST /ips, GET /ips/{id}, GET /ips/status/{token}
- IPS Orchestration API (Process API) — orchestrates IPS assembly, terminology mapping, validation, and inbound reconciliation behind an async queue ·
POST /generate, POST /consume, CONSUME assembly-queue
- Terminology Map Service (System API) — crosswalks Epic RxNorm and local codes to IPS ATC, LOINC, UCUM, and SNOMED CT International, and reverse-maps inbound codes ·
POST /map, POST /reverse-map
- IPS Validator (System API) — validates document Bundles against the HL7 IPS UV profiles before dispatch or ingest ·
POST /validate
- Epic FHIR API (System API) — reads clinical resources and writes DocumentReference to Epic over FHIR R4 via Bridges ·
GET /Patient/{id}/$summary, GET /AllergyIntolerance, GET /MedicationStatement, GET /Condition, POST /DocumentReference
- terminology-cache (Object Store) — versioned terminology crosswalk and assembled IPS Bundles keyed by patient and version, refreshed on a schedule ·
GET /{key}, PUT /{key}, SCHEDULER refresh value-sets
Prerequisites
- Epic on a FHIR R4 endpoint with the Bulk and document-level $summary or DocumentReference APIs enabled, plus an OAuth2 backend-services or SMART client registered.
- Anypoint Platform with API Manager, an Object Store v2 instance for terminology cache, and a message queue (Anypoint MQ or JMS) for asynchronous IPS assembly.
- Access to authoritative value sets: SNOMED CT International, LOINC, and the WHO ATC and UCUM code systems referenced by the IPS UV IG.
- A terminology mapping service or curated crosswalk from Epic ERX/RxNorm, local lab compendium, and problem-list dictionaries to IPS-required international codes.
- Patient identity context: MRN plus any cross-border identifiers, and a policy for how unmatched inbound IPS documents are quarantined.
- IPS Implementation Guide (HL7 IPS UV) profiles loaded into a FHIR validator for structural and terminology validation.
1. Epic interfaces and standards
This accelerator implements the International Patient Summary 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 FHIR R4 (Bridges) DocumentReference and Composition for IPS document assembly
- FHIR R4 resources: AllergyIntolerance, MedicationStatement, Condition, Immunization, Observation, Patient
- Epic $docref / document $summary operation to source the clinical snapshot
- Hyperdrive clinician reconciliation for inbound external IPS review
- SMART on FHIR backend services (OAuth2 client_credentials) for system-to-system access
- Cogito for tracking IPS generation and match-rate reporting
Architecture
2. Business requirements
- Produce a valid IPS Bundle for any patient on demand, containing at minimum the required Medication Summary, Allergies and Intolerances, and Problem List sections.
- Translate Epic local dictionaries into IPS-mandated international code systems, because an unmapped local code makes the document useless to a foreign reader.
- Consume inbound IPS documents into a reconciliation queue, never a silent write to the chart.
- Support both a document generated at a point in time and a fresh assembly, and stamp each with the source organization and generation timestamp.
- Degrade gracefully: emit an IPS with a documented data-absent-reason rather than failing when a section has no coded data.
3. Generating IPS from Epic
- Call the Epic document $summary or assemble sections from AllergyIntolerance, MedicationStatement, and Condition, then build a Composition with the IPS section LOINC codes.
- Wrap the sections in a document Bundle whose first entry is the Composition, per the IPS document rule.
- Set Composition.subject, custodian, and author to the producing Epic organization so provenance survives the border crossing.
- Generate the narrative text for each section in DataWeave so a system that cannot process the codes can still render human-readable content.
- Cache assembled Bundles in Object Store keyed by patient and version to avoid re-querying Epic for repeat retrievals.
4. Terminology mapping and normalization
- Map Epic medications from RxNorm/ERX to the IPS medication value sets, preferring ATC or a substance SNOMED code where the IG requires it.
- Map local lab codes to LOINC and lab result values to UCUM units before emitting Observation resources.
- Map Epic problem-list and allergy dictionary entries to SNOMED CT International, and record the original local code as a secondary Coding for traceability.
- Fail loud on unmappable required-section codes: route to a dead-letter queue with the local code so a terminologist can extend the crosswalk.
- Refresh the terminology cache on a schedule and version it, since value-set drift silently breaks validation months later.
5. Consuming inbound IPS into Epic
- Validate the inbound Bundle against the IPS profiles first, and reject structurally invalid documents before any identity work.
- Resolve the external patient to an Epic patient by demographics and identifiers, quarantining any document that does not confidently match.
- Reverse-map international codes back to Epic-recognizable codes so reconciliation surfaces meaningful entries, not opaque SNOMED IDs.
- Present the parsed medications, allergies, and problems in Hyperdrive for clinician review; do not auto-post to the chart.
- Persist the raw inbound Bundle as a DocumentReference so the original cross-border artifact remains auditable.
6. Orchestration and operations
- Run IPS assembly asynchronously behind a queue for large or on-demand batch requests, returning a poll token from the Experience API.
- Attach a correlation ID spanning Experience, Process, and System APIs so a single generation is traceable end to end.
- Alert on the absence of expected generations, which is the failure mode dashboards miss most often when a scheduled cross-border feed goes quiet.
- Track terminology map-miss rate as a first-class metric; a rising miss rate predicts document rejections downstream.
- Rate-limit and back off against the Epic FHIR endpoint, since IPS assembly fans out into many resource reads per patient.
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.
- Enforce that inbound IPS documents are quarantined until identity match is confirmed, preventing wrong-patient chart contamination across organizations.
- Retain the signed original inbound Bundle immutably so cross-border provenance and consent basis can be re-examined.
- Scope OAuth2 backend-services tokens to the specific IPS DocumentReference and Composition operations, not blanket FHIR read.
- Apply data-residency and cross-border transfer controls to cached Bundles, since IPS by design moves PHI between jurisdictions.
Sample payload — IPS document Bundle (abridged)
{
"resourceType": "Bundle",
"type": "document",
"timestamp": "2026-08-20T14:32:00Z",
"identifier": { "system": "urn:oid:2.16.840.1.113883.3.1234", "value": "ips-8871" },
"entry": [
{
"fullUrl": "urn:uuid:comp-1",
"resource": {
"resourceType": "Composition",
"type": { "coding": [ { "system": "http://loinc.org", "code": "60591-5", "display": "Patient summary Document" } ] },
"subject": { "reference": "urn:uuid:pat-1" },
"custodian": { "display": "UT Dell Medical Center" },
"section": [
{ "title": "Allergies and Intolerances", "code": { "coding": [ { "system": "http://loinc.org", "code": "48765-2" } ] }, "entry": [ { "reference": "urn:uuid:allergy-1" } ] },
{ "title": "Medication Summary", "code": { "coding": [ { "system": "http://loinc.org", "code": "10160-0" } ] } },
{ "title": "Problem List", "code": { "coding": [ { "system": "http://loinc.org", "code": "11450-4" } ] } }
]
}
},
{
"fullUrl": "urn:uuid:allergy-1",
"resource": {
"resourceType": "AllergyIntolerance",
"code": { "coding": [ { "system": "http://snomed.info/sct", "code": "373270004", "display": "Penicillin" } ] },
"patient": { "reference": "urn:uuid:pat-1" }
}
}
]
}
Testing and validation
- Validate every generated Bundle against the HL7 IPS UV profiles in the FHIR validator, treating terminology-binding warnings as gating for required sections.
- Round-trip test: generate an IPS from Epic, consume it back through the inbound flow, and confirm codes survive forward and reverse mapping.
- Test the data-absent path: a patient with no coded allergies must yield a valid section with a documented no-known-allergies or data-absent-reason, not an empty failure.
- Test identity quarantine with a deliberately non-matching inbound document and confirm it lands in review, never in the chart.
- Load-test batch assembly against the Epic FHIR endpoint to confirm back-off and correlation IDs hold under fan-out.
- Verify narrative text renders correctly for a consumer that ignores the coded entries entirely.
Phased rollout
Phase 1 — Connect
- Register the SMART backend-services client with Epic and confirm token issuance against the FHIR R4 endpoint.
- Stand up the System API and read a single patient's AllergyIntolerance, MedicationStatement, and Condition resources.
Phase 2 — Map and test
- Load IPS profiles and value sets, build the RxNorm-to-ATC, local-lab-to-LOINC, and dictionary-to-SNOMED crosswalks, and validate generated Bundles.
- Run round-trip and data-absent tests, and drive the inbound reconciliation flow into Hyperdrive in a non-production environment.
Phase 3 — Production
- Enable on-demand IPS generation for a pilot partner organization with map-miss and generation alerting live.
- Turn on inbound consumption with mandatory identity quarantine and clinician reconciliation before any chart write.
Success metrics
- IPS generation success rate and median assembly latency per patient
- Terminology map-miss rate for required sections, trended over time
- Inbound identity match rate versus quarantine rate
- Validation pass rate against IPS profiles before dispatch
- Clinician reconciliation acceptance rate for inbound external entries
Troubleshooting
- Generated IPS Bundle fails validation with a terminology-binding error on the medication section. — Likely cause: Epic RxNorm codes were emitted without mapping to the IPS-required ATC or substance value set. Fix: Route the local code through the terminology map service and add the missing crosswalk entry; do not emit the raw local code alone in a required section.
- Inbound IPS documents accumulate in quarantine and never reach clinician review. — Likely cause: Patient demographics in the external document do not meet the confidence threshold to match an Epic patient. Fix: Review the match rules and identifier normalization, and provide a manual match step in the reconciliation queue for near-miss demographics.
- A patient with no allergies produces a failed generation instead of a valid document. — Likely cause: The assembly logic treated an empty section as an error rather than emitting a data-absent-reason. Fix: Emit the required section with a no-known-allergies entry or data-absent-reason so the document stays IPS-conformant.
- Coded entries in a consumed IPS render as opaque SNOMED IDs during reconciliation. — Likely cause: International codes were not reverse-mapped to Epic-recognizable dictionary entries before display. Fix: Apply the reverse crosswalk in the inbound Process API so Hyperdrive shows meaningful medication, allergy, and problem descriptions.
Deliverable: An Anypoint API-led implementation (Experience, IPS Process, and Epic System APIs) that generates IPS-conformant FHIR document Bundles from Epic and consumes inbound IPS documents into a quarantined clinician-reconciliation flow, with terminology crosswalks, an IPS profile validator, correlation-ID tracing, and dead-letter handling for unmappable codes.