Migrating from Rhapsody
How Rhapsody routes, communication points, filters and lockers map to MedHook, and what the Rhapsody importer turns into draft workflows.
On this page
This page maps Rhapsody concepts to MedHook ones, so you can plan a migration. The importer reads a Rhapsody .rlc configuration file and turns each route into a disabled draft workflow, with an estimate of how much of each route converts on its own, and findings for what needs a person. Nothing runs until you review, test and enable it.
You can also move one interface at a time. MedHook sits in front of Rhapsody, forwards every message unchanged, and takes over interfaces one by one, with a rollback at each step. Cut over from Rhapsody, one interface at a time walks through it. To check a draft against Rhapsody's behaviour, replay captured traffic through it as a dry run and compare the output. See Executions and replay.
A row marked Available is something the current engine does. A row marked In progress is a gap MedHook is working on.
Import a Rhapsody export
Here is the flow.
sequenceDiagram
participant You
participant Rhapsody as Rhapsody IDE
participant Engine as MedHook engine
You->>Rhapsody: File › Save: Save Configuration Locally (.rlc)
You->>Engine: Migration › Import (dry run)
Engine-->>You: How much of each route converts
You->>Engine: Choose how each locker comes over
You->>Engine: Convert N to drafts
Engine-->>You: Disabled draft workflows-
In the Rhapsody IDE, choose File › Save to open the Save Configuration Locally wizard. Save the whole configuration, or choose components (the locker or folders you are moving). Rhapsody writes one
.rlcfile. Pick Remove Passwords From Exported Configuration in the wizard: MedHook never imports a password, so there is no reason to send one.What each export includes:
Export Includes Leaves out .rlcfrom the IDE (Save Configuration Locally)The chosen communication points and routes with their filters and connectors, the definitions they use, their Rhapsody variables, lookup tables, shared JavaScript, web services and tracking schemes, and each point's auxiliary files Certificates and keys, and web service users. Lookup tables used only by a Mapper are left out unless you add them REST GET /admin/config(the Rhapsody server card)The configuration the user can view, as Rhapsody's REST configuration zip ( configuration.xml)Lookup tables, Rhapsody variables, security objects, the web services user store, custom modules and templates -
In MedHook, open Migration, then the Import tab. Choose Rhapsody locker export and drop the locker's
.zip, or Rhapsody .rlc configuration and drop the.rlcfile. You don't need to unzip either one; a plain configuration XML works too. A file over 5 MB, or an archive that holds more than 500 files, is refused. Either card takes a.zip,.rlcor.xml; another file type is refused. Finder's__MACOSXfolder and dot files in a locker.zipare skipped.To read the lockers from a running Rhapsody instead, choose Rhapsody server, enter the REST API URL (for example
https://rhapsody.example.test:8444/api), a read-only User and its Password, then choose Connect read-only and discover. MedHook lists the server's lockers; tick the ones you want and choose Pull n and dry run. MedHook pulls Rhapsody's configuration export once, keeps only the lockers you ticked, and runs them through the same dry run as an uploaded locker export: the same totals, routes, estimates and locker modes, then Convert n to drafts. MedHook only reads (HTTPGETwith HTTP Basic auth:/api/info,/api/components/status, whose top folders are the lockers, and/admin/config, the configuration export) and never deploys, starts or stops anything. The user needs Rhapsody's 'View components REST API', 'View locker', 'Log in to Rhapsody IDE', 'Save configurations' and 'Save configuration REST API' access rights, and 'Locker view' on every locker; a missing right is named in the error. MedHook does not read Rhapsody's message store. The password is stored encrypted, like an adapter's credentials, and never shown again; remove the connection under Migration › Parallel runs when you are done. A Rhapsody server on a private network must be listed inSSRF_ALLOWLISTon the engine, and the connect then says so. Each request times out after 15 seconds. Rhapsody's REST API on port 8444 uses a self-signed certificate by default, which MedHook does not trust on its own: the connect stops and shows the certificate's SHA-256 fingerprint, subject, issuer and validity. Compare the fingerprint with the certificate on the Rhapsody server, then choose Trust this certificate and connect to pin exactly that certificate on the connection, or Upload CA certificate (.pem) when your organization's CA signed it. Every later pull, convert and parallel run checks the pin; if the certificate changes, MedHook sends nothing, shows the pinned and the new fingerprint, and waits for you to trust the new one. The pin is audited asmigration.source.cert_pinnedand a CA upload asmigration.source.ca_uploaded, with the host and the fingerprint only. The configuration export may be at most 25 MB, and the lockers you ticked together at most 5 MB. Rhapsody does not publish what its configuration export holds inside<lockers>, so a layout MedHook can't read is refused with a message that names what it found; export the lockers from the Rhapsody IDE and upload them instead. -
The engine runs a dry run at once. It reads the file only. You see the totals (lockers, routes, communication points, lookup tables, shared scripts), then every route with what it is and how much of it converts on its own.
-
For each locker, choose how it comes over: One workflow per route (each route deploys and rolls back on its own), or One workflow, routes as branches (the routes share an input, and each route becomes a router branch).
-
Choose Convert N to drafts. Each route, or each locker in branches mode, becomes a draft workflow, and all of them are disabled. They wait on Migration › In progress under Needs review; open one to read its findings on the review page, where the tabs are Components, Shared scripts, Lookup tables and Connections. The engine also creates an adapter profile for each input it polls and each output, with no credentials. Under Adapters, re-enter the credentials on every profile marked as needing them. It creates a workspace variable for each
$(NAME)variable the routes use and a code table for each lookup table with rows, every column kept (a name another code table already has is reported, not overwritten). The export does not name a table's columns, so a table with more than two is imported with columnscolumn1tocolumnN; rename them under Code tables.
The review page of a locker draft repeats the locker choice. The drafts already exist, so choosing the other mode there links back to Import with that mode set, and you import the locker again.
Importing the same route again does not make a copy. The engine reports the existing draft.
When MedHook can't read your export
MedHook learns your export's layout without holding your configuration. When a Rhapsody dry run fails, or reads with sections, elements or type codes MedHook doesn't know, the engine keeps a fingerprint of the file's structure. It does this on its own, for uploads and for live pulls from a Rhapsody server.
What a fingerprint holds:
- the file's kind (zip or XML) and size;
- the zip's entries as shapes only: an ID-like folder is
<uuid>, the root configuration issme*.xml, any other file is just its extension (<uuid>/*.xml). It never holds a file name, since one could name a host; - the XML root, whether its namespace is Rhapsody's, and its
FileVersionand other version attributes when they are numbers; - every element path (for example
Engine/CommPoints/CommPoint/Type) with a count, and the attribute names on each; - the communication point type and mode, the filter type and the property type, only when each is a short code such as
TCPServerorcpmInput; - which sections, elements and codes MedHook didn't know, and the refusal as a fixed reason.
Sending the file (opt-in). Under the error, Migration › Import asks "We couldn't read this Rhapsody export. Send the file to MedHook so we can support it?" The file is kept only after you tick This file contains no patient data, or test messages have been removed and choose Send file. Without that, only the fingerprint is kept. Before a BAA is signed, send only an export with its test messages removed.
Who sees it, and for how long. Admins see the fingerprints under Migration › Import › Import diagnostics. Each one shows its root, its FileVersion, and what MedHook didn't know. It also offers Download fingerprint (JSON), Download file when the file was shared, and Delete. A shared file is stored encrypted (AES-256-GCM, like adapter credentials) and is deleted after 30 days. An admin can delete it sooner. Each event is audited with the fingerprint's id, root, FileVersion and counts, never a value:
migration.import_failedormigration.import_unrecognized;migration.import_file_shared,migration.import_file_downloaded(every download) andmigration.import_file_deleted;migration.import_capture_deleted.
Concept map
| Rhapsody | MedHook | Status |
|---|---|---|
| Route | Draft workflow, from the importer | Available |
| Input communication point | Trigger | Partly available (see below) |
| Output communication point | Adapter step on a router branch | Partly available (see below) |
| Sink communication point | Sink (discard) destination: records each message, delivers nothing; no connection needed | Available |
| Message type or property filter | Trigger message types or filter rules, ahead of any Mapper. A condition that can't convert fails closed (see below) | Available |
| Mapper filter | Data map, when every line copies a field | Available; mapper scripts in progress |
| JavaScript filter | JavaScript transform that runs the script as written, pinned to any shared JavaScript it calls, for review | Available for review |
| XSLT filter | XSLT step with the filter's stylesheet | Available |
| Message properties | Review finding; carry the value in the message | In progress |
Rhapsody variables $(NAME) | Workspace variables, created on import. A plain value in the export is used; a secret or undefined one is left empty | Available |
| Lookup tables | Code tables, created on import from the rows in the export. A table named without rows is flagged | Available |
| Multi-column lookup tables | Code tables with named columns: match on any columns, return any column or the whole row. Imported with every column | Available |
| Shared JavaScript | Shared libraries, created on import and pinned on the steps whose scripts call them | Available |
| Mapper (.mdm) projects, message definitions | Counted and flagged, not imported | In progress |
| Multi-input routes | The draft uses the first input; import a copy for each other one | In progress |
| Error and retry connections | Not imported; each destination retries 3 times by default | In progress |
| Tracking schemes, schedules | Not imported | In progress |
| REST clients, Web Service Hosting | REST clients counted and flagged; Web Service Hosting becomes a webhook (review) | In progress |
| Pull-sync for parallel runs | Not available: a parallel run compares the messages you send it | In progress |
| Error queue | Messages › Needs action: view, replay, skip | Available |
| Message tracking | Executions and message search | Available |
| Notifications | Alert rules, including error match rules by error type, step or adapter | Available |
| Watch lists, acknowledge an alert | No equivalent | In progress |
| Lockers and security groups | Workspaces and the viewer, operator and admin roles | In progress |
| Commit and deploy a configuration | Versions, approval and the deploy checklist | Available |
Communication points
The importer maps each communication point by its type and mode. A route uses its first input; a route with more than one input needs review. A route with no output that converts is blocked. Credentials (passwords, service account keys) are never imported: re-enter them on the adapter profile. A Google Cloud point uses the engine's own service account (workload identity) until you switch its profile to a key.
Inputs
| Rhapsody input communication point | MedHook | Status |
|---|---|---|
| TCP Server (MLLP) | MLLP trigger on the engine's MLLP port | Available |
| TCP Server (Raw, Delimited) | MLLP trigger, with the raw TCP listener (framing, start and end bytes) your operator declares in Helm mllp.listeners named in a finding | Available |
| TCP Server port per route | A named MLLP listener declared by your operator | In progress |
| HTTP Server | Webhook trigger; senders post to the new webhook URL | Available |
| Web Service Hosting | Webhook trigger; you unwrap the SOAP envelope (review) | In progress |
| HTTP Client (polling) | Polling trigger on a Generic REST adapter profile. A query parameter that asks for changes since a time (FHIR _lastUpdated or _since, or since, updated_since and similar) is sent as {{cursor}}, the last value the trigger saw, so each poll reads only what changed. FHIR reads meta.lastUpdated as the cursor field; for another parameter, set the cursor field (review) | Available |
| SFTP (File Transfer) | SFTP pickup trigger: one run per file, with its content; the folder, file filter, poll interval and delete or move after read come over | Available |
| Directory | File pickup trigger on a Local File profile; the folder must be mounted into the engine (review) | Available |
| Database | Polling trigger on the SQL database adapter (PostgreSQL, SQL Server, MySQL or Oracle) when the point has a query; otherwise the draft starts manually | Available |
| FTP | File pickup trigger on an FTP or FTPS profile (plain FTP is kept, with a review finding) | Available |
| JMS | JMS trigger on a JMS profile over AMQP 1.0: the broker host and port, queue or topic, selector, durable subscription, user name and client id come over (review the broker's AMQP port) | Available |
| Timer | Cron trigger from the interval, time of day and days, or cron expression. Any change to the schedule is named in a review finding. The message the timer sent is named in a review finding | Available |
| Google Pub/Sub | Pull Pub/Sub trigger on the subscription, with the project on the profile | Available |
| Google Cloud Storage | Polling trigger that lists the bucket and folder, one run per new or changed object; add a get step to read each object (review) | Available |
| Email (reading a mailbox) | Rebuild by hand: have the sender post to a webhook or drop files for a file pickup | By hand |
| ASTM, Execute Command, others | Blocked: rebuild by hand | In progress |
Outputs
| Rhapsody output communication point | MedHook | Status |
|---|---|---|
| TCP Client (MLLP, Raw, Delimited) | MLLP adapter step, with the point's framing on the profile | Available |
| HTTP Client | Generic REST adapter step | Available |
| Web Service Client | Generic REST adapter step (review): build the SOAP envelope in a transform before it, or replace it with a SOAP adapter step | Available |
| FHIR Client | FHIR REST adapter step | Available |
| SFTP | SFTP adapter step (upload) | Available |
| Database | SQL database execute step, with the driver, URL and statement from the point's settings file in the .rlc (review); without one the output is left out with a finding | Available |
| Directory | upload step on a Local File profile | Available |
| FTP | upload step on an FTP or FTPS profile | Available |
SMTP send step: the server, port and security on the profile, the recipients, sender and subject on the step | Available | |
| Sink | Sink (discard) step: records the message, delivers nothing, needs no profile | |
| JMS | JMS send step to the queue or topic | Available |
| Google Cloud Storage | Google Cloud Storage upload step in the bucket and folder, named from the point's object name | Available |
| Google Pub/Sub | Pub/Sub publish step to the topic, with its ordering key | Available |
| Others | Left out with a finding | In progress |
The MedHook side of each row is described in Triggers, Adapters, Filters and Transforms.
What the report says
| Estimate | Meaning |
|---|---|
| fully automatic | The route converts with nothing to review. |
| about N% | That share of its steps converts on its own; the rest need your eyes: a JavaScript filter, a message property, a left-out output. |
| needs review | A person checks it before it runs. Shared JavaScript always reads this. |
| (the reason) | The input has no MedHook equivalent yet, or no output converts. No draft is created, and the route can't be selected. |
Filters run in Rhapsody's order. A rule filter before the first Mapper or JavaScript filter stays ahead of it: on the trigger, which drops the message at intake, or, for a trigger that can't filter, on every output with the transforms moved after it. A condition MedHook can't convert (an unknown operator, a message property) fails closed: an AND filter rejects every message and an OR filter accepts only through its other terms, with a review finding, until you replace it.
Each $(NAME) variable a communication point uses becomes a workspace variable under Settings › Secrets & variables. Where the export holds the value in plain text, the value is also put on the adapter profile; a credential, or a variable the export doesn't define, is created with no value for you to enter.
A JavaScript filter runs as it was written, under MedHook's Rhapsody compatibility layer: input[], output.append and output.appendMessage, message properties (getProperty, setProperty, removeProperty, hasProperty, getPropertyNames, kept in the channel map for later steps), getText/setText, getBody/setBody, getField/setField on HL7 v2 paths, and log. The step is marked for review: check it with a sample message before you enable the draft. Each Rhapsody call in the script that MedHook runs differently is named in a review finding, and the step stops with an error naming that call when it reaches it. A script that appends no message, or more than one, stops with an error too: move that condition into a filter rule, or split the messages before the step. The Agent can still suggest a native MedHook rewrite.