Point-of-care Middleware Integrations Objective: Point-of-care and near-patient instruments (blood gas analyzers, glucose meters, coagulation, urinalysis, i-STAT-class devices) emit results in proprietary serial, ASTM E1394, or POCT1-A frames that Epic Beaker cannot consume directly. Results arrive without a placed order, carry device-local test codes instead of LOINC, and identify operators and patients by badge or accession scans that must be reconciled to Epic identities. Done looks like: every validated instrument result lands in Beaker as a conformant ORU^R01, matched to the correct patient and order (or routed to a hold queue when it cannot be matched), with device, operator, and specimen provenance preserved and no silent drops. This accelerator packages the Point-of-care Middleware Integrations Epic Data Sharing Playbook as a MuleSoft-anchored solution plan. What's Getting Built POCT/ASTM Device Intake (System API) — terminates device data manager connectivity, decodes ASTM/POCT1-A frames, checksum-validates and durably enqueues · POCT1-A LISTEN (HTTPS), ASTM E1394 LISTEN (LLP/serial), MLLP LISTEN, ENQUEUE per-device-class queue Translate & Match (Process API) — translates instrument results to LOINC/UCUM, reconciles patient and order, builds ORU^R01 · CONSUME queue, BUILD ORU^R01, MATCH order (ORM/OML), ROUTE hold-queue LOINC/UCUM Crosswalk (Object Store) — versioned device-test-code to LOINC and device-to-Beaker-instrument mapping · GET /{deviceCode}, PUT /{deviceCode} Per-device-class DLQ (Dead-letter queue) — holds unmapped, unmatched, or Bridges-rejected frames with original payload for correlation-ID replay · ENQUEUE /{correlationId}, CONSUME /{correlationId}, REPLAY Bridges / Beaker (target) — receives conformant ORU^R01 over MLLP and files results into Beaker on ACK · MLLP SEND ORU^R01, ACK (AA/AE/AR) Silent-device Watchdog (Scheduler) — tracks per-device last-seen and alerts when a device misses its expected reporting interval · SCHEDULER poll last-seen, ALERT missing-interval Prerequisites Epic Bridges inbound results interface configured to accept ORU^R01 over MLLP with an agreed sending/receiving application and facility POCT1-A or ASTM E1394 connectivity from each device data manager (or a middleware concentrator such as a POC data management system) into the MuleSoft VPC A maintained device-test-code to LOINC map and a device-to-Beaker-instrument crosswalk, versioned in Anypoint object store or a governed reference table Beaker test compendium, specimen types, and result value units confirmed with the lab so translated units match expected ranges Operator and patient identity feeds: an Epic provider/user extract for operator badge reconciliation and an ADT feed or MRN/CSN lookup for patient matching Anypoint Platform with MLLP and TCP/serial-gateway connectors, VM/Anypoint MQ for queuing, and a dead-letter queue provisioned per device class 1. Epic interfaces and standards This accelerator implements the Point-of-care Middleware Integrations Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building. Beaker (laboratory results and specimen/result storage) Bridges (HL7v2 interface engine, inbound ORU^R01) HL7v2 ORU^R01 unsolicited observation results HL7v2 ORM/OML order messages for order-to-result reconciliation IHE PCD-01 / POCT1-A and ASTM E1394 device data exchange LOINC observation coding and UCUM units Architecture 2. Business requirements Deliver every clinically valid point-of-care result into Beaker as a conformant ORU^R01, so bedside glucose and blood gas values appear in the chart without manual transcription. Preserve full provenance on each result: device serial, reagent lot, operator badge, specimen accession, and instrument timestamp, because point-of-care compliance audits demand it. Never silently drop a result; a value that cannot be matched to a patient or order must land in a visible hold queue, not vanish. Translate device-local test codes to LOINC and device units to UCUM so Beaker reference ranges and delta checks evaluate correctly. Support both order-based instruments and orderless devices, generating the interim order reference Beaker expects when no ORM was placed. 3. Ingestion and framing Terminate device connectivity in a System API per protocol: POCT1-A over HTTPS, ASTM E1394 over LLP/serial gateway, or a vendor data manager over MLLP. Decode ASTM framing (STX, checksum, ETX) and POCT1-A envelopes at the edge and reject frames failing checksum before they enter the pipeline. Stamp each inbound message with a correlation ID keyed on device serial plus instrument sequence number so retries do not create duplicate results. Buffer inbound frames to a per-device-class queue immediately on receipt, acknowledging the device only after durable enqueue, not after end-to-end delivery. Keep the System API dumb: no mapping or matching here, only protocol decode, integrity check, and enqueue. 4. Mapping and normalization Map device-local analyte codes to LOINC using a versioned crosswalk; fail the message to DLQ on an unmapped code rather than sending an uncoded OBX. Convert instrument units to UCUM and confirm the numeric result magnitude matches the expected Beaker range for that analyte. Build the ORU^R01 in DataWeave: populate OBR with the specimen and device, OBX per analyte with LOINC in OBX-3, UCUM in OBX-6, and abnormal flags in OBX-8. Carry operator badge into the responsible-observer field and reagent lot into an OBX or NTE segment so lot recalls are traceable. Set OBX-11 result status correctly, distinguishing preliminary, final, and corrected results the device may re-transmit. 5. Order and patient matching Reconcile the patient identifier from the scanned MRN or accession against the ADT feed before building PID; route to hold queue on no match. For order-based devices, match the instrument accession to an open Beaker order (ORM/OML) and reference it in ORB/OBR so results file to the correct order. For orderless devices, generate the interim placer/filler order reference per the Beaker point-of-care testing configuration. Reconcile operator badge to an Epic user; flag but do not block results from unregistered operators, since blocking loses clinical data. Alert on the absence of an expected result, which is the failure mode dashboards miss most often when a device silently goes offline mid-shift. 6. Delivery and operations Deliver to Bridges over MLLP and treat only the HL7 ACK (AA) as success; parse AE/AR and route rejects to the DLQ with the original frame attached. Replay from the DLQ preserving the original correlation ID so Beaker de-duplicates re-sent results rather than filing them twice. Monitor per-device throughput and last-seen timestamp; alert when a device that normally reports hourly falls silent. Rate-limit and back-pressure high-volume glucose meters so a batch upload after a network outage does not overrun Bridges. Log every mapping decision and match outcome with the correlation ID so a disputed bedside value can be traced end to end. 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. Terminate device data manager connections with mutual TLS and pin each device concentrator by certificate, since point-of-care networks often span unsecured clinical VLANs. Do not persist raw result values in queue payloads longer than the replay window requires; encrypt at rest and purge DLQ entries on a defined retention clock. Treat operator badge identifiers as workforce identifiers subject to access logging, not free-text metadata. Validate device serial against an allowlist so a rogue or misconfigured analyzer cannot inject results into Beaker. Sample payload — Translated ORU^R01 for a point-of-care blood gas result MSH|^~\&|POCMW|LAB|EPIC|BEAKER|20260820T1412||ORU^R01^ORU_R01|MW-0000481-317|P|2.5.1 PID|1||E1004827^^^EPIC^MR||DOE^JANE||19710204|F PV1|1|I|ICU^0412^A ORC|RE|POC-317||POC-317|CM OBR|1|POC-317||24336-0^Blood gas panel^LN|||20260820T1409|||||||||OPBADGE-8841 OBX|1|NM|2703-7^Oxygen partial pressure^LN||88|mm[Hg]^^UCUM|75-100|N|||F|||20260820T1409|ISTAT-SN-44219 OBX|2|NM|11557-6^pH^LN||7.36|[pH]^^UCUM|7.35-7.45|N|||F|||20260820T1409|ISTAT-SN-44219 NTE|1||Reagent lot 6621-B Testing and validation Send a golden ASTM E1394 frame and a POCT1-A message per device model and assert byte-accurate ORU^R01 output, including LOINC in OBX-3 and UCUM in OBX-6. Corrupt an ASTM checksum and confirm the frame is rejected at the System API and never enqueued. Submit a result with an unmapped device analyte code and verify it lands in the DLQ, not Beaker with a blank code. Replay a DLQ message with the same correlation ID and confirm Beaker de-duplicates rather than double-filing. Simulate a Bridges AE/AR and confirm the reject routes to DLQ with the original frame preserved. Fire a duplicate instrument sequence number and confirm idempotent handling produces one result. Phased rollout Phase 1 — Connect Stand up the System API against one low-risk device class (e.g. glucose meters) in a lab test partition. Confirm POCT1-A/ASTM connectivity and durable enqueue with the device data manager before touching Beaker. Phase 2 — Map and test Load and version the LOINC/UCUM crosswalk for the pilot device and validate ORU^R01 output against Bridges in a non-production Epic environment. Run parallel: instrument results flow through middleware while techs verify each against the device screen for a defined shadow period. Phase 3 — Production Cut over the pilot device class to production Bridges, monitoring per-device last-seen and ACK rates for the first shifts. Onboard remaining device classes incrementally, adding each crosswalk and hold-queue rule before enabling live delivery. Success metrics Result delivery success rate (ORU messages ACKed AA by Bridges divided by validated instrument results) Match rate: percent of results auto-matched to patient and order versus routed to hold queue Median device-to-Beaker latency per device class DLQ volume and mean time to replay by failure reason Silent-device detections: count of devices flagged for missing an expected reporting interval Troubleshooting Results file to Beaker with a blank or wrong reference range and no delta check fires. — Likely cause: Device units were sent without UCUM conversion or the LOINC map points to the wrong analyte, so Beaker cannot align the value to a range. Fix: Correct the crosswalk entry, confirm OBX-6 carries a valid UCUM unit, and re-run the golden-frame test for that analyte. Duplicate results appear in the chart after a network outage. — Likely cause: Retries used a new correlation ID, so Beaker treated re-sent frames as distinct results. Fix: Key the correlation ID on device serial plus instrument sequence number and confirm idempotent enqueue and DLQ replay preserve it. A device stops reporting mid-shift but no alert fires. — Likely cause: Monitoring watched only error rates, not the absence of an expected reporting interval. Fix: Add a last-seen watchdog per device that alerts when a device exceeds its normal reporting cadence. Deliverable: A deployable Anypoint blueprint that fronts point-of-care and near-patient diagnostic hardware behind an ASTM E1394 and HL7v2 System API, translates instrument results into Beaker-ready ORU^R01 messages via DataWeave, and delivers them to Bridges with device correlation, order matching, and dead-letter replay.