Skip to content
Reference

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

AdapterTypeUse it for
FHIR RESTfhir-restAny FHIR R4 server (basic, bearer, OAuth2, SMART backend services or GCP workload identity)
FHIR Bulkfhir-bulkFHIR Bulk Data export and import (NDJSON)
Epic FHIRepic-fhirEpic, with backend-services JWT authentication
athenahealth FHIRathena-fhirathenahealth
Oracle Health FHIRoracle-fhirOracle Health
Cerner FHIRcerner-fhirCerner (Oracle Health)
Allscripts FHIRallscripts-fhirAllscripts
Veradigmveradigm-proVeradigm
NextGen FHIRnextgen-fhirNextGen Healthcare
MEDITECH FHIRmeditech-fhirMEDITECH Expanse
NetsmartnetsmartNetsmart myAvatar and myEvolv
eClinicalWorks FHIRecw-fhireClinicalWorks practices (read-only: patients, appointments, encounters)
Practice Fusion FHIRpractice-fusion-fhirPractice Fusion practices (read-only: patients, encounters)
Google Cloud Healthcare FHIRgcp-healthcare-fhirA Google Cloud Healthcare API R4 FHIR store, with the engine's Workload Identity
MedplummedplumThe local Medplum FHIR server in the stack
Generic RESTgeneric-restAny REST API, with SSRF protection
SOAP Web ServicesoapSOAP 1.1 and 1.2 web services, with WS-Security UsernameToken and WSDL operation listing
SalesforcesalesforceSalesforce and Health Cloud records: bound SOQL, create, update, upsert on an external ID
DICOMdicomSend DICOM objects to a PACS or other storage SCP (C-STORE), and C-ECHO
JMS (AMQP 1.0)jmsJMS queues and topics on ActiveMQ, Artemis, IBM MQ and other AMQP 1.0 brokers
Google Cloud Pub/Subgcp-pubsubPub/Sub topics and subscriptions (pull or push), FHIR store change notifications
WebhookwebhookReceiving HTTP webhooks
SFTPsftpFile transfer over SFTP
FTP / FTPSftpFile transfer over FTP or FTPS
SMB (Windows share)smbFiles on an SMB (Windows) share
WebDAVwebdavFiles on a WebDAV server
Local FilefileFiles in a folder mounted into the engine
MLLP OutboundmllpSending HL7v2 over MLLP, or any data over raw TCP
X12 EDIx12837, 835, 270 and 271 transactions
CDAcdaCDA and C-CDA documents
Google Cloud StoragegcsObjects in a GCS bucket
Amazon S3s3Objects in an S3 or S3-compatible bucket
SQL databasesql-databaseReading, writing and looking up rows in PostgreSQL, SQL Server, MySQL or Oracle
Google BigQuerybigqueryInsert rows into a table, run a parameterized query, or poll a query
SMTP SendersmtpSending an email per message (STARTTLS, SSL or plain SMTP)
Document Writerdocument-writerRendering the message to PDF (optionally password protected) or RTF
JavaScript Writerjavascript-writerA sandboxed script as a destination (Mirth JavaScript Writer)
Sink (discard)sinkRecord 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) and backend-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: follows next links up to that many pages), create (ifNoneExist?: conditional create, see below), update.
  • Settings: baseUrl, authType, credentials (username and password, token, or clientId, clientSecret, tokenUrl, privateKeyPEM, keyId and scopes?, default system/*.read system/*.write; secret), headers?, timeout?, fhirVersion? (R4, R5 or auto, default auto).

FHIR Bulk (fhir-bulk)

  • Auth: backend-services, bearer, basic, none (default none).
  • Actions: system-export, patient-export, group-export, check-status.
  • Settings: fhirBaseUrl, authType?, credentials (privateKeyPEM, keyId, clientId, tokenUrl, scopes, or token, or username and password; 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, sandbox or production, default sandbox), 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? (preview or production, default preview), 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? (sandbox or production), clientId, tokenUrl, fhirBaseUrl, then either keyId and privateKeyPEM or clientSecret (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-After waits 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) or service-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? (default http://medplum-server:8103).

Files and objects

SFTP (sftp)

  • Auth: password or privatekey.
  • Actions: download (encoding: "utf8" or "latin1" returns the file as text, never parsed as JSON), upload, list, delete, rename (fromPath, toPath; also move). 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, privateKey and passphrase (secret), timeout? (30000), hostKeyFingerprints? (SHA256:...), knownHosts?, insecureSkipHostKeyCheck? (default false), uploadMode? (temp-rename, the default, writes a hidden .part file and renames it; or direct), createDirs? (default false), operationTimeout? (300000).
  • Host keys: every connection checks the server's host key against hostKeyFingerprints or knownHosts. There is no trust on first use: an unknown key is refused with SFTP host key not trusted, and the error names the fingerprint the server presented. Get it from a trusted machine with ssh-keyscan sftp.example.test | ssh-keygen -lf -. insecureSkipHostKeyCheck turns the check off; never use it for PHI.
  • Upload names: upload takes remotePath and an optional filenamePattern joined to it, both with name templates. A session is reused per profile and closes after SFTP_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 (Helm fileAdapter.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) or service-account-key.
  • Actions: get, upload, list, delete.
  • Settings: bucket, prefix?, authType?, credentials.serviceAccountKey (secret), timeout? (30000), maxObjectBytes? (32 MiB). The object name takes 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:kms or none, default AES256), credentials (accessKeyId, secretAccessKey, sessionToken?; secret), timeout? (30000), maxObjectBytes? (50 MiB). The object key takes name templates.

Databases

SQL database (sql-database)

  • Auth: a database user and password, over TLS (tls.mode verify-full by default, require, or disable for a host on SSRF_ALLOWLIST only).
  • Actions: query (one statement, read-only unless readOnly: false, at most maxRows rows, default 1000), execute (one INSERT, UPDATE or DELETE in a transaction; returns rowCount), poll (the reader of a polling trigger). Values are bound as :name, never pasted into the SQL.
  • Settings: dialect (postgres, the default, sqlserver, mysql or oracle), 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) or service-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; onRowError fail, the default, or skip; rowIdColumn?), query (one GoogleSQL statement with :name or @name parameters, at most maxRows rows, default 1000), poll (the reader of a polling trigger, binding :cursor and :limit). write, send and post run insert; read runs poll. Values are bound as parameters, never pasted into the SQL.
  • Settings: project, dataset, jobProject? (default project), 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_basic or client_secret_post) or oauth2-private-key-jwt (an RFC 7523 client assertion: clientId, tokenUrl, privateKeyPEM, keyId?). Either can send oauth2Audience? and oauth2Resource?. See OAuth2.
  • Actions: get, post, put, delete, patch. A write with no endpoint sends to baseUrl, and with no body sends the step's input. A string input (HL7, XML, CSV) is sent as it is; an object is JSON, or form-encoded for application/x-www-form-urlencoded. The Content-Type comes from a step header, then the step's contentType, then the profile's defaultContentType, then text/plain for a string and application/json for anything else.
  • Settings: baseUrl, authType, credentials (username and password, token, apiKey with apiKeyHeader? default X-API-Key, or the oauth2 fields; secret), defaultContentType?, defaultHeaders?, timeout? (30000). The engine refuses URLs that resolve to private addresses. See SSRF_ALLOWLIST in Environment variables.

SOAP Web Service (soap)

  • Auth: none, basic or bearer, plus an optional WS-Security UsernameToken (wsSecurity: PasswordText or PasswordDigest). Mutual TLS through the connection options.
  • Actions: send (an operation body, a bodyTemplate or 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.1 or 1.2, default 1.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's clientId and clientSecret, with your My Domain host as loginUrl) or jwt-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 SOQL SELECT with :name values bound as literals; follows nextRecordsUrl up to maxRecords, default 2000, and maxPages, default 25), poll (the reader of a polling trigger, binding :cursor and :limit), read, create, update, upsert (on an external ID field), delete, limits. write, send and post run create.
  • 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, artemis or generic), 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) or service-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: encryption starttls (default), ssl or none (plain, with a warning), plus an optional username and password. The certificate is verified against the system store or tlsCaPem.
  • Actions: send: one email per message. to, cc, bcc, from, replyTo, subject, body, headers and attachments are templates over the message; a line break in a header field fails the step. attachInputDocument attaches a Document Writer's output.
  • Settings: host (passes the SSRF rules; a private relay needs SSRF_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's script in the sandbox; the return value or responseMap sets 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, PATCH or DELETE), authentication, authConfig (headerName, queryParam, expectedValue, secret, signatureHeader? default X-Webhook-Signature, algorithm? sha256 or sha1), 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? and ackTimeoutMs? (each defaults to timeout), expectAck? (default true), tlsEnabled?, tlsFingerprint256?, tlsCaPem?, tlsCaMode?, tlsClientCertPem?, tlsClientKeyPem?, tlsClientPfx?, tlsClientPassphrase?, tlsMinVersion?, tlsServername?, encoding? (utf-8, the default, iso-8859-1, windows-1252, ascii or msh-18), sendingApplication? and sendingFacility? (overwrite MSH-3 and MSH-4). See MLLP and ACKs. Raw TCP (Mirth's Basic TCP): framing? (mllp, frame or eos), startBytes?, endBytes?, responseCheck? (hl7-ack or none), keepConnectionOpen? (default true) and binary?; 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 a dicom trigger stored, or a base64 Part 10 file in data), 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: renders template (default ${message}) to pdf or rtf, returned as the step's output (output: attachment), written to directory (file), or both. No script runs and no remote image or font is loaded.
  • Settings: directory? (inside FILE_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 the ISA, 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 the x12-parse output 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.

SettingWhat 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:

ReasonWhat to do
server certificate is signed by an unknown CAAdd the partner's CA in tlsCaPem.
server certificate expired / not yet validAsk the partner to renew it, or check the engine's clock.
hostname mismatch: certificate is not valid for the hostUse the host name the certificate names in the URL.
server requires a client certificateSet tlsClientCertPem and tlsClientKeyPem, or tlsClientPfx.
server does not support TLS ≥ the minimumLower tlsMinVersion only if your policy allows it.
wrong PKCS#12 passphraseEnter the bundle's passphrase again.
proxy refused the credentials (407)Check proxyUsername and proxyPassword.
proxy unreachableCheck 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.

AdapterKeys a message may supply
mllpsend: message, rawMessage
generic-restpost, put, patch: body. get, delete: none
sftp, ftp, smb, webdav, file, gcsuploads: content. Reads, lists and deletes: none
s3, fhir-bulknone
sql-databasequery, execute: params. poll: none
soapsend: body
salesforcequery: params. read, delete: id. create: record. update: id, record. upsert: externalId, record
smtp, document-writer, javascript-writernone: their templates or script read the whole input
sinknone: it records the whole input
fhir-restread: resourceType, id. search: searchParams. Writes: none (the input is the resource)
EHR adapters and medplumreads: 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:

TokenBecomes
${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:

bash
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:

SettingUI labelWhat it does
maxConcurrentCallsMax concurrent calls1 to 100 calls in flight at once. Empty: MAX_CONCURRENT_ADAPTER_CALLS per engine process.
maxCallsPerSecondMax calls per second1 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.

Reference