Skip to content
Reference

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
  1. 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 .rlc file. 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:

    ExportIncludesLeaves out
    .rlc from 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 filesCertificates 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
  2. 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 .rlc file. 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, .rlc or .xml; another file type is refused. Finder's __MACOSX folder and dot files in a locker .zip are 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 (HTTP GET with 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 in SSRF_ALLOWLIST on 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 as migration.source.cert_pinned and a CA upload as migration.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.

  3. 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.

  4. 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).

  5. 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 columns column1 to columnN; 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 is sme*.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 FileVersion and 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 TCPServer or cpmInput;
  • 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_failed or migration.import_unrecognized;
  • migration.import_file_shared, migration.import_file_downloaded (every download) and migration.import_file_deleted;
  • migration.import_capture_deleted.

Concept map

RhapsodyMedHookStatus
RouteDraft workflow, from the importerAvailable
Input communication pointTriggerPartly available (see below)
Output communication pointAdapter step on a router branchPartly available (see below)
Sink communication pointSink (discard) destination: records each message, delivers nothing; no connection neededAvailable
Message type or property filterTrigger message types or filter rules, ahead of any Mapper. A condition that can't convert fails closed (see below)Available
Mapper filterData map, when every line copies a fieldAvailable; mapper scripts in progress
JavaScript filterJavaScript transform that runs the script as written, pinned to any shared JavaScript it calls, for reviewAvailable for review
XSLT filterXSLT step with the filter's stylesheetAvailable
Message propertiesReview finding; carry the value in the messageIn progress
Rhapsody variables $(NAME)Workspace variables, created on import. A plain value in the export is used; a secret or undefined one is left emptyAvailable
Lookup tablesCode tables, created on import from the rows in the export. A table named without rows is flaggedAvailable
Multi-column lookup tablesCode tables with named columns: match on any columns, return any column or the whole row. Imported with every columnAvailable
Shared JavaScriptShared libraries, created on import and pinned on the steps whose scripts call themAvailable
Mapper (.mdm) projects, message definitionsCounted and flagged, not importedIn progress
Multi-input routesThe draft uses the first input; import a copy for each other oneIn progress
Error and retry connectionsNot imported; each destination retries 3 times by defaultIn progress
Tracking schemes, schedulesNot importedIn progress
REST clients, Web Service HostingREST clients counted and flagged; Web Service Hosting becomes a webhook (review)In progress
Pull-sync for parallel runsNot available: a parallel run compares the messages you send itIn progress
Error queueMessages › Needs action: view, replay, skipAvailable
Message trackingExecutions and message searchAvailable
NotificationsAlert rules, including error match rules by error type, step or adapterAvailable
Watch lists, acknowledge an alertNo equivalentIn progress
Lockers and security groupsWorkspaces and the viewer, operator and admin rolesIn progress
Commit and deploy a configurationVersions, approval and the deploy checklistAvailable

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 pointMedHookStatus
TCP Server (MLLP)MLLP trigger on the engine's MLLP portAvailable
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 findingAvailable
TCP Server port per routeA named MLLP listener declared by your operatorIn progress
HTTP ServerWebhook trigger; senders post to the new webhook URLAvailable
Web Service HostingWebhook 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 overAvailable
DirectoryFile pickup trigger on a Local File profile; the folder must be mounted into the engine (review)Available
DatabasePolling trigger on the SQL database adapter (PostgreSQL, SQL Server, MySQL or Oracle) when the point has a query; otherwise the draft starts manuallyAvailable
FTPFile pickup trigger on an FTP or FTPS profile (plain FTP is kept, with a review finding)Available
JMSJMS 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
TimerCron 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 findingAvailable
Google Pub/SubPull Pub/Sub trigger on the subscription, with the project on the profileAvailable
Google Cloud StoragePolling 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 pickupBy hand
ASTM, Execute Command, othersBlocked: rebuild by handIn progress

Outputs

Rhapsody output communication pointMedHookStatus
TCP Client (MLLP, Raw, Delimited)MLLP adapter step, with the point's framing on the profileAvailable
HTTP ClientGeneric REST adapter stepAvailable
Web Service ClientGeneric REST adapter step (review): build the SOAP envelope in a transform before it, or replace it with a SOAP adapter stepAvailable
FHIR ClientFHIR REST adapter stepAvailable
SFTPSFTP adapter step (upload)Available
DatabaseSQL 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 findingAvailable
Directoryupload step on a Local File profileAvailable
FTPupload step on an FTP or FTPS profileAvailable
EmailSMTP send step: the server, port and security on the profile, the recipients, sender and subject on the stepAvailable
SinkSink (discard) step: records the message, delivers nothing, needs no profile
JMSJMS send step to the queue or topicAvailable
Google Cloud StorageGoogle Cloud Storage upload step in the bucket and folder, named from the point's object nameAvailable
Google Pub/SubPub/Sub publish step to the topic, with its ordering keyAvailable
OthersLeft out with a findingIn progress

The MedHook side of each row is described in Triggers, Adapters, Filters and Transforms.

What the report says

EstimateMeaning
fully automaticThe 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 reviewA 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.

Reference