Skip to content
Guides

Manage connections on the Adapters page

Add a connection with New connection, read its health, calls and limits, set up an Epic or Oracle Health app registration, keep Production and Sandbox apart, and change or delete it safely.

On this page

A connection is a saved adapter profile: the address, options and write-only credentials a workflow uses to reach one system. The Adapters page lists every connection in the workspace with its live state, and the panel beside the list shows one connection's health, recent calls, setup and settings. This guide walks through the page, New connection and each tab of the panel. For the settings of each adapter type, see Adapter settings.

flowchart LR
    New["New connection: choose a type"] --> Connect["Connect and test: nothing stored"]
    Connect --> Save["Save connection"]
    Save --> Card["Card on Adapters"]
    Card --> Overview["Overview: health, limits, credentials"]
    Card --> Calls["Calls: 7 days, searchable, PHI masked"]
    Card --> Setup["EHR setup: Epic and Oracle Health"]
    Card --> Settings["Settings: fields, limits, delete"]

Before you start

  • A running engine. See the Quick start.
  • The operator role to add, test, change and delete connections. Rotating the engine's signing key needs admin. A viewer can open every tab and read it. See Viewers.
  • The address and credentials of the system you're connecting to. A private address must be in the engine's SSRF_ALLOWLIST. See Network safety.

The Adapters page

The Adapters page: the All, Needs attention, Healthy and Never tested chips, the FHIR store card, connections grouped under APIs, Messaging and Files & cloud, and the Demo Health FHIR store connection open on its Overview with Limits · live and Credentials

The header reads Adapters with New connection. The filter chips each show a count, and your choice stays in the address as ?filter=:

ChipShows
AllEvery connection.
Needs attentionAuth failing, Rate limited and Not answering.
HealthyConnections whose calls and last test went through.
Never testedConnections with no test yet.

Cards are grouped under EHR, APIs, Messaging, Files & cloud, Databases and Other, each heading with a count. A card shows the connection's initials, name and status dot, its type and target, a latency line for the last 24 hours, its state, its environments and how many workflows use it. A failing card has a red border, and its dot pulses. A Never tested dot is hollow.

With no ?selected= in the address, the page opens the first connection that needs attention (Auth failing, then Not answering, then Rate limited), or the first card. Clicking a Never tested Epic or Oracle Health card opens EHR setup; every other card opens Overview.

The FHIR store card shows the engine's FHIR store, whether it is reachable, its FHIR version and base URL, with Use as destination and Use as source (polling). See Google Cloud Healthcare FHIR.

With no connections yet, the page shows No connections yet, Connect the systems your workflows deliver to, a paste box that opens New connection, and six type chips: Epic FHIR, Generic REST, MLLP, SFTP, SQL database and Google Cloud Storage. A viewer sees "Ask an operator or admin to add a connection."

Connection states

StateWhen
HealthyThe last test passed, or a call worked after a failing test.
Auth failingThe 3 newest calls in a row were refused with 401, 403 or 407, or the last test failed on auth.
Not answeringThe 3 newest calls in a row were refused, timed out, failed the TLS handshake or were blocked by policy. The card names the cause: Not answering · Blocked by policy.
Rate limitedA call got 429 within the last hour, counted from the last change to the connection's limits.
Never testedNo test has run yet.

Live calls win over an older test: a passing test shows Healthy only until the next run of failing calls. A 5xx, a 429 or an ACK error is an answer, so it ends a failing run. The sidebar's Adapters badge, the dashboard's Needs you and the card all read the same state.

Add a connection

Choose New connection. A bar across the top shows the three parts: Choose a type, Connect and test and Save.

1. Choose a type

Paste a URL or connection string, and the page detects the type. It shows Detected with Continue with . The paste fills the type's URL or host field without any user name, password or query it carried, because a connection string can hold a password.

You pasteDetected
sftp://…SFTP
s3://…Amazon S3
gs://…Google Cloud Storage
postgres://…, postgresql://…, mysql://…, sqlserver://…SQL database
mllp://…, or a bare host:portMLLP
A URL with epic in itEpic FHIR
A URL with cerner or oraclehealth in itOracle Health (Cerner) FHIR
An http(s) URL with fhir in it, or ending in /metadataFHIR REST
Any other http(s) URLGeneric REST

