Adapters
The adapters that ship with the engine, and how adapter profiles hold their connection details.
On this page
An adapter connects a workflow to one kind of system. An adapter profile is one configured connection to it: base URL, options and credentials. The engine checks a profile's settings against the adapter's schema and can test the connection before you use it. Credentials are encrypted with AES-256-GCM before they are stored, and reads never return them.
The Adapter catalog shows these adapters next to the ones that are in progress or planned.
Built-in adapters
| Adapter | Type | Use it for |
|---|---|---|
| FHIR REST | fhir-rest | Any FHIR R4 server (basic, bearer, OAuth2, SMART backend services or GCP workload identity) |
| FHIR Bulk | fhir-bulk | FHIR Bulk Data export and import (NDJSON) |
| Epic FHIR | epic-fhir | Epic, with backend-services JWT authentication |
| athenahealth FHIR | athena-fhir | athenahealth |
| Oracle Health FHIR | oracle-fhir | Oracle Health |
| Cerner FHIR | cerner-fhir | Cerner (Oracle Health) |
| Allscripts FHIR | allscripts-fhir | Allscripts |
| Veradigm | veradigm-pro | Veradigm |
| NextGen FHIR | nextgen-fhir | NextGen Healthcare |
| MEDITECH FHIR | meditech-fhir | MEDITECH Expanse |
| Netsmart | netsmart | Netsmart myAvatar and myEvolv |
| eClinicalWorks FHIR | ecw-fhir | eClinicalWorks practices (read-only: patients, appointments, encounters) |
| Practice Fusion FHIR | practice-fusion-fhir | Practice Fusion practices (read-only: patients, encounters) |
| Google Cloud Healthcare FHIR | gcp-healthcare-fhir | A Google Cloud Healthcare API R4 FHIR store, with the engine's Workload Identity |
| Medplum | medplum | The local Medplum FHIR server in the stack |
| Generic REST | generic-rest | Any REST API, with SSRF protection |
| SOAP Web Service | soap | SOAP 1.1 and 1.2 web services, with WS-Security UsernameToken and WSDL operation listing |
| Salesforce | salesforce | Salesforce and Health Cloud records: bound SOQL, create, update, upsert on an external ID |
| DICOM | dicom | Send DICOM objects to a PACS or other storage SCP (C-STORE), and C-ECHO |
| JMS (AMQP 1.0) | jms | JMS queues and topics on ActiveMQ, Artemis, IBM MQ and other AMQP 1.0 brokers |
| Google Cloud Pub/Sub | gcp-pubsub | Pub/Sub topics and subscriptions (pull or push), FHIR store change notifications |
| Webhook | webhook | Receiving HTTP webhooks |
| SFTP | sftp | File transfer over SFTP |
| FTP / FTPS | ftp | File transfer over FTP or FTPS |
| SMB (Windows share) | smb | Files on an SMB (Windows) share |
| WebDAV | webdav | Files on a WebDAV server |
| Local File | file | Files in a folder mounted into the engine |
| MLLP Outbound | mllp | Sending HL7v2 over MLLP, or any data over raw TCP |
| X12 EDI | x12 | 837, 835, 270 and 271 transactions |
| CDA | cda | CDA and C-CDA documents |
| Google Cloud Storage | gcs | Objects in a GCS bucket |
| Amazon S3 | s3 | Objects in an S3 or S3-compatible bucket |
| SQL database | sql-database | Reading, writing and looking up rows in PostgreSQL, SQL Server, MySQL or Oracle |
| Google BigQuery | bigquery | Insert rows into a table, run a parameterized query, or poll a query |
| SMTP Sender | smtp | Sending an email per message (STARTTLS, SSL or plain SMTP) |
| Document Writer | document-writer | Rendering the message to PDF (optionally password protected) or RTF |
| JavaScript Writer | javascript-writer | A sandboxed script as a destination (Mirth JavaScript Writer) |
| Sink (discard) | sink | Record each message and deliver nothing, for building and testing (Rhapsody Sink) |
Each adapter has its own reference page, linked from the table: its purpose, auth options, every setting (type, whether it is required, its default and whether it is secret), its actions, a minimal profile and its limits. The settings and actions on those pages are generated from the engine's code.
GET /api/adapters lists what your engine has, with each action's parameters as form fields (parameterFields) and the keys a message may supply (inputKeys). GET /api/adapters/{type} returns one adapter's configuration fields. See Adapters in the API.
Settings and actions for each adapter
Each entry lists the authentication modes, the actions a step can call, and the settings that matter. For every action and setting, with types, defaults and which settings are secret, see Adapter settings. That page is generated from the engine's code.
Every HTTP sender (FHIR REST, FHIR Bulk, the EHR adapters, GCP Healthcare FHIR, BigQuery, SOAP and Generic REST, which also sends outbound webhooks) takes the same connection options: a client certificate, a CA to trust, a minimum TLS version and a proxy. They apply to the adapter's OAuth token requests too, except the Google service account key exchange (GCP Healthcare FHIR and BigQuery), which does not go through the proxy.
On every EHR adapter, the send verbs write, send and post run the adapter's default send, and the read-only adapters (athenahealth, MEDITECH) refuse them. The read verbs read, get and fetch read {resourceType}/{id}. An action the adapter does not know fails the step without sending anything, and the error lists the supported actions. A trailing ? marks an optional setting. Settings marked as secret are encrypted at rest and never returned by a read. GET /api/adapters/{type} returns the full schema for your engine.
FHIR servers
FHIR REST (fhir-rest)
- Auth:
none,basic,bearer,gcp-workload-identity,oauth2(client credentials) andbackend-services(SMART Backend Services, an RS384 client assertion). The token is cached and fetched again once after a 401. - Actions:
read,search(maxPages?, 1 to 50, default 1: followsnextlinks up to that many pages),create(ifNoneExist?: conditional create, see below),update. - Settings:
baseUrl,authType,credentials(usernameandpassword,token, orclientId,clientSecret,tokenUrl,privateKeyPEM,keyIdandscopes?, defaultsystem/*.read system/*.write; secret),headers?,timeout?,fhirVersion?(R4,R5orauto, defaultauto).
FHIR Bulk (fhir-bulk)
- Auth:
backend-services,bearer,basic,none(defaultnone). - Actions:
system-export,patient-export,group-export,check-status. - Settings:
fhirBaseUrl,authType?,credentials(privateKeyPEM,keyId,clientId,tokenUrl,scopes, ortoken, orusernameandpassword; secret),pollIntervalMs?(5000),maxPollAttempts?(720),maxConcurrentDownloads?(3),maxRecordsPerFile?,timeout?(30000).
Epic FHIR (epic-fhir)
- Auth: JWT backend services. SMART on FHIR launch is optional.
- Actions:
search-patients,get-patient-summary,discover-patients,search,read,write-document,smart-launch. - Settings:
environment?(vendorservices,sandboxorproduction, defaultsandbox),clientId,keyId,privateKeyPEM(secret),tokenUrl,fhirBaseUrl,smartEnabled?,smartRedirectUri?.
athenahealth FHIR (athena-fhir)
- Auth: two-legged OAuth with a signed JWT. SMART launch is optional.
- Actions:
search-patients,get-patient-summary,search,read. - Settings:
environment?(previeworproduction, defaultpreview),clientId,keyId,privateKeyPEM(secret),tokenUrl,fhirBaseUrl,practiceId?,smartEnabled?,smartRedirectUri?.
Oracle Health FHIR (oracle-fhir)
- Auth: JWT bearer, or a client secret.
- Actions:
search-patients,get-patient-summary,discover-patients,search,read,write-document,update-document. - Settings:
environment?(sandboxorproduction),clientId,tokenUrl,fhirBaseUrl, then eitherkeyIdandprivateKeyPEMorclientSecret(secret),smartEnabled?,smartRedirectUri?.
Cerner FHIR (cerner-fhir)
- Auth: OAuth2 client credentials (SMART backend services).
- Actions:
search-patients,get-patient,search-encounters,get-observations,get-medication-requests,get-conditions,create-resource. - Settings:
tenantId,clientId,clientSecret(secret),fhirBaseUrl,tokenUrl?,scopes?,timeout?(30000).
Allscripts FHIR (allscripts-fhir)
- Auth: Allscripts AuthToken. The adapter signs in with a user name and password, and signs in again when a call returns 401.
- Actions:
read-patient,search-patients,read-appointment,search-appointments,read-encounter,write-observation,create-resource. - Settings:
baseUrl,username,password(secret),appName,appUserName,defaultPracticeId?.
Veradigm (veradigm-pro)
- Auth: OAuth2 client credentials plus an API key.
- Actions:
get-patient,search-patients,get-appointments,get-encounters,get-prescriptions,get-lab-results,create-resource. - Settings:
fhirBaseUrl,clientId,clientSecret(secret),tokenUrl,apiKey(secret),scopes?.
NextGen FHIR (nextgen-fhir)
- Auth: OAuth2 client credentials.
- Actions:
read-patient,search-patients,read-appointment,read-encounter,read-document,write-observation,create-resource. - Settings:
baseUrl,clientId,clientSecret(secret),scope?.
MEDITECH FHIR (meditech-fhir)
- Auth: OAuth2 client credentials.
- Actions:
search-patients,get-patient,search-encounters,get-documents,get-observations,get-allergies. - Settings:
instanceUrl,clientId,clientSecret(secret),tokenUrl,scopes?.
Netsmart (netsmart)
- Auth: OAuth2 client credentials.
- Actions:
get-patient,search-patients,get-care-team,get-service-requests,get-encounters,get-conditions,get-observations,create-episode-of-care. - Settings:
fhirBaseUrl,clientId,clientSecret(secret),tokenUrl,scopes?.
eClinicalWorks FHIR (ecw-fhir)
- Auth: SMART Backend Services (
backend-services, RS384 client assertion) or client credentials with a secret (oauth2). The token is cached and fetched again once after a 401. - Actions:
read,search(maxPages?),get-patient,search-patients,search-appointments,search-encounters. Read-only. - Settings:
baseUrl(the practice's/fhir/r4/{practice_code}URL),authType?,credentials.clientId,credentials.tokenUrl,credentials.privateKeyPEM(secret),credentials.keyId,credentials.clientSecret(secret),credentials.scopes?,timeout?. - Errors: a 429 or 5xx is retried; a 429 without
Retry-Afterwaits 60 seconds (eClinicalWorks blocks an app for the rest of the minute). See eClinicalWorks FHIR.
Practice Fusion FHIR (practice-fusion-fhir)
- Auth: SMART Backend Services only (
backend-services, RS384 client assertion). The token is cached and fetched again once after a 401. - Actions:
read,search(maxPages?),get-patient,search-patients,search-encounters. Read-only; Practice Fusion publishes no Appointment resource. - Settings:
baseUrl(from Practice Fusion's ServiceBaseURLs.json),credentials.clientId,credentials.tokenUrl,credentials.privateKeyPEM(secret),credentials.keyId,credentials.scopes?,timeout?. See Practice Fusion FHIR.
Google Cloud Healthcare FHIR (gcp-healthcare-fhir)
- Auth:
workload-identity(default: the engine's own Google service account on GKE, no stored key) orservice-account-key(a stored JSON key, for an engine outside GKE). The token is cached and fetched again once after a 401. - Actions:
read,search(maxPages?),create(ifNoneExist?),update,transaction(a transaction or batch Bundle). - Settings:
project,location,dataset,fhirStore,authType?,credentials.serviceAccountKey(secret),timeout?. The base URL is built from the four store fields, and every request stays inside that store. - Errors: a 401, 403 or other 4xx is not retried; a 408, 429 or 5xx is. See Google Cloud Healthcare FHIR.
Conditional create. On fhir-rest and gcp-healthcare-fhir, a create step's ifNoneExist is sent as the If-None-Exist header, so the server returns the resource it already has instead of storing a copy. Set it to a search such as identifier=urn:demohealth:mrn|TP0001, or to identifier to use the resource's first identifier. A resent HL7 message then finds the patient it created the first time.
Medplum (medplum)
- Auth: client credentials.
- Actions:
search,read,create,update,import-bundle,patient-everything. - Settings:
clientId,clientSecret(secret),baseUrl?(defaulthttp://medplum-server:8103).
Files and objects
SFTP (sftp)
- Auth:
passwordorprivatekey. - Actions:
download(encoding: "utf8"or"latin1"returns the file as text, never parsed as JSON),upload,list,delete,rename(fromPath,toPath; alsomove). A rename the server refused did not happen; one whose reply was lost may have, so it is not retried. - Settings:
host,port?(22),username,authType,password,privateKeyandpassphrase(secret),timeout?(30000),hostKeyFingerprints?(SHA256:...),knownHosts?,insecureSkipHostKeyCheck?(defaultfalse),uploadMode?(temp-rename, the default, writes a hidden.partfile and renames it; ordirect),createDirs?(defaultfalse),operationTimeout?(300000). - Host keys: every connection checks the server's host key against
hostKeyFingerprintsorknownHosts. There is no trust on first use: an unknown key is refused withSFTP host key not trusted, and the error names the fingerprint the server presented. Get it from a trusted machine withssh-keyscan sftp.example.test | ssh-keygen -lf -.insecureSkipHostKeyCheckturns the check off; never use it for PHI. - Upload names:
uploadtakesremotePathand an optionalfilenamePatternjoined to it, both with name templates. A session is reused per profile and closes afterSFTP_SESSION_IDLE_MS(60 seconds) idle.
To watch a folder, use the SFTP pickup trigger: a filename glob, a file-age check, and a move, delete or error folder after each file, for any file type, with one run per file or one per CSV row. The file pickup trigger does the same over every transport below.
FTP / FTPS, SMB, WebDAV and Local File (ftp, smb, webdav, file)
The other transports of a Mirth File Reader and File Writer. Each has the SFTP actions (download, upload, list, delete, rename) and the same writer options: uploadMode (temp-rename, the default, or direct), writeMode (overwrite, the default, append or error-if-exists) and createDirs. upload takes remotePath and an optional filenamePattern with name templates, ${originalFilename} included.
- FTP / FTPS: explicit (default) or implicit TLS, a private CA in
tlsCaPem,tlsMinVersion. Plain FTP is accepted with a warning. See FTP / FTPS. - SMB: NTLM login to one share; SMB 2.x without encryption, so every profile gets a warning to keep it on a private network or VPN. See SMB.
- WebDAV: basic or bearer auth, the profile's TLS and proxy options; plain
http://is accepted with a warning. See WebDAV. - Local File: a folder on a mounted volume, confined to the folders the operator lists in
FILE_ADAPTER_ROOTS(HelmfileAdapter.mounts). See Local File.
FTP, SMB and WebDAV hosts go through the SSRF rules: a private host needs SSRF_ALLOWLIST. An HL7 batch sent over MLLP or HTTP is split into one execution per message; see Batches.
Google Cloud Storage (gcs)
- Auth:
workload-identity(default) orservice-account-key. - Actions:
get,upload,list,delete. - Settings:
bucket,prefix?,authType?,credentials.serviceAccountKey(secret),timeout?(30000),maxObjectBytes?(32 MiB). The objectnametakes name templates.
Amazon S3 (s3)
- Auth: an access key, with an optional session token.
- Actions:
getObject,putObject,listObjects,deleteObject. The file pickup trigger also picks objects up from a folder (prefix) of the bucket; a move is a copy then a delete. - Settings:
bucket,region,endpoint?(for an S3-compatible service),prefix?,serverSideEncryption?(AES256,aws:kmsornone, defaultAES256),credentials(accessKeyId,secretAccessKey,sessionToken?; secret),timeout?(30000),maxObjectBytes?(50 MiB). The objectkeytakes name templates.
Databases
SQL database (sql-database)
- Auth: a database user and password, over TLS (
tls.modeverify-fullby default,require, ordisablefor a host onSSRF_ALLOWLISTonly). - Actions:
query(one statement, read-only unlessreadOnly: false, at mostmaxRowsrows, default 1000),execute(oneINSERT,UPDATEorDELETEin a transaction; returnsrowCount),poll(the reader of apollingtrigger). Values are bound as:name, never pasted into the SQL. - Settings:
dialect(postgres, the default,sqlserver,mysqlororacle),host,port?(the dialect's default),database,oracleSid?,user,password(secret),tls?,poolSize?(5),statementTimeoutMs?(30000). The host goes through the SSRF rules. See SQL database adapter.
Google BigQuery (bigquery)
- Auth:
workload-identity(default: the engine's Google service account on GKE, no stored key) orservice-account-key(a stored JSON key). The token is cached and fetched again once after a 401. - Actions:
insert(rows into an existing table, at most 10,000 rows and 9.5 MB;onRowErrorfail, the default, orskip;rowIdColumn?),query(one GoogleSQL statement with:nameor@nameparameters, at mostmaxRowsrows, default 1000),poll(the reader of apollingtrigger, binding:cursorand:limit).write,sendandpostruninsert;readrunspoll. Values are bound as parameters, never pasted into the SQL. - Settings:
project,dataset,jobProject?(defaultproject),location?,authType?,credentials(serviceAccountKey; secret),maximumBytesBilled?(10 GiB),kmsKeyName?,timeout?(30000),queryTimeoutMs?(120000). See Google BigQuery.
Generic HTTP and messaging
Generic REST (generic-rest)
- Auth:
none,basic,bearer,apikey,oauth2(client credentials:clientId,clientSecret,tokenUrl,scopes?;oauth2ClientAuth?client_secret_basicorclient_secret_post) oroauth2-private-key-jwt(an RFC 7523 client assertion:clientId,tokenUrl,privateKeyPEM,keyId?). Either can sendoauth2Audience?andoauth2Resource?. See OAuth2. - Actions:
get,post,put,delete,patch. A write with noendpointsends tobaseUrl, and with nobodysends the step's input. A string input (HL7, XML, CSV) is sent as it is; an object is JSON, or form-encoded forapplication/x-www-form-urlencoded. The Content-Type comes from a step header, then the step'scontentType, then the profile'sdefaultContentType, thentext/plainfor a string andapplication/jsonfor anything else. - Settings:
baseUrl,authType,credentials(usernameandpassword,token,apiKeywithapiKeyHeader?defaultX-API-Key, or theoauth2fields; secret),defaultContentType?,defaultHeaders?,timeout?(30000). The engine refuses URLs that resolve to private addresses. SeeSSRF_ALLOWLISTin Environment variables.
SOAP Web Service (soap)
- Auth:
none,basicorbearer, plus an optional WS-Security UsernameToken (wsSecurity:PasswordTextorPasswordDigest). Mutual TLS through the connection options. - Actions:
send(an operation body, abodyTemplateor the step input, in a SOAP 1.1 or 1.2 envelope with its SOAPAction; a Fault fails the step),list-operations(the WSDL's operations and SOAPActions). - Settings:
endpointUrl,soapVersion?(1.1or1.2, default1.1),wsdlUrl?,defaultSoapAction?,authType?,credentials(secret),wsSecurity?,wsSecurityCredentials(secret),wsSecurityTimestampSeconds?,bodyTemplate?,defaultHeaders?,timeout?(30000). See SOAP Web Service.
Salesforce (salesforce)
- Auth:
oauth2-client-credentials(default: a connected app'sclientIdandclientSecret, with your My Domain host asloginUrl) orjwt-bearer(clientId,username,privateKeyPEM; an RS256 assertion). The instance URL comes from the token response; the session is cached and renewed once after a 401. - Actions:
query(one SOQLSELECTwith:namevalues bound as literals; followsnextRecordsUrlup tomaxRecords, default 2000, andmaxPages, default 25),poll(the reader of apollingtrigger, binding:cursorand:limit),read,create,update,upsert(on an external ID field),delete,limits.write,sendandpostruncreate. - Settings:
loginUrl?,apiVersion?(v61.0),authType?,credentials(secret),jwtAudience?,sessionCacheMinutes?(30),timeout?(30000). See Salesforce.
JMS (jms)
- Auth: SASL PLAIN (
username,password) or anonymous; TLS with a private CA, minimum version and mutual TLS. - Actions:
send(a message on a queue or topic, waiting for the broker to accept it). The JMS Listener trigger consumes with the same profile. - Settings:
host,port?(5672),brokerType?(activemq,artemisorgeneric),username?,password(secret),virtualHost?,clientId?,tlsEnabled?, the TLS settings,timeout?(30000),idleTimeoutMs?(60000). See JMS.
Google Cloud Pub/Sub (gcp-pubsub)
- Auth:
workload-identity(default) orservice-account-key, the GCS adapter's. - Actions:
publish(one message:data,attributes?,orderingKey?,topic?,encoding?). The Pub/Sub trigger pulls or receives pushes, and acknowledges a message only once its run is recorded. - Settings:
projectId,topic?,subscription?,authType?,credentials.serviceAccountKey(secret),timeout?(30000). See Google Cloud Pub/Sub.
SMTP Sender (smtp)
- Auth:
encryptionstarttls(default),sslornone(plain, with a warning), plus an optionalusernameandpassword. The certificate is verified against the system store ortlsCaPem. - Actions:
send: one email per message.to,cc,bcc,from,replyTo,subject,body,headersandattachmentsare templates over the message; a line break in a header field fails the step.attachInputDocumentattaches a Document Writer's output. - Settings:
host(passes the SSRF rules; a private relay needsSSRF_ALLOWLIST),port?(587),encryption?,username?,password(secret),from?,timeoutMs?(30000), and the TLS options. See SMTP Sender.
JavaScript Writer (javascript-writer)
- Auth: none.
- Actions:
send: runs the step'sscriptin the sandbox; the return value orresponseMapsets the response status (SENT,FILTERED,ERROR,QUEUED), as in Mirth. - Settings: none. See JavaScript Writer.
Sink (discard) (sink)
- Auth: none. Built in: a step names the profile
medhook:sink, so it needs no adapter profile. - Actions:
send: records exactly what the step received as its output ({ sunk: true, delivered: false, received }) and delivers nothing. It always succeeds. - Settings: none. See Sink (discard).
Webhook (webhook)
- Auth:
none,header,query,signature. - Actions:
receive,register,unregister. - Settings:
path,method?(POST,GET,PUT,PATCHorDELETE),authentication,authConfig(headerName,queryParam,expectedValue,secret,signatureHeader?defaultX-Webhook-Signature,algorithm?sha256orsha1),responseConfig?(statusCode,body,contentType). - A profile serves
/api/webhooks/{path}. For per-trigger signing see Triggers.
MLLP Outbound (mllp)
- Auth: none, or TLS. Reach the receiver over a private network or a VPN tunnel, or turn on TLS.
- Actions:
send. It sends one HL7v2 message and waits for the ACK. - Settings:
host,port?(2575),timeout?(30000 ms, for the connection and the reply),connectTimeoutMs?andackTimeoutMs?(each defaults totimeout),expectAck?(defaulttrue),tlsEnabled?,tlsFingerprint256?,tlsCaPem?,tlsCaMode?,tlsClientCertPem?,tlsClientKeyPem?,tlsClientPfx?,tlsClientPassphrase?,tlsMinVersion?,tlsServername?,encoding?(utf-8, the default,iso-8859-1,windows-1252,asciiormsh-18),sendingApplication?andsendingFacility?(overwrite MSH-3 and MSH-4). See MLLP and ACKs. Raw TCP (Mirth's Basic TCP):framing?(mllp,frameoreos),startBytes?,endBytes?,responseCheck?(hl7-ackornone),keepConnectionOpen?(defaulttrue) andbinary?; see Raw TCP.
DICOM (dicom)
- Auth: AE titles (
callingAeTitle,calledAeTitle), optional user identity (credentials), optional DICOM TLS with a custom CA and a client certificate. - Actions:
send(C-STORE the object adicomtrigger stored, or a base64 Part 10 file indata),echo(C-ECHO). - Settings:
host,port?(104),calledAeTitle,callingAeTitle?(MEDHOOK),timeout?(30000),credentials(secret),tlsEnabled?,tlsCaPem?,tlsCaMode?,tlsClientCertPem?,tlsClientKeyPem?,tlsMinVersion?. See DICOM.
Formats
Document Writer (document-writer)
- Auth: none;
pdfPassword(secret) protects every PDF with AES-256. - Actions:
send: renderstemplate(default${message}) topdforrtf, returned as the step's output (output: attachment), written todirectory(file), orboth. No script runs and no remote image or font is loaded. - Settings:
directory?(insideFILE_ADAPTER_ROOTS),pdfPassword?. See Document Writer.
X12 EDI (x12)
- Auth: none.
- Actions:
parse,generate,query. - Settings:
defaultDelimiters?(segment,element,sub). They apply when generating. Parsing always takes the delimiters from theISA, as the standard says. generate: pass{ envelope, transactions }to build a whole interchange with control numbers that stay the same when the step retries (see Transforms), or{ data }in thex12-parseoutput shape. A{ data, transactionSet }in the older node-x12 notation still works.
CDA (cda)
- Auth: none.
- Actions:
parse-cda,cda-to-fhir,extract-patient,extract-sections,extract-medications,extract-problems. - Settings: none. The step passes the CDA XML as
content. To read a document from SFTP, a URL or a bucket, fetch it with the SFTP, Generic REST or GCS adapter first.
Connection options (HTTP senders)
Some partners only accept a call that presents a client certificate, sign their server certificate with a private CA, or sit behind an egress proxy. Set these on the adapter profile. In New connection and on the Settings tab they are under More settings › Connection options (TLS, proxy). Leave them empty for a direct connection that trusts the system CAs.
| Setting | What it does |
|---|---|
tlsCaPem? | PEM CA certificates to verify the server with. |
tlsCaMode? | replace (default): trust only tlsCaPem. add: trust the system CAs and tlsCaPem. Needs tlsCaPem. |
tlsClientCertPem? | PEM client certificate for mutual TLS. Set it with tlsClientKeyPem. |
tlsClientKeyPem? | PEM private key of the client certificate. Secret. |
tlsClientPfx? | The client certificate and key as a base64 PKCS#12 (.p12, .pfx) bundle, instead of the PEM pair. Secret. |
tlsClientPassphrase? | The PKCS#12 passphrase. Secret. |
tlsMinVersion? | TLSv1.2 (default) or TLSv1.3. |
proxyUrl? | An http:// or https:// proxy, such as http://proxy.example.test:3128. Credentials do not go in the URL. |
proxyUsername? | Proxy user, sent with Basic auth. |
proxyPassword? | Proxy password. Secret. |
noProxy? | Hosts that skip the proxy, one per line: a name (it covers its subdomains), .suffix, host:port or *. |
The engine checks the settings when you save the profile. It refuses a certificate without its key, a PEM pair together with a PKCS#12 bundle, tlsCaMode without a CA, a key that does not match its certificate, a wrong PKCS#12 passphrase and a CA that does not parse. The messages never repeat the key or the passphrase. There is no setting that turns certificate or host name checks off: for a partner with a private CA, put that CA in tlsCaPem.
The proxy is a host like any other. The engine checks the target of every request, redirects included, before it asks the proxy to connect, so a proxy cannot reach an address the SSRF rules refuse. A proxy on a private address must be in SSRF_ALLOWLIST.
Test connection names the TLS or proxy problem:
| Reason | What to do |
|---|---|
| server certificate is signed by an unknown CA | Add the partner's CA in tlsCaPem. |
| server certificate expired / not yet valid | Ask the partner to renew it, or check the engine's clock. |
| hostname mismatch: certificate is not valid for the host | Use the host name the certificate names in the URL. |
| server requires a client certificate | Set tlsClientCertPem and tlsClientKeyPem, or tlsClientPfx. |
| server does not support TLS ≥ the minimum | Lower tlsMinVersion only if your policy allows it. |
| wrong PKCS#12 passphrase | Enter the bundle's passphrase again. |
| proxy refused the credentials (407) | Check proxyUsername and proxyPassword. |
| proxy unreachable | Check proxyUrl and the network path to the proxy. |
The MLLP Outbound adapter takes the same tlsCaPem, tlsCaMode, tlsClientCertPem, tlsClientKeyPem, tlsClientPfx, tlsClientPassphrase and tlsMinVersion, with tlsEnabled on. The Mirth importer maps an HTTP Sender's proxy to proxyUrl and tells you to add the proxy credentials and any SSL Manager certificates on the profile, because a channel export does not carry them.
What a message can set
A step's config decides where it sends. A message supplies only the data keys the adapter declares for the action, such as a REST body, an MLLP message, an SFTP or GCS content, or an EHR read's patientId. It never sets an endpoint, headers, a method, a file path or an object name, and the step's config wins on every key. When the step names no payload, the input as received is the payload.
| Adapter | Keys a message may supply |
|---|---|
mllp | send: message, rawMessage |
generic-rest | post, put, patch: body. get, delete: none |
sftp, ftp, smb, webdav, file, gcs | uploads: content. Reads, lists and deletes: none |
s3, fhir-bulk | none |
sql-database | query, execute: params. poll: none |
soap | send: body |
salesforce | query: params. read, delete: id. create: record. update: id, record. upsert: externalId, record |
smtp, document-writer, javascript-writer | none: their templates or script read the whole input |
sink | none: it records the whole input |
fhir-rest | read: resourceType, id. search: searchParams. Writes: none (the input is the resource) |
EHR adapters and medplum | reads: patient and resource ids and search criteria. Sends: the resource or bundle, and the Epic and Oracle note fields |
A FHIR id or resource type from a message is checked before it reaches a URL, so it cannot leave the configured base. To name a file or object from the message, use a name template.
Destination naming
The SFTP, FTP, SMB, WebDAV and Local File remotePath and filenamePattern, the GCS object name and the S3 key take tokens:
| Token | Becomes |
|---|---|
${messageControlId} | MSH-10 of the trigger's message, or of the HL7 step input. |
${executionId} | This attempt's execution id. |
${rootExecutionId} | The first attempt's id, the same across workflow retries. |
${date:yyyyMMddHHmmss} | The run's start, in UTC. The format uses yyyy, MM, dd, HH, mm, ss, SSS and the separators -, _, . and T. |
${uuid} | 8 hex characters. The same on a retry, different for each loop item. |
${msh.N}, ${msh.N.C} | An MSH field or component, in HL7 numbering, such as ${msh.9.1}. |
${originalFilename} | The picked-up file's name (without its folder), when an SFTP or file pickup started the run. Mirth's ${originalFilename}. |
${channel.KEY} | A channel map value an earlier JavaScript step set ($c('site', 'NORTH'), channelMap.put), like Mirth's ${variable}. |
For example, "filenamePattern": "${msh.9.1}_${messageControlId}.hl7". Only MSH fields, ids, the sender's own file name and channel map values can be named, because names show up in listings and logs: keep PHI out of a channel value you name a file with. Each value is reduced to letters, digits, ., _ and -, and a name with a . or .. segment is refused. An unknown token or an empty value fails the step without writing, and deploy refuses a pattern that is not valid (INVALID_NAME_PATTERN). Include a unique token, or the next message overwrites the file.
Create a profile
Create profiles in the engine UI with Adapters › New connection (see Manage connections on the Adapters page), or with the API:
curl -X POST "$ENGINE_URL/api/adapter-profiles" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Test FHIR server",
"adapterType": "fhir-rest",
"config": {
"baseUrl": "https://fhir.example.test/r4",
"authType": "bearer",
"credentials": { "token": "synthetic-token" }
}
}'The engine refuses a config the adapter's schema would reject. Then test it with POST /api/adapter-profiles/{id}/test. See Adapter profiles in the API.
Two limits protect a destination that cannot take much traffic. Both hold across every engine replica, and both are set on the connection's Settings tab (Edit on the row) or with PUT /api/adapter-profiles/{id}. Limits · live on the Overview tab shows how much of each is in use:
| Setting | UI label | What it does |
|---|---|---|
maxConcurrentCalls | Max concurrent calls | 1 to 100 calls in flight at once. Empty: MAX_CONCURRENT_ADAPTER_CALLS per engine process. |
maxCallsPerSecond | Max calls per second | 1 to 1000 calls started per second, with a burst of one second's worth. Empty: no limit. |
A step waits up to ADAPTER_SLOT_WAIT_MS (60 seconds) for a slot or a token, then fails without sending, so its retry applies. When a REST or FHIR destination answers 429 or 503 with Retry-After, the next attempt waits at least that long. See Environment variables.