The Path
Module 4 · Transport and acknowledgements·12 min
Interface engines
Channels, filters, transformations, queues: the hospital’s switchboard.
In a hospital, the patient record, the lab, radiology, billing and the sleep lab all want to exchange messages. If each one talks directly to every other, you get a plate of spaghetti. The fix: an interface engine in the middle, the hospital’s switchboard.
Here is what an engine does to a message. First, the result as it leaves the sleep lab software.
The lab software sends the result with its own patient number and a lowercase name.
Then the same result as it leaves the engine, ready for the patient record.
The engine swapped the lab number for the clinic’s medical record number, uppercased the name and addressed the message to the patient record. The sender has not changed.
Compare PID-3, PID-5 and MSH-5 between the two versions. The clinical result (OBX-5 = 28.5) has not moved: the engine adapts the packaging, not the medical content.
Look at MSH-3 as well: it is still SLEEPLAB. The engine changes the recipient, not the sender. The patient record needs to know this result comes from the sleep lab, to file it and for traceability. Here MSH-10 is kept too, so you can follow the message end to end through the logs. Some sites regenerate it: that is a choice to write into the specification.
Point to point or engine in the middle
Point to point: every application has a direct link with every other. With 10 applications, that is 45 links, each with its own settings and its own failures.
Engine in the middle (hub-and-spoke): each application has a single link, to the engine. The engine knows who should get what. Adding a system means plugging in one more link, not ten.
What an engine does
| Role | Example at Clinique Leleux |
|---|---|
| Route | a sleep lab ORU goes to the patient record and to billing |
| Transform | reformat a date, translate a local code, replace an identifier |
| Filter | do not send other departments’ admissions to the sleep lab |
| Queue | hold messages while a receiver is down |
| Retry | resend automatically after a failure |
| Log | keep every message received and sent, with its ACK, for a set retention period (see the security lesson) |
| Monitor | raise an alert when a queue grows or a connection drops |
Anatomy of a channel
In an engine, a feed is usually called a channel. Depending on the product, you will also hear “route”, “thread” or “production”: the idea is the same. It describes where messages come from, what happens to them on the way, and where they go.
- Source: the way in. A listening MLLP port, a watched folder, an HTTP address.
- Filter: a condition. The message moves on only if it is true, for example “
PV1-3starts withSLEEP”. - Transformer: the changes. Copy a field, change a format, translate a code with a lookup table.
- Destination: the way out. A channel can have several, each towards a different system.
Queues and messages in error
A good engine never loses a message. If the patient record does not answer, the message stays in the destination’s queue and the engine retries. If the record answers AE, the message goes into error: someone has to look at it, fix it, then reprocess it.
That is why the engine dashboard matters so much: how many messages are queued, how many are in error, and since when.
Who answers the lab?
The sleep lab sends its result to the engine and waits for an ACK. But who sends it, and when? Two options:
- The engine answers straight away, as soon as it has received and stored the message. It then handles delivery to the patient record on its own. This is often the default, Mirth Connect and Open Integration Engine included.
- The engine relays the destination’s ACK: it waits for the patient record’s answer and passes it back to the lab.
With the first option, the AA the lab gets only proves that the engine has the message. It says nothing about the patient record. That is the “AA too early” trap from the acknowledgements lesson. It is fine as long as the engine watches its queue to the patient record closely. But you need to know it, and write it into the specification.
A few engines you will come across
Mirth Connect, published by NextGen Healthcare, was available for a long time as a free open source version. Since version 4.6, released in March 2025, it is distributed under a commercial licence only. The last open source version is 4.5.2.
Members of the community picked up that open source code (MPL 2.0 licence) in a project called Open Integration Engine, now incubating at the Eclipse Foundation. For learning at home, it is a free option that describes itself as compatible with Mirth Connect.
On the commercial side, you will also hear about Infor Cloverleaf, widely installed in European hospitals, Rhapsody, InterSystems Health Connect or Iguana, and in France Enovacom. The names change, the concepts stay: source, filter, transformation, destination, queue.
And FHIR?
An engine does not only speak HL7 v2. It also reads XML and JSON, and several products handle FHIR. That makes it a natural place to translate a v2 message into FHIR resources when a new system requires it.
Check your understanding
1 of 4A clinic connects 6 applications point to point, each one with every other. How many links does it need?
+50 XPPass the quiz (3 correct answers) to complete the lesson.
Reviewed and checked on 27 September 2026