Or pick a card from the catalog, grouped as EHR, FHIR servers, APIs, Messaging, Files & cloud, Databases and Writers. Filter types narrows it by name and description. The EHRs are Epic FHIR, Oracle Health (Cerner) FHIR, athenahealth FHIR, Allscripts FHIR, MEDITECH FHIR, NextGen FHIR, Veradigm, Netsmart, eClinicalWorks FHIR and Practice Fusion FHIR. Oracle Health has one entry; an existing Cerner FHIR connection keeps working.

2. Connect and test

The form starts short. Every type asks for Name ("Shown in workflows") and an address: Base URL, Host and port, Connection string or Location. Then:

  • An EHR asks for Client ID. You can leave it empty and add it later in EHR setup.
  • MLLP shows Tunnel: the tunnel its host sits behind, found from the address.
  • The other types ask for Username or client ID and Password, token or secret. The secret is write-only and never shown again after saving.

Every other setting of the type is under More settings. It opens by itself when a required setting there is empty. A Generic REST connection shows Auth type after the Base URL, starting at none, so its OAuth2 settings stay hidden until you pick an OAuth2 method, and request signing starts off for a plain http:// URL (on for https://) until you set it yourself. Above the form, Production | Sandbox picks which environment you're filling in: the workspace's environment by default (Sandbox in a sandbox workspace, as for a connection created through POST /api/adapter-profiles with no environment); for Epic and Oracle Health it takes the place of the vendor endpoint setting. See Production and Sandbox.

Test connection checks the draft without saving it. The checklist runs five steps:

StepWhat it checks
Resolve hostThe host resolves and passes the engine's network rules. A private or denied address stops here.
TLS handshakeThe TLS connection. A plain TCP or http: target skips it.
AuthenticateThe credentials.
Check permissionsWhat the credentials may do.
Sample callOne call the adapter makes to prove it works.

The result is passed, passed with a note or failed, with the console lines that explain it. An Epic or Oracle Health draft with no client ID reads only the public CapabilityStatement and says "Auth is tested in EHR setup once you have a client ID." Nothing of the draft is stored, and the test is audited without the host or any value. Its result is kept for 15 minutes so that saving the same settings records it on the new connection.

3. Save

Save connection saves it and opens it on the Adapters page. For Epic and Oracle Health the button is Save and open EHR setup. A connection you tested before saving starts with that result; one saved untested is Never tested until its first test. When signing is on, the signing secret is shown once with Copy.

  • A setting the engine accepts with a warning, such as a SOAP endpoint over http://, saves, and Connection saved, with a warning says what to check.
  • A Generic REST connection that signs its deliveries shows its new Signing secret once. Copy it, then choose I have copied it.

The connection panel

The panel's header shows the name, its state and {type} · {target}. Its tabs are Overview, Calls, EHR setup (Epic and Oracle Health only, with a badge counting the steps left) and Settings. A connection with two environments also shows Production | Sandbox; see Production and Sandbox.

Overview

  • The auth diagram. MedHook, the auth method and the system's host, joined by lines. When auth fails, the first line turns red with 401 · secret rejected. When the system isn't answering, the second line turns red.
  • Health. p95 latency, Error rate · 24 h, Last success and Calls · 24 h, from the call log.
  • An Agent card when something is wrong. It says what happened from the connection's own calls and offers the fix:
StateActions
Auth failingReplace client secret opens a write-only input with Save and test. Open the paused queue when a destination queue waits on this connection.
Rate limitedSet concurrency to , a quarter under the current limit, asks first. Draft quota request writes a request to the system's team into the console; nothing is sent.
Not answeringOpen queue and Open tunnel, when the connection feeds a queue or its host sits behind a tunnel.
Never tested (EHR)Open setup.
  • Limits · live. Concurrent calls and Calls per second in use, as {used} of {max} or {used} · no limit. They refresh every 15 seconds and show a warning at 100%.
  • Credentials. One row per credential, never its value: when it was set or rotated, when it expires, or not set. A secret shows Replace, or Rotate when it expires or rotates on a schedule; a Client ID or username shows Edit. An expiry within 14 days shows a warning, and within 2 days an error. On Epic and Oracle Health, Private key (JWKS) shows the engine key's kid and when it rotates.
  • Used by. Links to each workflow that uses the connection, or No workflows use this connection yet.
  • Connection test. Test connection runs a test of the saved connection and prints what was sent and what came back, for example > GET {target}, < ok · {ms} ms and "auth, reachability and permissions look good".

