HL7 Integration Gateway
Radiology worklists can send a case to Foxo with one click, but the click carries almost nothing: a name, a date of birth, sometimes an order number. The rest of the picture already exists inside the customer's network as HL7 v2. This project puts a small gateway beside it.
- Role
- Solutions lead and project owner
- Status
- In pilot testing with one radiology group, a second scoped
- Timeline
- April 2026 to now
- Team
- Lead engineer, DevOps, integration specialist
Two problems, one box
The button payload is sparse because it is whatever the worklist vendor chose to expose. Modality, accession number, medical record number, referring doctor, appointment time and site are all missing, so staff type them in by hand and cases cannot be routed automatically. One customer had been asking its vendor for a richer payload for the better part of a year.
The second problem is older. The original integration relied on Foxo calling into the customer network, which meant an inbound firewall exception that security teams had granted reluctantly and wanted closed.
A gateway that lives on the customer's side solves both. It listens to the HL7 the customer already produces, and every connection to Foxo starts from inside their network, outbound, on port 443.
How it works
The customer's integration engine streams HL7 v2 to the gateway over MLLP. A listener acknowledges each message, a parser pulls out the fields that matter, and they land in a local encrypted cache with a time-to-live purge. Only three message types are kept: patient admin, orders and results.
The worklist button is repointed from Foxo Cloud to the gateway on the local network. Same path, same payload, new host. A matcher looks up the cached study, first on accession number and then on medical record number, fills the gaps, and a connector sends the enriched case outbound.
- Fill-empty only. A value the caller sent always wins, and identifier lists are added to, never replaced.
- Raw fallback. If matching fails or times out, the original payload goes through unchanged, so the worst case is exactly today's behaviour.
- Data minimisation. HL7 stays on the customer's machine and reaches the cloud only when someone actually sends a case.
- A match on medical record number enriches patient details but never copies study details across from a different exam.
One image, many sites
Every site bends the HL7 standard differently. In the sample messages we collected, the accession number sat in a different field at each site, modality moved around, one site sent timestamps with no UTC offset, and one was on an older version of the standard altogether.
Writing per-site code would have made each deployment a project. Instead the parser follows the standard positions and a small per-site file records the deviations only. The software ships as one versioned container image; the customer provides a modest virtual machine and owns it, we own what runs on it. An upgrade is promoting a tag, and a rollback is reverting it.
What I did
I own the project as solutions lead. I presented the architecture to engineering and DevOps to bring them into the work, ran the kick-off and the scoping session that split it into deliverable tickets, and wrote the field map that decides which HL7 value fills which gap.
On the customer side I handled the conversations that make a pilot possible: the machine requests, the benefits case for an applications team weighing it against other priorities, and the prep pack and thirteen-case test plan for the first end-to-end session.
Where it stands
The first customer session ran in November 2026. A gateway was running inside the customer's network, and a test case travelled from their worklist, through the gateway, and arrived in a Foxo staging environment enriched. Setup took longer than planned and the scripted test cases are still to run; one field did not enrich, which traced to configuration rather than design.
Nothing is in production yet, and I would rather say that plainly. The next phase is the return journey: sending Foxo outcomes back into the radiology system as HL7 results, which is where the hardest integration risk sits.
- HL7 v2
- MLLP
- REST API
- Docker