Migration
Migration endpoints of the MedHook engine API: 20 operations with parameters, schemas and a curl example for each.
On this page
- List the steps an AI rewrite is offered for
- Suggest an AI rewrite of an imported step
- Accept an AI rewrite
- Preview a Mirth Connect or Rhapsody import
- Import Mirth channels or Rhapsody routes as draft workflows
- Preview an IPsec / firewall config import
- Create VPN tunnels from an IPsec config
- Migration board
- Create draft workflows from an onboarding scan
- Migration review of one interface
- Mark an interface reviewed
- Connect to a Mirth or Rhapsody server and list it
- Pull channels or lockers and dry run them
- Pull channels or lockers and create draft workflows
- List captured Rhapsody imports
- Download a capture's fingerprint (JSON)
- Delete a capture
- Send the export MedHook couldn't read
- Download a shared export
- Delete a shared export now
- Schemas
Preview and import Mirth Connect channels and firewall IPsec configs.
List the steps an AI rewrite is offered for
get/api/migration/rewrite
The workflow's imported JavaScript steps that use E4X or hold a Mirth Mapper / Message Builder or Rhapsody mapper TODO, with the script (importer header and compatibility shims left out) and originalHash, which pins the version a rewrite replaces. aiAvailable is false while Script rewrites are off (AI_FEATURES_ENABLED, the signed BAA in production, the Script rewrites switch in Settings > AI features & BAA) or no API key is set.
Minimum role: viewer.
Auth: Bearer token (how to get one) · Operation: listRewriteCandidates
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workflowIdrequired | query | string |
Responses
- 200The candidates.
Response fields
application/json · object
workflowIdstringnamestringaiAvailablebooleancandidatesarray of object6 fields
nodeIdstringlabelstringkindsarray of stringsourcestringOne of: "mirth", "rhapsody"
originalstringoriginalHashstringSHA-256 of the step's code.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/rewrite?workflowId=string" \
-H "Authorization: Bearer $TOKEN"Suggest an AI rewrite of an imported step
post/api/migration/rewrite/suggest
Asks the model to rewrite one imported step as a sandbox-safe JavaScript transform (no E4X, no require, no network) or a Data Map. Only the step's code and settings are sent, with comments dropped and literals replaced by placeholders: never message content, samples or credentials. The answer is validated: it must parse, use nothing the sandbox refuses, and run on a synthetic message built from the field paths. check says where the check ran: history (the draft, with the proposal in its step, ran as a dry run in the engine on up to 50 recent Mirth messages or 200 Rhapsody messages and m of n outputs matched the old engine's) only once the BAA is signed, Script rewrites is on and the interface has stored history; otherwise synthetic (n 1). The history never reaches the model. Nothing is saved. Audited as migration.rewrite_suggested (no code; the check's counts only). 403 with code AI_FEATURES_DISABLED while AI features or Settings › Script rewrites are off, 503 without an API key, 422 for a step that is not a candidate, 502 when the model's answer breaks the contract. Rate limited: 10 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: suggestRewrite
Request body (required)
application/json · object
workflowIdstringrequiredWorkflow id (must be in the caller's workspace).
nodeIdstringrequiredThe imported step's node id.
Responses
- 200The suggestion.
Response fields
application/json · object
nodeIdstringkindsarray of stringsourcestringoriginalstringThe step's script (left side of the diff).
proposalobject4 fields
kindstringrequiredjavascriptordata-map.One of: "javascript", "data-map"
codestringThe JavaScript transform body (kind
javascript).mappingarray of objectThe Data Map rows (kind
data-map).explanationstring
proposedstringThe proposal as text (right side of the diff).
validationobject4 fields
okbooleanerrorsarray of stringsamplestringThe synthetic HL7 message the proposal ran on.
outputobjectWhat the proposal returned for the synthetic message.
checkobject3 fields
sourcestringrequiredhistoryorsynthetic.One of: "history", "synthetic"
nintegerrequiredMessages the proposal ran on.
mintegerrequiredOf those, the outputs that matched the old engine's.
modelstringoriginalHashstring
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 422The request is well formed but cannot be processed.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 503A dependency is not available.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/rewrite/suggest" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "string",
"nodeId": "string"
}'Accept an AI rewrite
post/api/migration/rewrite/accept
Replaces the step with the accepted JavaScript or Data Map and clears its review mark. The proposal is validated again (422 with errors when it fails), and the step must still match originalHash (409 when it changed). The workflow is saved like a builder save (version snapshot, workflow.updated), then the acceptance is audited as migration.rewrite_accepted (no code). 403 while AI features or Settings › Script rewrites are off. Rate limited: 20 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: acceptRewrite
Request body (required)
application/json · object
workflowIdstringrequiredWorkflow id (must be in the caller's workspace).
nodeIdstringrequiredThe imported step's node id.
originalHashstringrequiredFrom the suggestion.
proposalobjectrequired4 fields
kindstringrequiredjavascriptordata-map.One of: "javascript", "data-map"
codestringThe JavaScript transform body (kind
javascript).mappingarray of objectThe Data Map rows (kind
data-map).explanationstring
modelstringThe model that wrote the proposal, for the audit.
Responses
- 200Saved.
Response fields
application/json · object
workflowIdstringnodeIdstringdataobject
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 409The request conflicts with the current state.
application/json · ApiError
- 422The request is well formed but cannot be processed.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/rewrite/accept" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "string",
"nodeId": "string",
"originalHash": "string",
"proposal": {
"kind": "javascript",
"code": "string",
"mapping": [
{}
],
"explanation": "string"
},
"model": "string"
}'Preview a Mirth Connect or Rhapsody import
post/api/migration/mirth/preview
Parses a Mirth export, or a Rhapsody configuration export (a .rlc from the IDE's Save Configuration Locally, whose root sme*.xml has an <Engine> root; that XML itself; the REST export's configuration.xml with a <configuration> root; or the legacy <RhapsodyConfiguration> layout and locker .zip, detected from the root), and returns the draft workflows it would create. format says which it was; Rhapsody routes are reported as channels. A Mirth export also returns connections: how many endpoints its channels use (Migration › Import's total). No writes. Audited with counts only. Rate limited: 20 req / 60 s.
Auth: Bearer token (how to get one) · Operation: previewMirthImport
Request body (required)
application/json · object
xmlstringrequiredlockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
multipart/form-data · object
filestring (binary)requiredlockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
Responses
- 200Proposed workflows.
application/json · MirthImportResult
- 400Missing or unparseable export, or a bad lockerMode.
application/json · ApiError
- 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/mirth/preview" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"xml": "string",
"lockerMode": "routes"
}'Import Mirth channels or Rhapsody routes as draft workflows
post/api/migration/mirth/apply
Re-parses the export (Mirth or Rhapsody, detected) and creates DISABLED draft workflows, plus credential-less adapter profiles they use, in the caller's workspace. channelIds (array, or comma-separated in multipart) limits which channels, or Rhapsody route ids, are imported. Audited as migration.{mirth,rhapsody}_imported with the drafts, their groups, the file name and, for Rhapsody, the locker count, version and Shared JavaScript and lookup table names (names only). Rate limited: 5 req / 60 s.
Auth: Bearer token (how to get one) · Operation: applyMirthImport
Request body (required)
application/json · object
xmlstringrequiredchannelIdsarray of stringlockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
fileNamestringThe uploaded export's file name (JSON; multipart uses the file's own name). Its base name is recorded on the audit event for the Migration board's source card.
multipart/form-data · object
filestring (binary)requiredchannelIdsarray of stringlockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
fileNamestringThe uploaded export's file name (JSON; multipart uses the file's own name). Its base name is recorded on the audit event for the Migration board's source card.
Responses
- 201Created.
Response fields
application/json · object
createdarray of object3 fields
mirthChannelIdstringworkflowIdstringnamestring
profilesarray of object4 fields
idstringnamestringadapterTypestringcredentialsRequiredboolean
warningsarray of stringunsupportedarray of object
- 400Missing or unparseable export, or a bad lockerMode.
application/json · ApiError
- 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/mirth/apply" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"xml": "string",
"channelIds": [
"string"
],
"lockerMode": "routes",
"fileName": "string"
}'Preview an IPsec / firewall config import
post/api/migration/ipsec/preview
Parses a firewall or cloud VPN config into proposed tunnels. Pre-shared keys are never returned (see pskImported). Audited without content. Rate limited: 20 req / 60 s.
Auth: Bearer token (how to get one) · Operation: previewIpsecImport
Request body (required)
application/json · object
textstringrequiredformatstringOne of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"
multipart/form-data · object
filestring (binary)requiredformatstringOne of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"
Responses
- 200Proposed tunnels.
application/json · IpsecImportResult
- 400Missing or unparseable config.
application/json · ApiError
- 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/ipsec/preview" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "string",
"format": "auto"
}'Create VPN tunnels from an IPsec config
post/api/migration/ipsec/apply
Re-parses the config and creates tunnels (provisioned in the background) for the selected peerIps in the caller's workspace. Invalid proposals and name conflicts are returned in skipped. A PSK is returned only when one had to be generated. Rate limited: 5 req / 60 s.
Auth: Bearer token (how to get one) · Operation: applyIpsecImport
Request body (required)
application/json · object
textstringrequiredformatstringOne of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"
peerIpsarray of stringrequired
Responses
- 201Created.
Response fields
application/json · object
formatstringOne of: "asa", "strongswan", "aws", "pfsense", "fortinet"
createdarray of object4 fields
idstringnamestringpeerIpstringgeneratedSharedSecretstringShown once.
skippedarray of object2 fields
peerIpstringreasonstring
warningsarray of string
- 400Missing config, no peerIps, or unparseable config.
application/json · ApiError
- 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.
application/json · ApiError
- 501`NOT_CONFIGURED` — VPN management requires the GKE deployment.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/ipsec/apply" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "string",
"format": "auto",
"peerIps": [
"string"
]
}'Migration board
get/api/migration/interfaces
The caller's workspace: every Mirth channel or Rhapsody route imported as a draft (from the migration import audit events; deleted drafts drop out), in board order (stage, then name), with its stage, converted percentage and what needs a person, plus one card per old engine (a read-only incumbent connection, or an uploaded export named by its file) and the counts behind the tab badges and the summary line. Differences count the parallel run's mismatched messages in the last 7 days. Names, stages and counts only: no message content. A Rhapsody import's Shared JavaScript and lookup tables are one more interface, id rhapsody-shared, named "Shared scripts and tables" in group "Shared". A reviewed interface's note names the reviewer by initials only. Takes no parameters (any is a 400). Rate limited to 60 requests per minute.
Minimum role: viewer.
Auth: Bearer token (how to get one) · Operation: getMigrationInterfaces
Responses
- 200The board.
Response fields
application/json · object
interfacesarray of object10 fields
idstringThe draft workflow's id.
workflowIdstringsourcestringOne of: "mirth", "rhapsody"
namestringThe Mirth channel or Rhapsody route name.
groupstring | nullMirth channel group or Rhapsody locker; null when unknown.
stagestringimported, review (steps marked for review, or REVIEW/BLOCKED onboarding findings), ready (reviewed), parallel (an active parallel run), live (the import is enabled).
One of: "imported", "review", "ready", "parallel", "live"
convertedintegerShare of steps that converted with no person needed.
needsintegerSteps or findings that need a person.
notestringWhat the card says, e.g. "3 differences in 7 days".
runIdstringThe active parallel run, on the parallel stage.
sourcesarray of object5 fields
sourcestringOne of: "mirth", "rhapsody"
tagstringOne of: "MIRTH", "RHAPSODY"
namestring"Mirth Connect 4.5.2", "Rhapsody".
substringThe read-only connection's host, or uploaded export.
statestring"connected · 23 channels", "uploaded · 18 routes".
countsobject5 fields
totalintegerliveintegerinProgressintegerNot live yet (the In progress badge).
parallelintegertoReviewintegerImported or needs review (the review queue).
generatedAtstring (date-time)
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/interfaces" \
-H "Authorization: Bearer $TOKEN"Create draft workflows from an onboarding scan
post/api/migration/sessions/{id}/workflows
Creates DISABLED draft workflows, and adapter profiles with no credentials, from the session's scan, re-parsing the stored export server-side. With no body, every channel that isn't blocked; with channelIds (Migration › Import), only those. Channels that already have a draft are skipped. Audited as migration.mirth_imported with the created workflow ids and each draft's channel group. Rate limited: 5 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: createMigrationSessionWorkflows
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | Onboarding session id (caller's workspace). |
Request body
application/json · object
channelIdsarray of stringMirth channel ids from the scan. Omit for every channel that isn't blocked.
Responses
- 200The session, with each converted channel's `workflowId`.
Response fields
application/json · object
sessionobjectThe onboarding session.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/sessions/<id>/workflows" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channelIds": [
"string"
]
}'Migration review of one interface
get/api/migration/interfaces/{id}
One imported Mirth channel or Rhapsody route, as the review page shows it: the interface (stage, source, group), one row per imported component (old → new, with its result) read from the draft as it is now, how many rows need a person or are blocked (toResolve), the review queue's ids in board order, and the shared lists: code templates (Mirth, one row per exported function of the pinned library version) or shared scripts (Rhapsody), global maps (each $g/$gc/$co read, with the code table's row count) or lookup tables, and the connections the draft uses with the credential each still needs (add password, add token, upload, judged on the engine from the stored config). Names and kinds only: no message content, no credentials. 404 when the id is not an imported draft in the caller's workspace. Rate limited to 60 requests per minute.
Minimum role: viewer.
Auth: Bearer token (how to get one) · Operation: getMigrationInterfaceReview
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The imported draft's workflow id. |
Responses
- 200The review.
Response fields
application/json · object
interfaceobject10 fields
idstringThe draft workflow's id.
workflowIdstringsourcestringOne of: "mirth", "rhapsody"
namestringThe Mirth channel or Rhapsody route name.
groupstring | nullMirth channel group or Rhapsody locker; null when unknown.
stagestringimported, review (steps marked for review, or REVIEW/BLOCKED onboarding findings), ready (reviewed), parallel (an active parallel run), live (the import is enabled).
One of: "imported", "review", "ready", "parallel", "live"
convertedintegerShare of steps that converted with no person needed.
needsintegerSteps or findings that need a person.
notestringWhat the card says, e.g. "3 differences in 7 days".
runIdstringThe active parallel run, on the parallel stage.
rowsarray of object10 fields
idstringnodeIdstring | nullThe draft step; null for the trigger and its filter.
oldKindstringThe old component, e.g. "Transformer · JavaScript (E4X)".
oldNamestringnewKindstringWhat it became, e.g. "Script", "Data map", "SQL step".
newNamestringresultstringconverted, differs (works differently), person (needs a person), blocked, rewritten (an accepted Agent rewrite).
One of: "converted", "differs", "person", "blocked", "rewritten"
notestringcodestring | nullThe step's script without the importer header.
rewritablebooleanRewrite with Agent is offered for it.
toResolveintegerqueuearray of stringlistsobject3 fields
templatesarray of object5 fields
namestringrequiredThe shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.
detailstringrequiredWhat it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.
statusstringrequiredTemplates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.
tonestringrequiredOne of: "ok", "warn", "neutral"
hrefstringWhere to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.
mapsarray of object5 fields
namestringrequiredThe shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.
detailstringrequiredWhat it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.
statusstringrequiredTemplates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.
tonestringrequiredOne of: "ok", "warn", "neutral"
hrefstringWhere to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.
connsarray of object5 fields
namestringrequiredThe shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.
detailstringrequiredWhat it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.
statusstringrequiredTemplates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.
tonestringrequiredOne of: "ok", "warn", "neutral"
hrefstringWhere to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/interfaces/<id>" \
-H "Authorization: Bearer $TOKEN"Mark an interface reviewed
post/api/migration/interfaces/{id}/reviewed
A person checked every converted component: the draft moves to Ready to test. 409 UNRESOLVED (with toResolve) while a row needs a person or is blocked, 409 PAST_REVIEW for an interface in a parallel run or live. Marking a reviewed interface again changes nothing. Audited as migration.interface_reviewed (the mark the board reads; 500 if it cannot be written). Takes no body. Rate limited to 30 requests per minute.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: markMigrationInterfaceReviewed
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The imported draft's workflow id. |
Responses
- 200Reviewed.
Response fields
application/json · object
idstringstagestringOne of: "ready"
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 409The request conflicts with the current state.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/interfaces/<id>/reviewed" \
-H "Authorization: Bearer $TOKEN"Connect to a Mirth or Rhapsody server and list it
post/api/migration/sources
Connects to the server's management REST API and lists its channels (Mirth: GET /server/version and /channels/idsAndNames) or lockers (Rhapsody: GET /api/info and /api/components/status, whose top folders are the lockers; a locker's id is its name). Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. The URL must pass the SSRF guard: https, or http only to a host on SSRF_ALLOWLIST; a private host must be on SSRF_ALLOWLIST, and then the answer carries a warning. Only after the listing succeeds are the credentials stored, sealed like adapter profile credentials, in the workspace's incumbent connection for that server (a second connect replaces them; DELETE /api/incumbents/{id} forgets them). The password is never returned or logged. Audited as migration.source.connected with the vendor, host and count only. A self-signed server (Rhapsody's default on 8444, Mirth's on 8443): a certificate the engine can't verify answers 502 INCUMBENT_CERT_UNTRUSTED with details.certificate (fingerprint256, subject, issuer, validFrom, validTo, selfSigned) and stores nothing. Check the fingerprint on the server, then connect again with trustFingerprint (that exact certificate is pinned) or caPem (the CA that signed it; normal verification, host name included). The trust is kept on the connection and audited as migration.source.cert_pinned (vendor, host, fingerprint and any previous one) or migration.source.ca_uploaded (vendor, host, the CA's fingerprint and subject). A connect without either reuses the connection's stored trust; there is no "allow self-signed". Errors: 400 BAD_REQUEST (a malformed fingerprint or CA, or both at once), INCUMBENT_PARSE or INCUMBENT_SSRF (a bad or refused URL); 502 INCUMBENT_AUTH (wrong user or password), INCUMBENT_HTTP, INCUMBENT_NETWORK (unreachable or timed out), INCUMBENT_TOO_LARGE, INCUMBENT_CERT_UNTRUSTED or INCUMBENT_CERT_FINGERPRINT_CHANGED. Rate limited: 10 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: connectMigrationSource
Request body (required)
application/json · object
vendorstringrequiredmirth (Mirth Connect or Mirth Integration Engine) or rhapsody.
One of: "mirth", "rhapsody"
urlstringrequiredThe API base URL, e.g. https://mirth.example.test:8443/api. No user name or password in it.
userstringrequiredA read-only API user.
passwordstring (password)requiredWrite-only.
trustFingerprintstringThe SHA-256 fingerprint of the server certificate to pin, "AA:BB:…" as INCUMBENT_CERT_UNTRUSTED's details.certificate.fingerprint256 shows it. Not with caPem.
caPemstringA PEM CA certificate (or chain) to verify the server against, host name included. Not with trustFingerprint.
Responses
- 201Connected; what the server holds.
Response fields
application/json · object
idstringThe connection's id, for …/pull and …/apply.
vendorstringOne of: "mirth", "rhapsody"
hoststring"mirth.example.test:8443".
versionstring | nullMirth's version; null for Rhapsody.
itemsarray of object2 fields
idstringnamestring
warningstringSet when the host is reached only because SSRF_ALLOWLIST lists it.
pinnedFingerprint256stringThe certificate pinned for this connection, when one is.
customCabooleanTrue when the connection verifies against an uploaded CA.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 413The body is larger than the limit.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
- 502Error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/sources" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"vendor": "mirth",
"url": "string",
"user": "string",
"password": "string",
"trustFingerprint": "string",
"caPem": "string"
}'Pull channels or lockers and dry run them
post/api/migration/sources/{id}/pull
Pulls the picked channels (Mirth: GET /channels?channelId=…, with channel groups, code template libraries, the configuration map and global scripts, joined into one server backup) or lockers (Rhapsody: GET /admin/config, the whole configuration export the user can view as one zip of at most 25 MB, from which the picked lockers, at most 5 MB together, are cut by name) and answers exactly what POST /api/migration/mirth/preview answers for that export uploaded as a file. Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. No writes here either. Audited as migration.source.pulled (vendor, host, counts and size), then as the preview is. Rate limited: 20 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: pullMigrationSource
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The connection's id (an incumbent connection in the caller's workspace). |
Request body (required)
application/json · object
idsarray of stringrequiredChannel ids (Mirth) or locker ids (Rhapsody) from the connect's
items.lockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
Responses
- 200Proposed workflows.
application/json · MirthImportResult
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 413The body is larger than the limit.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
- 502Error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/sources/<id>/pull" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"string"
],
"lockerMode": "routes"
}'Pull channels or lockers and create draft workflows
post/api/migration/sources/{id}/apply
Pulls the picked channels or lockers again, as …/pull does, and creates DISABLED draft workflows for channelIds (Mirth channel or Rhapsody route ids; all when omitted) exactly as POST /api/migration/mirth/apply does for that export uploaded as a file. The board shows the server's connection rather than a file name. Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. Audited as migration.source.pulled, then migration.{mirth,rhapsody}_imported. Rate limited: 5 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: applyMigrationSource
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The connection's id (an incumbent connection in the caller's workspace). |
Request body (required)
application/json · object
idsarray of stringrequiredChannel ids (Mirth) or locker ids (Rhapsody) from the connect's
items.channelIdsarray of stringlockerModestring | map of stringRhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.
2 fields
option 1stringOne of: "routes", "branches"
option 2map of string
Responses
- 201Created: the same answer as POST /api/migration/mirth/apply.
Response fields
application/json · object
createdarray of object3 fields
mirthChannelIdstringworkflowIdstringnamestring
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 413The body is larger than the limit.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
- 502Error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/sources/<id>/apply" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"string"
],
"channelIds": [
"string"
],
"lockerMode": "routes"
}'List captured Rhapsody imports
get/api/migration/import-captures
The workspace's Rhapsody imports that failed (reason: failed) or read with sections, elements or codes MedHook doesn't know (unrecognized), newest first, at most 100. A dry run (POST /api/migration/mirth/preview, a live pull) captures them on its own. A fingerprint holds the export's STRUCTURE only: the file kind and size, zip entries as shapes (<uuid>/*.xml, never raw file names), the XML root, whether its namespace is Rhapsody's, numeric version attributes, every element path with a count, attribute names (never values), point, mode, filter and property type codes only when they are short tokens, what MedHook doesn't know, and the refusal as a fixed code. Never text content, attribute values, scripts, host names, paths or messages. Each row says whether its file was shared (kind, size, expiry), never the content.
Minimum role: admin.
Auth: Bearer token (how to get one) · Operation: listMigrationImportCaptures
Responses
- 200Success.
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/import-captures" \
-H "Authorization: Bearer $TOKEN"Download a capture's fingerprint (JSON)
get/api/migration/import-captures/{id}
The fingerprint as a JSON attachment. A fingerprint holds the export's STRUCTURE only: the file kind and size, zip entries as shapes (<uuid>/*.xml, never raw file names), the XML root, whether its namespace is Rhapsody's, numeric version attributes, every element path with a count, attribute names (never values), point, mode, filter and property type codes only when they are short tokens, what MedHook doesn't know, and the refusal as a fixed code. Never text content, attribute values, scripts, host names, paths or messages.
Minimum role: admin.
Auth: Bearer token (how to get one) · Operation: getMigrationImportCapture
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The capture's id ( |
Responses
- 200Success.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/import-captures/<id>" \
-H "Authorization: Bearer $TOKEN"Delete a capture
delete/api/migration/import-captures/{id}
Deletes the fingerprint and its shared file, if any. Audited as migration.import_capture_deleted.
Minimum role: admin.
Auth: Bearer token (how to get one) · Operation: deleteMigrationImportCapture
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The capture's id ( |
Responses
- 200Success.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl -X DELETE "$ENGINE_URL/api/migration/import-captures/<id>" \
-H "Authorization: Bearer $TOKEN"Send the export MedHook couldn't read
post/api/migration/import-captures/{id}/share
The uploader's opt-in: keeps the original file so MedHook can support it. noPatientData must be true, the person's confirmation that the file contains no patient data or that test messages have been removed; without it nothing is kept (400 CONSENT_REQUIRED). The file must be the one the capture was made from (its SHA-256). Stored AES-256-GCM encrypted for 30 days, readable by admins only, then deleted by the retention run. Audited as migration.import_file_shared (id, kind, size). Rate limited: 10 req / 60 s.
Minimum role: operator.
Auth: Bearer token (how to get one) · Operation: shareMigrationImportFile
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The capture's id ( |
Request body (required)
multipart/form-data · object
filestring (binary)requiredThe export, as uploaded to the dry run.
noPatientDatastringrequiredMust be "true": the file contains no patient data, or test messages have been removed.
One of: "true"
Responses
- 201Kept.
Response fields
application/json · object
sharedbooleanAlways true.
expiresAtstringISO 8601.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 413The body is larger than the limit.
application/json · ApiError
- 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl -X POST "$ENGINE_URL/api/migration/import-captures/<id>/share" \
-H "Authorization: Bearer $TOKEN" \
-F 'file=@file' \
-F 'noPatientData=true'Download a shared export
get/api/migration/import-captures/{id}/file
The file its uploader shared, before its 30 days are up. Every download is audited as migration.import_file_downloaded.
Minimum role: admin.
Auth: Bearer token (how to get one) · Operation: downloadMigrationImportFile
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The capture's id ( |
Responses
- 200The file.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl "$ENGINE_URL/api/migration/import-captures/<id>/file" \
-H "Authorization: Bearer $TOKEN"Delete a shared export now
delete/api/migration/import-captures/{id}/file
Deletes the shared file before its 30 days; the fingerprint stays. Audited as migration.import_file_deleted.
Minimum role: admin.
Auth: Bearer token (how to get one) · Operation: deleteMigrationImportFile
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string | The capture's id ( |
Responses
- 200Success.
- 400The request is malformed or fails validation.
application/json · ApiError
- 401No credential, or the token is invalid or expired.
application/json · ApiError
- 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).
application/json · ApiError
- 404Not found in the caller's workspace.
application/json · ApiError
- 500Unexpected server error.
application/json · ApiError
Example request
curl -X DELETE "$ENGINE_URL/api/migration/import-captures/<id>/file" \
-H "Authorization: Bearer $TOKEN"Schemas
Named objects the operations above link to.
ApiError
The error body. error is always present. code is present on most errors and is the field to branch on; a few routes and the sign-in and role checks return only error (and sometimes detail).
errorstringrequiredHuman-readable error message.
codestringMachine-readable error code.
One of: "BAD_REQUEST", "INVALID_REQUEST", "UNAUTHORIZED", "UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "UNPROCESSABLE_ENTITY", "RATE_LIMITED", "INTERNAL_ERROR", "SERVICE_UNAVAILABLE", "NOT_CONFIGURED", "SIGNATURE_REQUIRED", "INVALID_SIGNATURE", "TIMESTAMP_REQUIRED", "TIMESTAMP_INVALID", "TIMESTAMP_OUT_OF_TOLERANCE", "INVALID_CREDENTIALS", "INVALID_TOKEN", "PAYLOAD_TOO_LARGE", "INVALID_NDJSON", "PHI_NOT_AUTHORIZED", "PHI_IN_SANDBOX", "IN_PROGRESS", "RETRY_SCHEDULED", "WORKFLOW_DISABLED", "CONFLICTING_SCOPE", "ALREADY_DELIVERED", "CHAIN_TOO_DEEP", "NO_FAILED_DESTINATION", "STALE_SCOPE", "UNKNOWN_DESTINATION", "NO_DESTINATIONS", "NOT_A_MESSAGE", "AI_FEATURES_DISABLED"
detailsanyOptional structured context about the error.
ErrorHandling
What a failed step does. Step retries wait in-process within one run, so each wait is capped at 60 s and the attempts at 10; longer waits are workflow retries (maxWorkflowRetries), which are durable.
strategystringrequiredOne of: "retry", "skip", "fail"
maxRetriesintegerretryDelaynumberMilliseconds before the first step retry.
backoffMultipliernumber
FieldMapping
sourcestringrequiredJSON path ("$.name[0].family"; "[*]" reads every array item) or "hl7:" + an HL7 path ("hl7:PID.5.1", "hl7:OBX[*].5", "hl7:PID.3(2).1").
sourcesarray of stringConcatenate:
sourcethen each of these (one value each, no [*]); empty parts are skipped.separatorstringJoins
sources(default " ").targetstringrequiredTarget path. "hl7:PID.5.1" edits the HL7 text and needs config.mapMode "copy" on an HL7 input. In an hl7v2-to-fhir step (merge mode) the target names a resource: "Patient.name[0].family" or "Bundle.meta.tag[0].code".
transformstringLegacy single transform, run before
ops. "date" is HL7 DT/DTM to ISO 8601 (shape and offset kept); other text is read by JavaScript Date and written as a UTC ISO timestamp (text with no offset is read in the engine's time zone), as before value ops. A stored "custom" (a no-op) is dropped.One of: "uppercase", "lowercase", "trim", "date"
opsarray of ValueOpValue ops, in order, after the inline lookup and default. An op that cannot read its value is a row error (config.onRowError).
defaultstringUsed when the source is missing or empty.
lookupValuesarray of objectInline quick lookup: an unknown value gets
defaultwhen set, else passes through.3 fields
fromstringrequiredtostringrequirednotestring
lookupstringCode table name (applied last).
onMissingCodestringA value the
lookupcode table lacks: a row error (default), kept, ordefault(required with "default"). A missing table always fails.One of: "fail", "passthrough", "default"
IpsecImportResult
formatstringOne of: "asa", "strongswan", "aws", "pfsense", "fortinet"
proposalsarray of object4 fields
tunnelobjectProposed tunnel. The PSK is never returned.
4 fields
namestringpeerIpstringremoteSubnetsarray of stringikeVersionintegerOne of: 1, 2
pskImportedbooleanTrue when the existing PSK will be carried over on apply.
validbooleanerrorsarray of string
warningsarray of string
MirthImportResult
channelsarray of object6 fields
mirthIdstringnamestringgroupstringworkflowIdstring | nullsourcestringdestinationsarray of object3 fields
namestringtransportstringmappedboolean
workflowsarray of WorkflowprofileStubsarray of objectAdapter profiles apply would create. Never carry credentials.
5 fields
keystringnamestringadapterTypestringOne of: "mllp", "generic-rest", "sftp"
configobjectcredentialsRequiredboolean
warningsarray of object3 fields
channelstringconnectorstringmessagestring
unsupportedarray of object3 fields
channelstringconnectorstringtransportstring
networkobject2 fields
privateEndpointsarray of object5 fields
hoststringportintegerchannelstringconnectorstringdirectionstringOne of: "inbound", "outbound"
suggestedRemoteSubnetsarray of string
TransformStepConfig
Options of a transform step (checked at save). Other keys are type-specific (fhir-to-hl7v2, fhir-bulk-split).
mapModestringfield-mapping: build a new object, or copy the input and set only the targets ("copy"; hl7: targets edit an HL7 input in place).
One of: "new", "copy"
onRowErrorstringA mapping row that cannot be applied fails the step (rejected: not retried automatically) or drops its field with a warning in the node result's diagnostics.
One of: "fail", "skip"
mappingModestringhl7v2-to-fhir: custom mappings write into the converter's Bundle (merge) or replace the converter (replace).
One of: "merge", "replace"
nextOfKinstringhl7v2-to-fhir: each NK1 as a RelatedPerson linked to the Patient, or left out.
One of: "skip", "related-person"
messageHeaderstringhl7v2-to-fhir: a MessageHeader from MSH whose focus is every other resource, or left out.
One of: "skip", "include"
fieldsarray of stringcode-table: the JSON paths to translate ([*] allowed); an unknown code fails unless onMissingCode says otherwise. Without fields every string is translated and unknown codes pass through.
onMissingCodestringcode-table: an unknown code (with
defaultfor "default").One of: "fail", "passthrough", "default"
codeTablesarray of stringjavascript: code tables lookup(table, code) may read, loaded before the code runs.
escapestringtemplate: how {{values}} are escaped. Default from the text after any leading {{#…}}/{{/…}}/{{else}} tags: json for {…}/[…], hl7 for MSH… (escapes | and line breaks, keeps ^ ~ &), xml for <…, else none.
One of: "none", "json", "hl7", "xml"
onMissingstringtemplate: a path with no value renders empty (JSON: null) with a warning, or fails the step.
One of: "empty", "fail"
delimiterstringcsv-parse / csv-generate: one character; "\t" for a tab.
recordDelimiterstringcsv-parse: "auto" (CRLF, LF or CR) or a literal record separator.
quotestringcsv-parse / csv-generate: the quote character.
headerbooleancsv-parse: the first record names the columns (false: col1..colN or
columns). csv-generate: write a header line.columnsarray of anycsv-parse: [{ name, type: string|number|boolean|date }]. csv-generate: the column order (names).
maxRowsintegercsv-parse: more rows than this fails the step.
quoteModestringcsv-generate: quote only fields that need it, or every field.
One of: "minimal", "all"
xpathsmap of stringxml-parse: names to XPath expressions (a subset: paths, //, *, @attr, text(), count(), [n], [last()], [@a='v'], [child='v']); results in
values.stripNamespacesbooleanxml-parse: drop namespace prefixes from element and attribute names.
stylesheetstringxslt: the XSLT 1.0 stylesheet. Self-contained: xsl:include, xsl:import and document() other than document('') are refused, and so is a DOCTYPE or entity declaration.
sourcestringxslt: what the stylesheet reads: the message text, the text at sourceField, the channel map's sourceVariable, or (hl7-xml) the HL7 v2 message as Mirth's HL7 v2 XML; then output to the message that is <HL7Message> XML becomes HL7 v2 again.
One of: "message", "field", "variable", "hl7-xml"
sourceFieldstringxslt: a dot path when source is "field".
sourceVariablestringxslt: a channel map name when source is "variable".
resultTostringxslt: where the output goes: it becomes the message (a file pickup keeps its details, with the output as content), resultField on a copy of the message, or the channel map's resultVariable (the message goes on unchanged).
One of: "message", "field", "variable"
resultFieldstringxslt: a dot path when resultTo is "field".
resultVariablestringxslt: a channel map name when resultTo is "variable".
paramsarray of objectxslt: global xsl:param values. A value is text; {{channel.KEY}} reads the channel map and {{sender.KEY}} the run's sender settings.
2 fields
namestringrequiredvaluestringrequired
ValueOp
uppercase, lowercase, trim; substring {start, end?}; pad {length ≤ 255, char, side left|right}; replace {find, with} (literal, every occurrence; no regex); date-format {from (auto|ISO|ISO-DATE|HL7|HL7DT|YYYYMMDD|YYYY-MM-DD|MM/DD/YYYY), to, timezone? (IANA)}; type-cast {to number|boolean|string, trueValues?, falseValues?}.
opstringrequiredOne of: "uppercase", "lowercase", "trim", "substring", "pad", "replace", "date-format", "type-cast"
Workflow
idstringrequirednamestringrequireddescriptionstringenabledbooleanrequiredstartNodeIdstringrequiredtriggerobject | object | object | object | object | object | object | object | object | object | object | object | objectrequiredOne of eight supported trigger types. The
typediscriminant selects the applicable additional fields.13 fields
type: "manual"object1 field
typestringrequiredOne of: "manual"
type: "topic"objectRuns once for every event a Publish step writes to the topic (same workspace). Durable fan-out through the work table, at least once, deduplicated by event id.
2 fields
typestringrequiredOne of: "topic"
topicstringrequired
type: "webhook"object13 fields
typestringrequiredOne of: "webhook"
webhookIdstringrequiredpathstringsplitBatchesbooleanSplit an HL7 v2 batch (FHS/BHS ... BTS/FTS, or several MSH segments in one delivery) into one run per message, in batch order, each deduplicated on its own MSH-10.
charsetstringHow the received bytes are decoded before parsing. Omitted: UTF-8 (or the Content-Type charset parameter). msh-18: the message's MSH-18 (8859/1, UNICODE UTF-8, ASCII), UTF-8 when it is empty or unknown.
One of: "utf-8", "iso-8859-1", "windows-1252", "ascii", "msh-18"
secretstringtimestampToleranceSecondsintegerReplay window: the most seconds a signed timestamp (webhook-timestamp or x-webhook-timestamp) may be from the engine's clock. Outside it the answer is 401 TIMESTAMP_OUT_OF_TOLERANCE.
requireTimestampbooleanRefuse a valid signature that carries no signed timestamp (401 TIMESTAMP_REQUIRED). Off: senders that sign the body only keep working.
expectedHeadersmap of stringbodySchemaobjectJSON Schema the body must match: type, properties, required, additionalProperties (boolean), items, enum, const, minLength, maxLength, pattern, format (date, date-time, email, uuid), minimum, maximum, minItems, maxItems; $schema, title and description are allowed and not checked; $defs at the root and $ref to
#/$defs/<name>. Other keywords are refused on save. A pasted OpenAPI requestBody (with its components) or document ({ document, operationId }) is stored converted to this subset. A body that no trigger on the webhook id accepts is 400 BODY_SCHEMA_INVALID withproblems(JSON Pointers, never values), and nothing runs.senderFromobjectWhere a JSON delivery names its sender, for the workflow's sender table ({{sender.KEY}}, per-sender connections): exactly one of
path(a dotted path into the body, e.g. organization.id) orheader(a header name). The value is matched like an HL7 message's MSH-4.2 fields
pathstringheaderstring
orderingstringfifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger). none: they run in parallel.
One of: "none", "fifo"
onErrorstringWith ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.
One of: "continue", "hold"
type: "schedule"object3 fields
typestringrequiredOne of: "schedule"
cronstringrequiredCron expression; an alias of the cron trigger, run once per slot across replicas.
timezonestring
type: "cron"object3 fields
typestringrequiredOne of: "cron"
cronExpressionstringrequiredtimezonestring
type: "polling"object12 fields
typestringrequiredOne of: "polling"
intervalintegerrequiredPoll interval in milliseconds (at least 10000).
adapterProfileIdstringrequiredAdapter profile to read; must be in the workflow's workspace.
actionstringAdapter action to call. Default: search when the adapter has it (FHIR adapters, whose read is read-by-id), otherwise read.
paramsobjectAdapter params. A string value containing {{cursor}} gets the stored cursor; before the first cursor such a value is left out.
itemsPathstringDot path to the item array in the adapter result. Not needed for an array or a FHIR Bundle.
idFieldstringDot path to each item's id. With cursorField, the dedup key is the id plus its cursor value, so a later change to the same record runs again.
cursorFieldstringDot path to an ordered change marker (ISO timestamp or number). Without it, the last 5,000 ids seen are the replay guard.
cursorFormatstringHow cursorField values are written when they do not sort as text (MM/DD/YYYY). Each value is read in this format and stored as ISO-8601; {{cursor}} is sent back in it. A value that does not parse does not run. Changing it starts the cursor again.
One of: "MM/DD/YYYY", "MM/DD/YYYY HH:mm", "MM/DD/YYYY HH:mm:ss", "MM/DD/YYYY hh:mm A", "MM/DD/YYYY hh:mm:ss A", "DD/MM/YYYY", "DD/MM/YYYY HH:mm:ss", "YYYYMMDDHHmmss", "epoch-seconds", "epoch-millis"
maxItemsPerPollintegerItems one poll runs. Items sharing the last item's cursor value also run, so a group is never split.
filterobjectInbound filter ({ logic, rules, groups?, customScript? }), as on the other triggers. A polled item it rejects runs no workflow and creates no work row, but the cursor moves past it, so it is not read again.
startFromstringnow: the first poll records what already exists and runs nothing. beginning: the first poll runs every item.
One of: "now", "beginning"
type: "mllp"object13 fields
typestringrequiredOne of: "mllp"
messageTypesarray of stringrequiredsendingFacilitystringsendingAppstringsplitBatchesbooleanSplit an HL7 v2 batch (FHS/BHS ... BTS/FTS, or several MSH segments in one delivery) into one run per message, in batch order, each deduplicated on its own MSH-10.
charsetstringHow the received bytes are decoded before parsing. Omitted: UTF-8. msh-18: the message's MSH-18 (8859/1, UNICODE UTF-8, ASCII), UTF-8 when it is empty or unknown.
One of: "utf-8", "iso-8859-1", "windows-1252", "ascii", "msh-18"
listenerstringThe MLLP listener (port) this trigger takes messages from, declared in Helm
mllp.listeners. Omitted:default(mllp.port). A save naming an undeclared listener is a 400.ackModestringaccept: AA once the message is durably recorded. respond (#751): waits like destination, then answers with the ACK the workflow's Respond step built (a custom MSA and ERR segments, or a whole ACK); with no usable Respond output, the destination-mode outcome; when the wait runs out,
ackTimeoutCode. destination: the ACK waits for the workflow's destinations: AA when every one completed, AR when one rejected it for good, AE on any other failure or when they have not finished withinackTimeoutMs. A resend of a message whose delivery failed replays it once and waits again. Not used for messages from anmsh15listener that set MSH-15.One of: "accept", "destination", "respond"
ackTimeoutMsintegerdestination and respond modes: how long the ACK waits, capped at the listener's
MLLP_TIMEOUTminus 5 s. One sender connection handles one message at a time, so a slow destination slows that sender (intended backpressure).ackTimeoutCodestringrespond mode: the ACK sent when the run has not settled within
ackTimeoutMs. AE: the sender resends (dedup absorbs it). AR: the sender gives up on the message; the recorded run still runs.One of: "AE", "AR"
ackOnFailurestringrespond mode, when a step after the Respond step fails: respond keeps the Respond step's ACK (Mirth's respond from destination); AE answers AE "Workflow failed; retry".
One of: "respond", "AE"
filteredAckstringThe ACK for a message this trigger's
filterdrops when no other workflow takes it. AR: "No matching triggers". AA: accepted, as Mirth answers for filtered messages. Either way the message is kept in Messages as Filtered, with the rule that dropped it.One of: "AR", "AA"
onErrorstringMessages always run in arrival order per sending facility (lane
<trigger>|<MSH-4>). continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.One of: "continue", "hold"
type: "fhir-subscription"object6 fields
typestringrequiredOne of: "fhir-subscription"
resourceTypestringrequiredcriteriastringinteractionstringOne of: "create", "update", "delete", "create-or-update"
orderingstringfifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger; one lane per resourceType/id). none: they run in parallel.
One of: "none", "fifo"
onErrorstringWith ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.
One of: "continue", "hold"
type: "x12"object19 fields
typestringrequiredOne of: "x12"
transactionSetsarray of stringrequiredsourceTypestringrequiredWhich deliveries this trigger takes. The server decides a delivery's source:
webhookforPOST /api/triggers/x12with a token,uploadfor a dashboard upload,sftpfor the SFTP pickup. A sender cannot claim one.One of: "sftp", "webhook", "upload"
sftpProfileIdstringsourceType sftp: the SFTP adapter profile whose folder the engine polls for X12 files.
pollIntervalintegersourceType sftp: milliseconds between pickups.
remotePathstringsourceType sftp: the folder to pick files up from.
filenamePatternstringsourceType sftp: a glob (
*,?,[abc]) on the file name.afterProcessingstringsourceType sftp: what happens to a file once its transaction sets are recorded. A file is never run twice,
leaveincluded: the engine's record of a file does not expire while the file is in the folder, anddeduplicate: falsedoes not turn it off.One of: "move", "delete", "leave"
processedPathstringsourceType sftp: where
moveputs files (required for move).errorPathstringsourceType sftp: where a file that is not X12 goes; without it the file stays and the error is recorded.
filenameRegexbooleanfilenamePattern is a regular expression matched against the whole name.
minFileAgeMsintegerA file modified more recently than this may still be being written and waits for a later pickup.
maxFileBytesintegerA larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.
sortBystringPickup order: oldest first, or by name.
One of: "modified", "name"
encodingstringHow file bytes are decoded (latin1: ISO-8859-1).
One of: "utf8", "latin1"
ackPathstringsourceType sftp: where the 999 / TA1 (see acknowledgments) are written, as
<file>.999/<file>.ta1.acknowledgmentsstring999: a 999 per functional group comes back with the delivery. 999+ta1: also a TA1 when ISA14=1 or the envelope is broken. Syntax checks only (control numbers and counts, a known ST), not implementation-guide validation.
One of: "none", "999", "999+ta1"
orderingstringfifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger). none: they run in parallel.
One of: "none", "fifo"
onErrorstringWith ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.
One of: "continue", "hold"
type: "sftp"objectPicks files up from an SFTP folder (like a Mirth File Reader). A file is downloaded only once it is minFileAgeMs old and its listed size is at most maxFileBytes; it is moved, deleted or left only after its runs are recorded, and never runs twice.
20 fields
typestringrequiredOne of: "sftp"
sftpProfileIdstringrequiredThe SFTP adapter profile whose folder the engine polls.
minFileBytesintegerA smaller file is left in place (Mirth fileSizeMinimum).
maxFilesPerPollintegerAt most this many files per pickup; the rest wait for the next one.
recursivebooleanAlso pick up files in subfolders (at most 10 deep), never in processedPath or errorPath. file.name is relative to remotePath; a moved file lands in processedPath by its own name.
ignoreDotbooleanSkip files and folders whose name starts with a dot.
remotePathstringrequiredThe folder to pick files up from.
pollIntervalintegerrequiredMilliseconds between pickups.
filenamePatternstringA glob (
*,?,[abc]) on the file name.filenameRegexbooleanfilenamePattern is a regular expression matched against the whole name.
minFileAgeMsintegerA file modified more recently than this may still be being written and waits for a later pickup.
maxFileBytesintegerA larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.
sortBystringPickup order: oldest first, by name, or smallest first.
One of: "modified", "name", "size"
encodingstringHow file bytes are decoded (latin1: ISO-8859-1). binary: the run's content is the bytes as base64, with contentEncoding "base64" (not with batch.mode rows).
One of: "utf8", "latin1", "windows-1252", "ascii", "utf16le", "binary"
afterProcessingstringWhat happens to a file once its runs are recorded.
leave: the file stays and never runs again while it is unchanged.One of: "move", "delete", "leave"
processedPathstringWhere
moveputs files (required for move; not remotePath).errorPathstringWhere a file that is too large, or a CSV that does not parse (rows mode), goes; without it the file stays and the error is recorded.
batchobject3 fields
modestringfile: one run per file, with { file, content }. rows: one run per CSV row, with { file, row, rowIndex, rowCount }; all rows of a file are recorded together.
One of: "file", "rows"
csvobjectrows mode: csv-parse options (delimiter, recordDelimiter, quote, escape, header, columns, skipLines, trim, skipEmpty, strictColumns, maxRows at most WORKFLOW_MAX_PENDING).
fixedWidthobjectrows mode, instead of csv: fixed-width-parse options (columns or records, recordDelimiter, recordLength, headerLines, footerLines, unknownRecords, maxRows at most WORKFLOW_MAX_PENDING); one run per record.
orderingstringfifo: runs execute one at a time in pickup order (files, then rows), across every engine replica.
One of: "none", "fifo"
onErrorstringWith ordering fifo: what a failed run does to its lane.
One of: "continue", "hold"
type: "file"objectPicks files up from the folder of a file, ftp, smb, webdav, s3 or sftp adapter profile (a Mirth File Reader over any scheme, P138). Same settings and runs as the sftp trigger; triggerType is "file".
20 fields
typestringrequiredOne of: "file"
adapterProfileIdstringrequiredThe adapter profile whose folder the engine polls: its adapter type (file, ftp, smb, webdav, s3 or sftp) is the transport.
minFileBytesintegerA smaller file is left in place (Mirth fileSizeMinimum).
maxFilesPerPollintegerAt most this many files per pickup; the rest wait for the next one.
recursivebooleanAlso pick up files in subfolders (at most 10 deep), never in processedPath or errorPath. file.name is relative to remotePath; a moved file lands in processedPath by its own name.
ignoreDotbooleanSkip files and folders whose name starts with a dot.
remotePathstringrequiredThe folder to pick files up from.
pollIntervalintegerrequiredMilliseconds between pickups.
filenamePatternstringA glob (
*,?,[abc]) on the file name.filenameRegexbooleanfilenamePattern is a regular expression matched against the whole name.
minFileAgeMsintegerA file modified more recently than this may still be being written and waits for a later pickup.
maxFileBytesintegerA larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.
sortBystringPickup order: oldest first, by name, or smallest first.
One of: "modified", "name", "size"
encodingstringHow file bytes are decoded (latin1: ISO-8859-1). binary: the run's content is the bytes as base64, with contentEncoding "base64" (not with batch.mode rows).
One of: "utf8", "latin1", "windows-1252", "ascii", "utf16le", "binary"
afterProcessingstringWhat happens to a file once its runs are recorded.
leave: the file stays and never runs again while it is unchanged.One of: "move", "delete", "leave"
processedPathstringWhere
moveputs files (required for move; not remotePath).errorPathstringWhere a file that is too large, or a CSV that does not parse (rows mode), goes; without it the file stays and the error is recorded.
batchobject3 fields
modestringfile: one run per file, with { file, content }. rows: one run per CSV row, with { file, row, rowIndex, rowCount }; all rows of a file are recorded together.
One of: "file", "rows"
csvobjectrows mode: csv-parse options (delimiter, recordDelimiter, quote, escape, header, columns, skipLines, trim, skipEmpty, strictColumns, maxRows at most WORKFLOW_MAX_PENDING).
fixedWidthobjectrows mode, instead of csv: fixed-width-parse options (columns or records, recordDelimiter, recordLength, headerLines, footerLines, unknownRecords, maxRows at most WORKFLOW_MAX_PENDING); one run per record.
orderingstringfifo: runs execute one at a time in pickup order (files, then rows), across every engine replica.
One of: "none", "fifo"
onErrorstringWith ordering fifo: what a failed run does to its lane.
One of: "continue", "hold"
type: "jms"objectConsumes a JMS queue or topic over AMQP 1.0 (a Mirth JMS Listener) through a jms adapter profile. One engine replica consumes each trigger. A message is acknowledged to the broker only once its run is recorded, so a crash redelivers it, and the JMS message id dedups the redelivery. A message the filter drops is acknowledged; one that can't be recorded (license, backlog, shutdown) stays on the broker.
10 fields
typestringrequiredOne of: "jms"
adapterProfileIdstringrequiredThe jms adapter profile (broker host, login, TLS).
destinationstringrequiredQueue or topic name.
destinationTypestringOne of: "queue", "topic"
subscriptionNamestringTopics: a durable subscription under this name (the profile's clientId, else medhook-<workflowId>, is its client id), so messages sent while no engine is connected wait for it.
selectorstringA JMS message selector, applied by the broker.
prefetchintegerMessages the broker may send ahead of acknowledgement.
orderingstringOne of: "none", "fifo"
onErrorstringOne of: "continue", "hold"
deduplicateboolean
type: "soap"objectA SOAP 1.1/1.2 endpoint at /api/triggers/soap/{listenerId} with its WSDL at ?wsdl (a Mirth Web Service Listener).
15 fields
typestringrequiredOne of: "soap"
listenerIdstringrequiredserviceNamestringThe generated WSDL's service name.
namespacestringThe generated WSDL's target namespace.
soapVersionstringOne of: "1.1", "1.2", "both"
operationsarray of stringOperation (Body element) names it takes; empty takes any.
wsSecuritystringOne of: "none", "UsernameToken"
wsUsernamestringwsPasswordstringWrite-only: stored encrypted, read back as
__set__.secretstringHMAC-SHA256 key for x-webhook-signature. Write-only, read back as
__set__.wsdlstringA WSDL to serve instead of the generated one.
responseobject3 fields
modestringOne of: "accepted", "destination"
nodeIdstringtimeoutMsinteger
orderingstringOne of: "none", "fifo"
onErrorstringOne of: "continue", "hold"
deduplicateboolean
metadataobjectArbitrary workflow-level metadata.
1 field
handlesPHIbooleanWhen true the engine requires a BAA-enabled license before executing.
createdBystringcreatedAtstring (date-time)updatedAtstring (date-time)ownerstring | nullWho owns the workflow (Settings · General). Changed with PATCH; null = not set.
tagsarray of stringLowercased tags (Settings · General). Changed with PATCH.
maxInFlightinteger | nullMost runs of this workflow the work runner starts at once across replicas: queued messages and polls wait while that many run (Settings · Delivery). A manual run is not held back but counts. Changed with PATCH; null = no limit.
dedupTtlHoursintegerGET only: how long a duplicate receipt is kept (INBOUND_DEDUP_TTL_HOURS, default 24), the Duplicate messages window.
maxWorkflowRetriesinteger | nullMax times to retry the entire workflow after top-level failure. Each retry is a durable pending execution due after the backoff: it survives a restart and holds no queue slot or ordering lane while it waits. Saved with the workflow and its versions; the deployed version's value runs. null = not set (0).
workflowRetryDelayMsinteger | nullBase delay (ms) before the first workflow-level retry; doubles per attempt, capped at 30 minutes.
WorkflowEdge
idstringrequiredsourcestringrequiredtargetstringrequiredlabelstringHow the edge routes. "error": the failure path of its source step. "true"/"false": a condition (Filter) step's branches. "done": a loop's after-loop edge, run once after the last item with the loop output (without one, the path ends at the loop). Any other label is display text. Edges carry no condition: a request with a non-empty
conditionis refused (400); branch with a condition (Filter) step instead.
WorkflowNode
idstringrequiredtypestringrequiredrespond: answers a webhook caller (the trigger must be a webhook; one per workflow; in a channel it is a destination's send). data.statusCode (2xx, 4xx or 5xx, default 200; not 401, 403, 409, 413, 429 or 503, which the webhook route answers itself), data.contentType, data.headers (name: Latin-1 value, at most 20; not Content-Type, Content-Length, Set-Cookie, Location, Refresh, Clear-Site-Data, Strict-Transport-Security, Access-Control-*, Content-Security-Policy* or Cross-Origin-*), data.timeoutMs (1000-60000, how long the caller waits) and data.errorStatus (4xx or 5xx, not the reserved ones, default 502, what a failed run answers); the step's input is the body. Without its own custom or destination response setting, the webhook waits for the run and answers this. component: data.componentId and data.release ("1.0.0") pin a release of a component in the same workspace; its steps run inline in this run (each one a step of the trace, ids "<step>~<inner>"), between a check of its inputs and of its outputs, and only its declared outputs go on. publish: data.topic names a topic in the same workspace; the message is checked against its schema and delivered once to every workflow with a topic trigger on it, as queued runs (not waited for). In a router branch it is the destination's send. router: each non-error outgoing edge is one isolated destination (filter → map → send). data.order "concurrent" (default) starts them all at once; "sequential" runs them one after another in edge order, a failed destination never stopping the next, and each later destination's JavaScript outputs and filters read the earlier ones as the frozen
responsesglobal: responses[name] = { status: sent | discarded (a Sink, live or test) | queued | filtered | failed | not-run, dryRun (true in a dry run or step test: status reads "sent" as in a live run, but nothing was sent; the trace shows WOULD SEND), data (the send step's output), error }. loop: runs its body per item; its "done" edge continues after the last item. trigger: the start node passes the message through; mid-graph, data.workflowId names a workflow in the same workspace that is started as a queued run with the message (data.input merged into a record message) and not waited for; chains stop at 5 levels. A "wait" step is refused (removed).One of: "adapter", "transform", "condition", "parallel", "router", "loop", "trigger", "publish", "component", "respond", "collector"
labelstringrequiredpositionobjectrequired2 fields
xnumberrequiredynumberrequired
dataobjectrequiredNode-type-specific configuration. Shape varies by
type(AdapterStepData, TransformStepData, ConditionStepData, etc.). Any step may carryerrorHandling(ErrorHandling). A transform step'smappingrows are FieldMapping and itsconfigoptions TransformStepConfig, both checked at save.3 fields
errorHandlingErrorHandlingWhat a failed step does. Step retries wait in-process within one run, so each wait is capped at 60 s and the attempts at 10; longer waits are workflow retries (maxWorkflowRetries), which are durable.
mappingarray of FieldMappingconfigTransformStepConfigOptions of a transform step (checked at save). Other keys are type-specific (fhir-to-hl7v2, fhir-bulk-split).