After a Replace of a secret, the next passing test resumes the destination queues the connection feeds that were paused or waiting to retry, and the console says how many waiting messages are going out.

Calls

Calls · Production (or Sandbox) lists the connection's calls, newest first: the time, the request, the status and how long it took. The heading says how far back the log goes, Showing calls from the last 7 days by default, and PHI masked in bodies sits beside it. Choose a row to see its request and response and the call's request id.

  • 50 calls show at a time. Load older calls reads the next 50, back to the oldest call kept. Once the list reaches past today, calls sit under their day (Today, Yesterday, Tue 10 Nov).

  • Narrow the list with the status chips (Failed for every call that failed, or 2xx, 3xx, 4xx, 5xx), Workflow steps or Polls, and a time range (Last hour, Last 24 hours, Last 3 days). The engine filters the whole log, not just the calls on screen.

  • Find by request id finds the calls that carried an X-Request-Id, or that a run made: a run's id is its inbound request id, else its execution id.

  • A link to one call (a workflow's Recent polls → Request) opens it even when it is older than the first 50; when the log no longer has it, the tab says "The linked call is no longer in the log."

  • The engine keeps each connection's calls for 7 days (CALL_LOG_RETENTION_HOURS, default 168), and at most the newest 50,000 per connection and environment (CALL_LOG_MAX_ROWS), so a busy connection keeps fewer days. The retention sweep removes older calls every 15 minutes; writing a call never waits on it.

  • Paths and bodies are masked when the call is logged. Nothing unmasked is stored, so there is nothing to reveal, and every role sees the same thing.

  • A JSON body keeps its structure and the first character of each value ("family": "T•••"). Codes, systems, statuses and resource types stay readable. An HL7v2 body keeps MSH and the first character of every other component. Other formats aren't kept.

  • Credentials show as Authorization: Bearer •••• or Authorization: Basic ••••.

  • Bodies are kept 7 days. After that the row reads "No body kept for this call: bodies are masked when logged and kept 7 days."

  • A read keeps its headers only: "Reads keep headers only: response bodies are logged for writes."

EHR setup

Epic and Oracle Health need MedHook registered as a backend app before they accept calls. The tab walks through six steps, each marked ✓ when it's done:

StepWhat you do
1. Register MedHook as a backend app in Epic (or Oracle Health)In Epic on FHIR, Build Apps, choose Backend Systems and FHIR R4. For Oracle Health, create a system account for a confidential client in the code console.
2. Give them our public keyCopy the JWKS URL and kid into the app registration. MedHook signs token requests with the matching private key, which never leaves the engine.
3. Choose scopesPick only what your workflows use, from seven chips: system/Patient.read, system/Patient.write, system/Encounter.read, system/Encounter.write, system/Observation.read, system/Observation.write and system/DocumentReference.write. They save at once.
4. Paste the client ID they gave youThen Save client ID. Production and sandbox use different IDs.
5. Check what the server supportsRun check reads the CapabilityStatement and compares it with the steps that deliver to this connection.
6. Test with a sandbox patientRun test signs a token, then reads a public sandbox patient. It reads Needs a client ID until step 4 is done.

The engine's key is one RS384 key shared by every replica. It rotates 90 days after it was made, and a replaced key stays in the JWKS for 30 more days, so an EHR that reads the JWKS URL keeps working. An admin can rotate it at once from Private key (JWKS) › Rotate. A connection that has its own private key keeps signing with it.

When the server doesn't take transaction Bundles, step 5 says "transaction Bundle · not supported. MedHook will send resources one at a time, in order." The connection then sends each entry of a Bundle on its own, in order, and the first failure stops the rest.

The sandbox test runs only against the vendor's public sandbox. A connection pointed anywhere else is refused before anything is sent, with " isn't the sandbox", so the test never reads live PHI. It shows only the token result and the HTTP status of the read, never the patient record.

Settings

The tab starts with the environment note, then eight rows: Name, Base URL (Host and port for messaging, Connection for databases), Auth, Timeout, Max concurrent calls, Max calls per second, Retries and Environment.

RowValue and Edit
TimeoutThe saved value, or 10 s for messaging and 30 s for the rest.
Max concurrent calls1 to 100 across all engines, or engine default. Edit opens the input in place.
Max calls per second1 to 1000 across all engines, or no limit. Edit opens the input in place.
Retriesbuilder default: 3 · exponential, max 1 min per wait: what a new workflow step does when a call fails.

Edit on the address or Timeout opens More settings at that field. More settings holds every setting of the type, with Replace on each secret. Save saves them.

Changing the address, Timeout or calls per second of a connection that workflows use asks first: Change the for ? with Save changes. Their next call uses the new value.

Delete connection names what uses it: "2 workflows use this; move them first", or "nothing uses this connection". The confirm names the workflows, which fail until they point at another connection. The encrypted credentials are removed.

Production and Sandbox

A connection can hold two environments, Production and Sandbox, each with its own URL and write-only secrets. The Settings note reads "One environment. Add a sandbox to test without touching production." with Add a sandbox, which opens New connection to add the other environment to the same connection.

With both, the panel header shows Production | Sandbox. Switching changes the view, not the connection: Overview, Calls and the console show that environment only, and a failing sandbox never marks production as failing.

A workflow picks its environment on its Versions tab, under Deploy environment. From its next run, each connection it uses calls that environment's URL and credentials. A run never falls back to the other environment: a connection without it fails the step with " has no Sandbox environment."

Confirms

ActionAsksButton
Replace a secret, Save and testReplace the for ?Replace and test
Rotate a dated secretRotate the for ?Rotate and test
Edit a Client ID or usernameChange the for ?Save
Set concurrency to Set concurrency to ?Set to
Save a live address, timeout or rateChange the for ?Save changes
Delete connectionDelete ?Delete connection
Rotate the engine key (admins)Rotate kid ?Rotate key

Viewers

Viewers can look but not edit. A viewer can open every connection and tab, switch Production | Sandbox, read the calls, copy the JWKS URL, open More settings and use Draft quota request, which only writes into the console. Every control that changes a connection is greyed out with the reason as its title, such as "Viewers can't change connections" or "Viewers can't add connections".

Audit

Every change is audited, with names and dates but never a secret or a host:

EventWhen
adapter_profile.created, updated, deletedA connection is saved, changed or deleted.
adapter_profile.secret_rotatedA secret is replaced or rotated.
adapter_profile.testedA test of the connection's first environment, or a sandbox patient test.
adapter_profile.environment_testedA test of its other environment.
adapter_profile.draft_testedTest connection on New connection.
adapter_profile.setup_checkedA test of an EHR with no client ID yet.
adapter_profile.ehr_setup_updatedScopes or the client ID change (the ID itself is never recorded).
adapter_profile.capabilities_checkedRun check in EHR setup.
adapter_profile.environment_addedAdd a sandbox or Add production.
engine.signing_key_rotatedAn admin rotates the engine key.

See Audit log.

AddressOpens
/adapters?filter=issuesThe Needs attention chip. Also all, ok and untested.
/adapters?selected={id}&tab=callsThat connection on a tab: overview, calls, setup or settings.
/adapters?selected={id}&env=sandboxThat connection's Sandbox.
/adapters?selected=first-failing&tab=overviewThe first Auth failing, then Not answering, connection.
/adapters/new?type=epic-fhir&name=Epic%20FHIRNew connection on step 2 for that type, with that name.
/adapters/new?focus=pasteNew connection with the paste box focused.

Troubleshooting

ProblemFix
Resolve host fails as blockedThe address is private or denied. Add the host to SSRF_ALLOWLIST, or check SSRF_DENYLIST.
Auth failing after a passing testLive calls are being refused. Replace the secret and test again; a passing test resumes the paused queues.
Rate limitedLower Max concurrent calls, or ask the system's team for a higher quota. Changing a limit clears the older 429s.
Run test reads Needs a client IDPaste the client ID in step 4 of EHR setup and choose Save client ID.
The sandbox test is refusedThe FHIR base URL isn't the vendor's sandbox. Point the Sandbox environment at the vendor's sandbox, then test again.
A step fails with "has no Sandbox environment"The workflow runs in Sandbox and the connection has none. Add a sandbox, or set the workflow's environment to Production.

Reference