Turns a patient's Epic appointment and its resolved room, department, and building location into structured wayfinding directions delivered to MyChart and lobby kiosks. Covers appointment lookup, Epic location resolution, and routing to an indoor-positioning provider without exposing PHI to the map layer.
Tags: healthcare, epic, fhir, smart-on-fhir, patient-access, interoperability, api-led, experience-api
Wayfinding
Objective: Patients waste time and miss appointments because a scheduled visit names the department but not how to reach the exam room across a multi-building campus. Epic knows the appointment's department, room, and building, but that context lives in Cadence and never reaches the map on the patient's phone. Done looks like this: a patient opens MyChart on arrival, the app reads today's appointment, resolves its Epic location to a mappable point, and shows a route from the entrance to the destination, updating if the room changes. The map vendor gets coordinates only, never patient identity or reason for visit. This accelerator packages the Wayfinding Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Wayfinding (Experience API) — launches with SMART patient context and returns today's appointment route to a MyChart or kiosk client ·
GET /route, GET /appointment/today
- Routing (Process API) — orchestrates location resolution and turn-by-turn routing, degrading gracefully when the map vendor is down ·
POST /route, GET /destination/{epicLocationId}
- Epic FHIR (System API) — reads the same-day Appointment and its Location position from Epic Cadence ·
GET Appointment?patient={id}&date=today&status=booked,arrived, GET Location/{id}
- Indoor Map (System API) — fetches a turn-by-turn path from the indoor-positioning provider using coordinates and node IDs only, no PHI ·
POST /route, GET /node/{mapNodeId}
- Location Point Cache (Object Store) — holds the Epic-location-to-map-node crosswalk with a long TTL, invalidated on facility-move events ·
GET /{epicLocationId}, PUT /{epicLocationId}, DELETE /{epicLocationId}
Prerequisites
- Epic FHIR R4 endpoint registered with a SMART on FHIR patient-context launch for the MyChart-embedded app.
- A curated crosswalk mapping Epic Location identifiers to indoor map node IDs for each pilot building.
- An indoor-positioning or wayfinding map provider with a staging and production API and a stable node model.
- Anypoint Platform environments with API-led System, Process, and Experience API tiers provisioned.
- A location-move or facility-change event feed to invalidate stale crosswalk cache entries.
- Kiosk devices provisioned with device certificates and a physical building location claim.
1. Epic interfaces and standards
This accelerator implements the Wayfinding Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- SMART on FHIR patient-standalone and MyChart embedded launch
- FHIR R4 Appointment resource with same-day status filtering
- FHIR R4 Location resource including the position element
- Epic Cadence and Grand Central scheduling as the source of appointment location
- Epic OAuth 2.0 token endpoint for patient-context authorization
Architecture
2. Business requirements
- Guide an arriving patient from a facility entrance to the exact department and room of today's appointment.
- Read appointment context live from Epic so a room change reflected in Cadence updates the route within seconds.
- Keep patient identity and visit reason out of the third-party map provider; send only resolved coordinates and route requests.
- Support both the patient's phone through MyChart and shared lobby kiosks with no logged-in patient.
- Degrade gracefully to a static building map and text directions when indoor positioning is unavailable.
3. Appointment and location resolution
- Launch the Experience API with SMART patient context and query Appointment?patient={id}&date=today&status=booked,arrived.
- Follow each Appointment participant of type Location to read the department, room, and building Location resources.
- Extract the position element with longitude, latitude, and altitude, or the Epic location identifier when position is absent.
- Resolve Epic location identifiers to indoor map node IDs through a curated crosswalk table, never by fuzzy name match.
- Cache the Epic-location-to-map-node mapping with a long TTL since physical rooms rarely move; invalidate on facility move events.
4. Routing orchestration
- The Routing Process API accepts an origin from a kiosk fixed point or a phone beacon fix and the resolved destination map node.
- Call the Indoor Map System API for a turn-by-turn path; enrich each step with accessibility flags such as elevator-only routing.
- Return a normalized route object with distance, estimated walk time, and ordered steps in DataWeave, not the vendor's raw schema.
- Correlate every request end to end with a correlation ID logged across Experience, Process, and both System APIs.
- Never block the route response on Epic; if location resolution is warm-cached, skip the FHIR round trip entirely.
5. Error handling and operations
- Alert on the absence of an expected Location.position for a scheduled department, which is the silent failure that strands patients.
- Route unresolvable Epic-location-to-map-node lookups to a dead-letter queue reviewed by facilities, not to the patient as an error.
- Fall back to building-level text directions when the map provider times out; label the response as degraded so the UI can say so.
- Rate-limit per patient and per kiosk to keep a stuck client from hammering the map vendor and the FHIR endpoint.
- Track crosswalk coverage as a first-class metric; a new clinic opening with no mapped nodes should page facilities, not fail silently.
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 patient identifiers, appointment reason, and provider name before any call leaves the Map System API; the vendor sees coordinates and node IDs only.
- Bind kiosk sessions to a device certificate and a physical location claim so a kiosk cannot request another building's patient routes.
- Enforce that the Experience API only ever returns today's own appointments for the SMART patient context, never a broader appointment search.
- Log map-node crosswalk lookups for audit so a room-to-coordinate mapping change is traceable to who and when.
Sample payload — Wayfinding Experience API route response for a booked appointment
{
"correlationId": "wf-9a3c1e77-4b2d",
"appointment": {
"fhirId": "eXbY9Qk2",
"start": "2026-08-20T14:30:00-05:00",
"status": "arrived"
},
"destination": {
"epicLocationId": "DEP-CARDIO-3W",
"display": "Cardiology Clinic 3 West",
"building": "North Tower",
"floor": 3,
"mapNodeId": "nt-3-cardio-checkin",
"position": { "longitude": -97.7431, "latitude": 30.2711, "altitude": 12.5 }
},
"route": {
"originNodeId": "nt-1-main-entrance",
"estimatedWalkSeconds": 340,
"distanceMeters": 265,
"degraded": false,
"steps": [
{ "instruction": "Enter through the North Tower main lobby", "nodeId": "nt-1-main-entrance" },
{ "instruction": "Take elevator bank B to floor 3", "nodeId": "nt-elev-b", "accessibility": "elevator" },
{ "instruction": "Turn left toward Cardiology check-in", "nodeId": "nt-3-cardio-checkin" }
]
}
}
Testing and validation
- Verify a same-day booked Appointment resolves to a mapped destination node and returns an ordered, non-empty route.
- Verify a room change in Cadence produces an updated destination on the next poll without an app reload.
- Verify an appointment whose Location has no position element triggers the DLQ path and a degraded text response, not a 500.
- Verify the Map System API request payload contains no patient identifiers, name, or reason for visit.
- Verify kiosk requests are rejected when the device location claim does not match the requested building.
- Verify correlation IDs propagate unchanged from Experience API through both System APIs into logs.
Phased rollout
Phase 1 — Connect
- Register the SMART on FHIR app and confirm patient-context Appointment and Location reads against the Epic sandbox.
- Stand up the Indoor Map System API against the vendor's staging environment and confirm route retrieval for known nodes.
Phase 2 — Map and test
- Build the Epic-location-to-map-node crosswalk for one pilot building and validate coverage against the live department list.
- Run DataWeave route normalization and degraded-mode fallback through the full API-led chain with correlation IDs.
Phase 3 — Production
- Enable one high-traffic building with monitoring on crosswalk coverage and Location.position absence.
- Expand building by building, gating each on validated crosswalk coverage before patient-facing enablement.
Success metrics
- Percentage of today's appointments that resolve to a mapped destination node, tracked as crosswalk coverage.
- Median time from route request to returned turn-by-turn steps.
- Rate of degraded responses served due to missing position or map-vendor timeout.
- Count of DLQ entries for unresolvable Epic-location-to-map-node lookups per day.
- Patient arrival-to-check-in time before versus after wayfinding enablement in the pilot building.
Troubleshooting
- Route returns a valid path but leads to the wrong department. — Likely cause: The Epic-location-to-map-node crosswalk mapped a stale room after a clinic relocated. Fix: Invalidate the cached crosswalk entry, reconcile the mapping against the current Epic Location, and add a facility-move event to auto-invalidate.
- Appointments appear in MyChart but the app shows no destination. — Likely cause: The appointment's Location resource has no position element and no crosswalk entry. Fix: Route the lookup to the DLQ for facilities to add a map node, and serve building-level text directions flagged as degraded meanwhile.
- Map vendor reports requests it cannot attribute to any patient session. — Likely cause: PHI is correctly stripped but the correlation ID was also dropped, breaking traceability. Fix: Confirm the Map System API forwards the correlation ID header while stripping identity fields, and assert its presence in a contract test.
- A newly opened clinic silently returns no routes with no alerts. — Likely cause: Crosswalk coverage dropped for the new departments but coverage was not monitored as a metric. Fix: Add a coverage threshold alert per building that pages facilities when mapped nodes fall below the active department count.
Deliverable: A deployable Anypoint blueprint that exposes patient appointment location and facility routing as a Wayfinding Experience API, so a MyChart or kiosk app can turn today's Epic schedule into turn-by-turn in-facility directions.