Cut over from Rhapsody, one interface at a time
Put MedHook in front of a legacy interface engine, then move interfaces across one by one, with a rollback at every step.
On this page
- How the stages work
- Before you start
- Steps
- 1. Create the template workflow
- 2. Point the forward step at the legacy engine
- 3. Deploy, then re-point the senders
- 4. Build the new workflow beside the passthrough
- 5. Move the interface
- 6. Roll back one interface
- 7. Retire the passthrough
- Test it
- Troubleshooting
- Reference
You do not have to move every interface in one weekend. This guide puts MedHook in front of your legacy engine (Rhapsody, Mirth Connect or another) so it receives every message and forwards it unchanged. Then you move interfaces to MedHook one at a time, and you can move any of them back.
This is the strangler fig approach. A strangler fig grows around a tree and slowly takes over its job. Here, MedHook grows around the old engine. The old engine keeps working until nothing needs it, and you never switch off a whole system in one step.
sequenceDiagram
participant Sender as Sending system
participant Engine as MedHook engine
participant Legacy as Legacy engine
Note over Sender,Legacy: Stage 1, front door
Sender->>Engine: HL7v2 over MLLP
Engine-->>Sender: ACK (AA)
Engine->>Legacy: Same message, unchanged
Note over Sender,Legacy: Stage 2, one interface moves
Sender->>Engine: ADT^A01
Engine->>Engine: New workflow delivers it
Engine-->>Sender: ACK (AA)
Note over Engine,Legacy: The passthrough no longer forwards ADTHow the stages work
| Stage | What happens | Risk |
|---|---|---|
| 1. Front door | Senders point at MedHook once. MedHook records each message, answers the ACK, and forwards the message to the legacy engine unchanged. | Low. Delivery still runs on the legacy engine. |
| 2. Shadow | You build the new workflow for one interface. It runs beside the passthrough and sends to a test destination. | None for production. |
| 3. Move | You point the new workflow at the real destination and stop the passthrough forwarding that interface. | One interface at a time. |
| 4. Retire | When every interface has moved, turn off the passthrough and the legacy engine. | Done last. |
To measure the shadow stage, run a parallel run: the new workflow runs on a copy of every message without delivering anything, and a report compares its output with the legacy engine's, field by field, before you move the interface.
Before you start
- The address where the legacy engine listens for MLLP today (host and port).
- Network reach from the engine to the legacy engine. If it is on a private network, set up a site-to-site tunnel first.
- Senders you can re-point. You change each sender's address once.
- A sample message for each interface, to test with. See Test with sample messages.
Steps
1. Create the template workflow
In Workflows, choose Templates, choose Legacy engine passthrough (strangler front door), then Use this template in its preview. It has an MLLP trigger for all message types and one step, Forward to legacy engine. It is created disabled.
2. Point the forward step at the legacy engine
Under Adapters, create an MLLP Outbound adapter profile with the host and port the legacy engine listens on today. Choose that profile under Profiles it uses in the template's preview, or later: open the workflow, select Forward to legacy engine, and choose it under Adapter profile.
The step retries 3 times when the legacy engine answers AE or the message never reaches it. An AR, a commit ACK or an ACK for another message is never resent, because the legacy engine may already have the message.
3. Deploy, then re-point the senders
Deploy the workflow: in Workflows, turn on the workflow's switch and choose Go to Deploy, then choose Deploy v1 to all messages on the Versions tab (see Save and deploy). Deploying enables it. Then change each sending system from the legacy engine's address to the MedHook MLLP address. Do this one sender at a time and check each one.
What senders see from then on:
- AA once MedHook has durably recorded the message. The forward to the legacy engine runs right after.
- AE if MedHook could not record it. The sender resends.
- AR if no enabled workflow takes the message.
The legacy engine sees MedHook as the sending host. A resend of a message MedHook already recorded (same MSH-10 from the same sender) is not forwarded twice.
4. Build the new workflow beside the passthrough
Import the route's draft from a Rhapsody export (see Migrating from Rhapsody) or a Mirth channel, or build it. Every enabled MLLP workflow that matches a message runs. So a new workflow for ADT runs next to the passthrough. While you compare the two, point the new workflow at a test or shadow destination. If you point it at the production system, that system gets every message twice, once from each engine.
Test the new workflow with a message from that interface. See Test with sample messages, including batch replay of an export from the legacy engine.
5. Move the interface
Do both in the same change:
- Point the new workflow at the production destination.
- On the passthrough trigger's filter, add a rule that excludes this interface. Exclude by
messageTypeorsendingFacility. In the builder's rule editor, use not in (for exampleMSH-9.1not inADT, ORU), or not equals for one value. In the workflow JSON the operator isnot_in. Each text rule also has match case or ignore case.
The passthrough stops forwarding that interface, and the new workflow delivers it. Repeat for the next interface.

6. Roll back one interface
To send an interface back to the legacy engine, undo step 5 for it:
- Remove the exclusion rule from the passthrough filter.
- Point the new workflow back at the shadow destination, or disable it.
The passthrough forwards that interface again, and the legacy engine delivers it as before. Nothing changes for the sender, because the sender still talks to MedHook.
To roll back everything, disable every new workflow and remove the exclusion rules. To remove MedHook from the path, re-point the senders to the legacy engine. That is the only step that touches the senders.
7. Retire the passthrough
When every interface runs on MedHook, check Needs action and Queues on Messages are empty, disable the passthrough, and switch off the legacy engine. Keep an export of the legacy channels for reference. You can also export a workflow back to Mirth if you need a way out. See Migrate from Mirth Connect.
Test it
Send this message to the MedHook MLLP address while only the passthrough is enabled.
MSH|^~\&|SENDER|FAC|RECEIVER|FAC|20260101120000||ADT^A01|MSG0001|P|2.5.1
PID|1||MRN0001^^^FAC^MR||TESTPATIENT^SAMPLE||19800101|FYou should get MSA|AA|MSG0001 back from MedHook. The same message, unchanged, should arrive at the legacy engine. The message also shows up in Messages. Send it again with the same MSH-10. The sender still gets AA and the legacy engine does not get a second copy.
Troubleshooting
| Problem | Fix |
|---|---|
| The sender gets AR | No enabled workflow takes the message. Enable the passthrough, or check its filter. |
| The sender gets AE | MedHook could not record the message. Check the engine's health and database, then let the sender resend. |
| The legacy engine gets nothing | Check the adapter profile host and port, the tunnel, and any firewall between the two. |
| The destination gets every message twice | The new workflow points at production and the passthrough still forwards that interface. Add the exclusion rule. |
| A message sits in Needs action | The forward failed after the legacy engine may have received it. Check the legacy engine, then Replay. |
The forward fails as delivery uncertain | The legacy engine answered with a commit ACK (CA, CE, CR), an ACK with no MSA, or an ACK for another MSH-10. Only an AA for the message sent counts. Check the legacy engine, then Replay if the message is missing. |
The forward fails with Application Reject (AR) | The legacy engine refused the message for good. It is not resent. Fix the message or the legacy channel, then Replay. |