Ingest home RPM device readings such as BP cuffs, glucometers, pulse oximeters, and weight scales from Bluetooth gateways or vendor APIs and land them in Epic as FHIR Observations tied to the enrolled patient and monitoring order, so care teams review trends in Hyperspace instead of chasing faxed logs.
Tags: healthcare, epic, fhir, us-core, connected-devices, wearables, event-driven, system-api
Remote Patient Monitoring with Devices
Objective: Enrolled patients generate a high volume of home vitals such as blood pressure, blood glucose, SpO2, weight, and heart rate from devices that never reach the chart, so clinicians lose the trend or transcribe faxed logs by hand. This blueprint moves those readings from Bluetooth gateways and vendor RPM clouds into Epic as discrete, LOINC-coded FHIR Observations attached to the correct patient and monitoring episode, with out-of-range values flagged for review. Done looks like a home scale reading appearing in the flowsheet within minutes, correctly matched, coded, deduplicated, and routed to the care team when it breaches a threshold. This accelerator packages the Remote Patient Monitoring with Devices Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Device Ingest (System API) — terminates gateway webhooks and polls vendor RPM clouds, then buffers raw readings ·
POST /readings, SCHEDULER poll vendor API, PUBLISH Anypoint MQ
- Normalize & Match (Process API) — resolves device to enrolled patient and order, normalizes to LOINC/UCUM, thresholds, and writes vitals ·
CONSUME Anypoint MQ, GET Patient, GET CarePlan, POST Observation.create
- Epic FHIR (target) — receives discrete US Core vital-signs Observations with Device reference and interpretation ·
POST /Observation, GET /Observation, GET /Device
- RPM Worklist / In Basket (target) — receives out-of-range breach notifications for care-team review in Hyperspace ·
NOTIFY worklist, POST In Basket message
- Dead Letter Queue (Dead-letter queue) — holds quarantined unmatched and failed-write readings with correlation ID for replay ·
ENQUEUE quarantined reading, REPLAY by correlationId
Prerequisites
- Epic on FHIR R4 with US Core Observation, Device, and Patient profiles enabled and a client registered for backend OAuth 2.0 client-credentials system access
- Write scope for Observation.create granted to the registered app, plus read on Patient, Device, and CarePlan for reconciliation
- An RPM program build in Epic with monitoring orders, enrollment flowsheet rows, and a care-team RPM worklist or In Basket pool so readings have a home to land in
- Device vendor integration credentials, either a Bluetooth gateway that posts to a webhook or a vendor cloud API with a data dictionary mapping device model to measurement type
- Anypoint Platform with CloudHub 2.0 or RTF, Anypoint MQ for buffering readings, and Secrets Manager for vendor and Epic credentials
- A device-to-patient enrollment registry mapping device serial or gateway ID to Epic patient and monitoring order, sourced from Epic enrollment or a program CRM
1. Epic interfaces and standards
This accelerator implements the Remote Patient Monitoring with Devices 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 Observation vital-signs category on US Core Vital Signs and Blood Pressure profiles written via Observation.create
- FHIR R4 Device and DeviceMetric to record the source instrument, serial number, and UDI
- FHIR R4 Patient and CarePlan read for enrollment reconciliation and monitoring-episode linkage
- Cogito Registries and flowsheet rows for care-team RPM trend review in Hyperspace
- Epic In Basket and patient monitoring worklist for out-of-range alert routing
- LOINC coding for measurement types and UCUM units on every Observation
Architecture
2. Business requirements
- Land each home reading in the chart as a discrete, LOINC-coded Observation, not a scanned document or free-text note.
- Match every reading to the enrolled patient and active monitoring order before it is written; never post an orphaned vital.
- Flag out-of-range readings against the order thresholds and route them to the care-team RPM worklist within minutes.
- Preserve the device source, serial, and measurement timestamp so clinicians can trust and audit the value.
- Absorb bursty and offline-batched device traffic without dropping readings when a gateway reconnects and dumps a backlog.
3. Ingestion gateways and vendor APIs
- Expose a System API with two ingress modes, a webhook for gateways that push and a scheduled poller for vendor clouds that must be pulled.
- Validate and acknowledge fast at the edge, then hand the raw payload to Anypoint MQ so device retries never block on Epic latency.
- Stamp a correlation ID on ingest and carry it through matching, write, and DLQ so one reading is traceable end to end.
- Normalize vendor-specific device models and units in DataWeave into a canonical reading with LOINC code and UCUM unit.
- Treat a Bluetooth gateway that reconnects after being offline as a batch source and dedupe on device serial plus measurement time.
4. Matching and normalization
- Resolve device serial or gateway ID against the enrollment registry to the Epic patient and monitoring order; quarantine unresolved readings rather than guessing.
- Confirm the resolved patient has an active RPM CarePlan or monitoring order before writing; a reading for a discharged patient is an error, not a vital.
- Convert every measurement to UCUM units in DataWeave and map to the correct US Core profile, using the two-component blood-pressure profile for BP.
- Deduplicate on the tuple of patient, device, LOINC code, and effective timestamp to survive gateway backlog replays.
- Attach a FHIR Device reference with serial and UDI so the Observation records which instrument produced it.
5. Orchestration and alerting
- Evaluate each normalized reading against the order thresholds and set an Observation interpretation code such as high or critical high when breached.
- Post the Observation via Observation.create, then on a threshold breach route a notification to the Epic RPM worklist or In Basket pool.
- Batch normal in-range readings for efficient write throughput but escalate critical values on their own priority path.
- Alert on the absence of expected readings for an enrolled device, which is the failure mode a vitals dashboard silently misses.
- Keep write idempotent by checking for an existing Observation on the dedupe tuple before creating a new one.
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.
- Bind device gateway webhooks with per-device signing secrets or mutual TLS and reject unsigned or replayed payloads at the System API edge
- Store vendor cloud and Epic client-credentials secrets in Anypoint Secrets Manager and rotate the Epic backend OAuth keys on the schedule Epic enforces
- Enforce that a reading can only be written to a patient with an active enrollment mapping, closing the path where a spoofed serial posts vitals to an arbitrary chart
- Scrub device payloads to the minimum-necessary fields before persistence; a BP cuff should not push GPS or account metadata into the reading store
Sample payload — US Core blood pressure Observation written to Epic from a home cuff
{
"resourceType": "Observation",
"status": "final",
"category": [{"coding": [{"system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "vital-signs"}]}],
"code": {"coding": [{"system": "http://loinc.org", "code": "85354-9", "display": "Blood pressure panel"}]},
"subject": {"reference": "Patient/eXaMpLePaTiEnTfHiRiD"},
"effectiveDateTime": "2026-08-20T07:42:00-05:00",
"device": {"reference": "Device/rpm-cuff-SN-4471902"},
"interpretation": [{"coding": [{"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", "code": "H", "display": "High"}]}],
"component": [
{"code": {"coding": [{"system": "http://loinc.org", "code": "8480-6", "display": "Systolic"}]}, "valueQuantity": {"value": 158, "unit": "mm[Hg]", "system": "http://unitsofmeasure.org", "code": "mm[Hg]"}},
{"code": {"coding": [{"system": "http://loinc.org", "code": "8462-4", "display": "Diastolic"}]}, "valueQuantity": {"value": 96, "unit": "mm[Hg]", "system": "http://unitsofmeasure.org", "code": "mm[Hg]"}}
]
}
Testing and validation
- Replay a gateway backlog of duplicate readings and assert the dedupe tuple produces exactly one Observation per unique patient device code timestamp
- Feed a reading with an unmapped device serial and confirm it lands in quarantine, not on a chart, with the correlation ID preserved
- Send a systolic value above threshold and verify the interpretation code is set and the RPM worklist notification fires
- Post readings in imperial units and assert DataWeave converts to UCUM correctly before write, for example lb to kg for weight
- Inject an Epic write failure and confirm the reading routes to the DLQ and retries without creating a partial or double Observation
- Simulate an enrolled device going silent past its expected cadence and verify the missing-reading alert fires
Phased rollout
Phase 1 — Connect
- Register the Anypoint backend app in Epic and confirm client-credentials token exchange with Observation.create scope.
- Stand up the System API ingress for one gateway type or one vendor API and land raw payloads in Anypoint MQ.
Phase 2 — Map and test
- Build DataWeave normalization and US Core profile mappings for one device class such as BP and validate against Epic's sandbox.
- Load the enrollment registry and run matching, dedupe, and threshold logic end to end in a non-production Epic environment.
Phase 3 — Production
- Enroll a pilot cohort with one device type, monitor DLQ and match rates daily, and reconcile written Observations against device vendor totals.
- Add device classes and vendors incrementally once match rate and latency hold within target.
Success metrics
- Reading-to-chart latency from device measurement to Epic Observation at p95 under a few minutes
- Match rate, the percent of readings resolved to a patient and active order on first pass
- Quarantine and DLQ rate as a share of total readings ingested
- Threshold-breach alert delivery time from ingest to RPM worklist
- Missing-reading detection, enrolled devices flagged silent versus actual gaps
Troubleshooting
- Readings pile up in quarantine and never reach the chart. — Likely cause: Device serials or gateway IDs are missing from the enrollment registry, or the registry went stale after re-enrollment. Fix: Refresh the enrollment mapping from Epic on a schedule and add a reconciliation report; treat sustained quarantine growth as an enrollment-sync failure, not a device fault.
- Duplicate Observations appear in the flowsheet after a gateway reconnects. — Likely cause: The dedupe key omits one of patient, device, LOINC code, or effective timestamp, so replayed backlog readings look new. Fix: Include the full tuple in the idempotency check and query Epic for an existing Observation before create.
- Blood pressure values write but display as a single number instead of systolic over diastolic. — Likely cause: The reading was mapped to a flat Observation rather than the US Core Blood Pressure profile with two components. Fix: Map systolic and diastolic as separate components under panel code 85354-9, each with its own LOINC code and UCUM unit.
Deliverable: A deployable Anypoint blueprint that ingests home monitoring device readings via Bluetooth gateways and vendor cloud APIs, normalizes and thresholds them, and writes vitals as FHIR R4 Observations into Epic with care-team review routing, packaged with DataWeave mappings, device-to-patient reconciliation logic, dead-letter handling, and CI/CD assets.