Turns Epic's Wound Care Apps playbook into a MuleSoft blueprint that lets a wound-care app search patients, push wound photos and measurements as FHIR Media and Observations, and file structured assessment notes back into the Epic chart via Bridges MDM.
Wound Care Apps
Objective: Wound-care teams document assessments on a dedicated app and capture serial photos, but that data strands outside the chart unless someone retypes it. The failure mode is a wound photo and its measurements living in an app the covering provider never opens, so healing trajectory is invisible at the bedside. Done looks like: the app confirms the right patient against Epic, writes each photo as FHIR Media linked to a wound Condition, files measurements as coded Observations, and drops a readable assessment note into the chart via Bridges so any clinician sees the full serial wound record in Hyperdrive without re-entry. This accelerator packages the Wound Care Apps Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Wound Care Experience API (Experience API) — fronts the wound-care app for patient search and serial wound capture ·
GET /patients, POST /wounds/{conditionId}/captures
- Wound Encounter Process API (Process API) — orchestrates patient match, atomic image attach, and note write-back ·
POST /encounters/match, POST /encounters/{id}/write
- Epic FHIR System API (System API) — searches and confirms the patient and resolves the wound Condition in Epic ·
GET /Patient, GET /Condition/{id}
- Media Observation Writer (System API) — commits the wound photo and coded measurements as one atomic FHIR transaction Bundle ·
POST /Media, POST /Observation, POST / (transaction Bundle)
- Bridges MDM System API (System API) — files the rendered assessment note into the chart as an HL7v2 MDM document ·
MLLP SEND MDM^T02
- Dead Letter Queue (Anypoint MQ) — holds writes with unresolvable wound Conditions for reconciliation and replay ·
PUBLISH dlq, CONSUME dlq
Prerequisites
- Epic on FHIR app registration with scopes for Patient.Search, Condition.Read, Observation.Write, Media.Write, and DocumentReference.Write; confirm the customer enabled the write endpoints on their build
- SMART on FHIR backend-services (client-credentials) or provider-launch OAuth 2.0 configured, with the wound app public key registered in Epic
- Bridges HL7v2 interface provisioned for inbound MDM T02 assessment documents, with receiving application and facility codes agreed
- A wound-terminology crosswalk: app tissue/exudate/stage vocabularies mapped to LOINC and SNOMED CT codes Epic will accept
- Anypoint Platform environment with Object Store v2 for patient-match caching and Anypoint MQ for the dead-letter queue
- Agreement on image handling limits: max resolution, accepted MIME types, and Epic per-Media attachment size ceiling
1. Epic interfaces and standards
This accelerator implements the Wound Care Apps Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- FHIR R4 Patient search/match and Condition, US Core Problem wound diagnosis
- FHIR R4 Media wound photo and Observation with LOINC-coded wound measurements
- FHIR R4 DocumentReference for the rendered assessment note
- Bridges HL7v2 MDM T02 for structured assessment note filing
- SMART on FHIR OAuth 2.0 backend-services and provider EHR launch
- Hyperdrive/Hyperspace chart review where serial wound Media and trends surface
Architecture
2. Business requirements
- Let the app search Epic by name, DOB, and MRN and return a confirmed patient before any write occurs, never writing a wound photo against an unverified identity.
- Capture each wound photo as a discrete, timestamped Media resource so the chart shows a true serial healing timeline, not a single overwritten image.
- File wound measurements as coded Observations, not free text, so Cogito can trend area and depth over the healing course.
- Deliver a rendered, human-readable assessment note to the chart so a clinician who never opens the app still sees stage, tissue, and plan.
- Treat the app as a source of point-in-time observations; Epic remains the system of record for the wound diagnosis and problem list.
3. Patient search and wound-context resolution
- Front the app search with a Process API that calls Epic FHIR Patient search and returns only high-confidence matches; force a human confirm-patient step on ambiguous results.
- Resolve the target wound as a US Core Condition so each photo and measurement links to the correct body site, not just the patient.
- Cache the confirmed Patient and Condition references in Object Store keyed to the app session so repeat writes in one encounter skip re-matching.
- Normalize body site to SNOMED CT laterality-qualified codes; a left-heel and right-heel ulcer must never merge into one wound record.
- Reject writes where the app-supplied wound identifier has no resolvable Condition, and route them to the dead-letter queue for reconciliation.
4. Imaging and measurement ingestion
- Map each wound photo to a FHIR Media resource with base64 content, capture datetime, device reference, and a subject pointer to the Patient.
- Write length, width, depth, and computed surface area as LOINC-coded Observations, each with UCUM units and an effectiveDateTime matching the photo.
- Encode tissue type, exudate amount, and wound stage as coded Observation components using the agreed LOINC/SNOMED crosswalk in DataWeave.
- Bundle the Media and its Observations in a single FHIR transaction Bundle so a photo and its measurements commit atomically or not at all.
- Strip EXIF geolocation and downscale oversized images in the flow before the Media write to respect Epic attachment ceiling and avoid leaking location PHI.
5. Assessment note write-back via Bridges
- Render the structured assessment into a formatted note and file it as an MDM T02 through the Bridges System API for chart-level visibility.
- Include the wound Condition, measurement summary, and Media references in the note body so the narrative and discrete data stay consistent.
- Stamp every MDM message with the correlation ID from the originating Process API call so a note can be traced back to its Media and Observations.
- Offer DocumentReference instead of MDM when the customer build favors FHIR document write; keep both paths behind one Process API contract.
- Set document type and author so the note lands in the correct chart section and is attributable to the documenting clinician, not the integration service account.
6. 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.
- Strip EXIF and downscale wound images in-flow, since geotags in raw photos are PHI that must not reach logs or the DLQ.
- Never persist base64 image content in Anypoint MQ or Object Store; store only resource references and re-fetch on retry.
- Scope the app OAuth client to the minimum FHIR write resources; deny broad Observation write.
- Redact image payloads from audit logs, retaining only resource IDs, patient reference, and outcome.
Sample payload — FHIR transaction Bundle - wound photo plus surface-area Observation
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:media-1",
"resource": {
"resourceType": "Media",
"status": "completed",
"type": { "coding": [{ "system": "http://terminology.hl7.org/CodeSystem/media-type", "code": "photo" }] },
"subject": { "reference": "Patient/eT9jr8..." },
"createdDateTime": "2026-08-20T14:32:00Z",
"bodySite": { "coding": [{ "system": "http://snomed.info/sct", "code": "66787007", "display": "Left heel" }] },
"content": { "contentType": "image/jpeg", "data": "/9j/4AAQSkZJRg..." }
},
"request": { "method": "POST", "url": "Media" }
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"code": { "coding": [{ "system": "http://loinc.org", "code": "39125-0", "display": "Wound area" }] },
"subject": { "reference": "Patient/eT9jr8..." },
"effectiveDateTime": "2026-08-20T14:32:00Z",
"derivedFrom": [{ "reference": "urn:uuid:media-1" }],
"valueQuantity": { "value": 12.4, "unit": "cm2", "system": "http://unitsofmeasure.org", "code": "cm2" }
},
"request": { "method": "POST", "url": "Observation" }
}
]
}
Testing and validation
- Validate every outbound resource against the Epic-published FHIR R4 profiles and reject before the write, not after.
- Force an Observation validation error and confirm the Media does not commit, leaving no orphaned photo.
- Round-trip a de-identified photo through downscale and EXIF strip and assert no geolocation survives.
- MUnit the patient-match branch with two candidates and assert the flow returns confirm-required.
- Send an MDM T02 into a Bridges test interface and confirm the note lands in the correct section.
- Load-test serial capture and verify Object Store match caching keeps latency flat.
Phased rollout
Phase 1 — Connect
- Register the wound app on Epic on FHIR and validate OAuth 2.0 backend-services token exchange against the sandbox.
- Stand up the Epic FHIR System API and confirm Patient search and Condition read against synthetic wound patients.
Phase 2 — Map and test
- Build the DataWeave crosswalk for tissue, exudate, and stage codes and validate Observations against Epic FHIR profiles.
- Exercise the atomic Media-plus-Observation Bundle and the Bridges MDM note path end to end in a test environment.
Phase 3 — Production
- Pilot with one wound-care unit, monitoring match confirm rate and DLQ volume before opening additional units.
- Enable production alerting on missing write-backs and expand to remaining units once the trailing-error rate holds steady.
Success metrics
- Percentage of app wound assessments that land in the chart as Media plus coded Observations within the visit.
- Patient-match confirmation rate and count of ambiguous-match confirm prompts per week.
- Median latency from photo capture to Media availability in Hyperdrive chart review.
- Dead-letter queue rate for unresolvable wound Conditions, trending toward zero after crosswalk tuning.
- Share of measurements filed as coded Observations versus free text, targeting full discrete capture.
Troubleshooting
- Wound photos appear in the chart but with no measurements attached. — Likely cause: The Media and Observation writes were sent as independent calls rather than one transaction Bundle, so a partial failure orphaned the photo. Fix: Send Media and its Observations in a single FHIR transaction Bundle with derivedFrom links so they commit atomically.
- Serial photos of the same wound show up as separate, unrelated wounds in the chart. — Likely cause: Body site was written without laterality qualifiers, so left and right sites collapsed or scattered. Fix: Encode body site with laterality-qualified SNOMED CT codes and link every write to the resolved Condition reference.
- Epic rejects Observation writes with a coding-not-recognized error. — Likely cause: App tissue, exudate, or stage vocabularies were sent uncrosswalked instead of LOINC/SNOMED codes Epic accepts. Fix: Apply the DataWeave terminology crosswalk before the write and validate against the Epic FHIR profile in MUnit.
- Assessment notes reach the chart but land in the wrong section or lack an author. — Likely cause: The MDM T02 document type and author fields were unset or defaulted to the integration service account. Fix: Set the document type to the agreed wound-note type and populate author with the documenting clinician before filing through Bridges.
Deliverable: A MuleSoft API-led bundle: a Bridges HL7v2 MDM System API for assessment notes, an Epic on FHIR System API (Patient search, Condition, Observation, Media, DocumentReference), a wound-encounter Process API orchestrating match, image attach, and write-back, plus DataWeave mappings, a dead-letter queue, correlation-ID audit logging, and MUnit suites.