Security
HL7 Integration Module
A communication module that connects IoT-enabled hospital beds and bedside infrastructure to hospital information systems through HL7, with guaranteed delivery across hospital networks that were never designed for it.
Hospital beds have become devices. They report patient position, alarm states, occupancy and their own status, each manufacturer in its own protocol, and the hospital's core systems expect all of it as HL7 messages. The module sits between the two worlds: it talks to every bed, translates, validates, routes, and guarantees that the message about a patient leaving a bed reaches the nurse call system and the electronic health record.
What we built
- A device adapter framework where each manufacturer gets an adapter that handles the raw protocol, from RS-232 serial with custom binary formats and proprietary TCP to REST and MQTT, and translates device events into one canonical model. Connection management, reconnection logic, heartbeat monitoring and data buffering are shared utilities, so an adapter is only the part that is actually specific.
- Data normalization and unit conversion across device families.
- A message broker with persistent queues, automatic retry with exponential backoff and dead-letter handling for messages that cannot be delivered.
- Store-and-forward gateways that buffer up to 24 hours of data locally when a network segment drops out.
- A three-stage acknowledgment chain, device to gateway, gateway to broker, broker to destination, with independent retry logic at each hop, and priority lanes so alarms bypass normal queuing.
- A transformation engine for the HL7 dialect of each hospital. Custom Z-segments, non-standard field mappings and institution-specific code sets are described in a declarative configuration language, not in code.
- A validation pipeline in three stages: structural (segment order, required fields), semantic (approved code sets, consistent patient identifiers) and business rules (alarm severity consistent with clinical context). Invalid messages are quarantined with diagnostics.
- A message simulator that generates realistic HL7 traffic for integration testing before go-live.
- An operations dashboard with connectivity per bed, throughput and latency per device and per ward, validation error patterns and system health, with tiered alerting: device failures and delivery problems reach on-call staff by SMS and pager, elevated error rates go out by email, and slow trends such as growing connectivity issues in one building appear in weekly reports.
Design decisions
Translate at the edge, standardize in the middle. Every manufacturer protocol ends at its adapter. From the canonical model onward, HL7 translation, routing and delivery are the same code for every bed, so adding a manufacturer is adapter work only.
Assume the network is hostile. Hospital Wi-Fi is inconsistent, segments are heavily firewalled, and buildings constructed decades apart have different infrastructure. Transport corridors and older wings lose connectivity routinely. Store-and-forward buffers and per-hop acknowledgments exist so that a message is held, not lost, until the path returns.
Treat the dialect as configuration. The HL7 standard defines messages and segments, but every hospital information system speaks its own variant. Putting the mapping into declarative rules means an integration team adapts the module to a new hospital without a release.
Alarms first. A bed-exit alarm and a routine status update must not share a queue. Priority lanes give alarms dedicated capacity whatever the backlog.
In use
A patient leaves a bed in a ward with poor coverage. The gateway buffers the alarm, delivers it the moment the link returns, and the acknowledgment chain confirms arrival at the nurse call system and the EHR. A hospital IT team sees, per ward, which beds are online, degraded or offline, and plans maintenance from the connectivity history instead of from complaints. An integration team onboards a new hospital by writing its mapping rules and running the simulator against them before the first real message.
Where it fits
Hospitals and device manufacturers that need bed and bedside data inside the hospital information system, the electronic health record and the nurse call system, across buildings of different ages, with alarms that have to arrive.
What we learned
Reliable messaging in a hospital is a problem of buffers and acknowledgments, not of bandwidth. HL7 compliance is a negotiation with each hospital's dialect, which is why it has to live in configuration. And an operations dashboard is not an add-on: it is how the IT team learns to trust a system that moves alarms.
Technology
HL7 messaging with hospital-specific dialects described in a declarative mapping language. Device adapters for RS-232, proprietary TCP, REST and MQTT. A message broker with persistent queues, exponential backoff and dead-letter handling. Store-and-forward gateways. A three-stage acknowledgment chain with priority lanes. A message simulator for integration testing. A tiered alerting model.

