Adapter: FHIR Bulk Data Export
Export large volumes of FHIR data via the Bulk Data Access specification.
Purpose
Run FHIR Bulk Data exports (system, patient and group level) and download the NDJSON files they produce.
Auth
none,basic,bearerorbackend-services(SMART Backend Services).- It takes the shared connection options: a client certificate for mutual TLS, a private CA, a minimum TLS version and a proxy. They apply to its token requests too.
Settings
Auth is chosen with authType: backend-services, bearer, basic, none (default none). Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
fhirBaseUrl | url | Yes | No | FHIR server base URL. | |
authType | enum: backend-services, bearer, basic, none | No | none | No | Authentication method. |
credentials | object | No | |||
credentials.privateKeyPEM | string | No | Yes | RSA private key in PEM format. Used when authType is backend-services. | |
credentials.keyId | string | No | No | Key ID for JWT header. Used when authType is backend-services. | |
credentials.clientId | string | No | No | Client ID (iss/sub in JWT). Used when authType is backend-services. | |
credentials.tokenUrl | url | No | No | Token endpoint URL. Used when authType is backend-services. | |
credentials.scopes | string | No | No | OAuth scopes (default: system/*.read). Used when authType is backend-services. | |
credentials.token | string | No | Yes | Static bearer token. Used when authType is bearer. | |
credentials.username | string | No | No | Used when authType is basic. | |
credentials.password | string | No | Yes | Used when authType is basic. | |
pollIntervalMs | number | No | 5000 | No | Status poll interval in ms. |
maxPollAttempts | number | No | 720 | No | Max poll attempts before timeout. |
maxConcurrentDownloads | number | No | 3 | No | Max parallel NDJSON file downloads. |
maxRecordsPerFile | number | No | No | Max records to parse per file (memory safety). | |
headers | map | No | Yes | Additional HTTP headers. | |
timeout | number | No | 30000 | No | HTTP request timeout in ms. |
tlsCaPem | string | No | Yes | PEM CA certificate(s) to verify the server against. See tlsCaMode. | |
tlsCaMode | enum: replace, add | No | No | Trust: replace = only this CA (default), add = the system CAs plus this CA. Needs tlsCaPem. | |
tlsClientCertPem | string | No | Yes | PEM client certificate, for servers that require mutual TLS. Set with tlsClientKeyPem. | |
tlsClientKeyPem | string | No | Yes | PEM private key for the client certificate (encrypted at rest). | |
tlsClientPfx | string | No | Yes | Client certificate and key as a base64 PKCS#12 (.p12 / .pfx) bundle, instead of the PEM pair. | |
tlsClientPassphrase | string | No | Yes | Passphrase of the PKCS#12 bundle. | |
tlsMinVersion | enum: TLSv1.2, TLSv1.3 | No | No | Lowest TLS version to accept (default TLSv1.2). | |
proxyUrl | url | No | No | HTTP(S) proxy, e.g. http://proxy.example.test:3128 (opens in a new tab). The proxy host must pass the SSRF rules (SSRF_ALLOWLIST for a private one). | |
proxyUsername | string | No | No | Proxy user (Basic auth). | |
proxyPassword | string | No | Yes | Proxy password. | |
noProxy | array of string | No | No | Hosts sent direct, not through the proxy: a name (and its subdomains), .suffix, host:port or *. |
Actions
This adapter only reads or receives: a send step through it is refused. A trailing ? marks an optional step parameter.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
system-export | System-level $export (all data on server). | _type?, _since?, _outputFormat?, _typeFilter? | None |
patient-export | Patient-level $export (all patients). | _type?, _since?, _typeFilter? | None |
group-export | Group-level $export (patients in a specific Group). | groupId, _type?, _since?, _typeFilter? | None |
check-status | Check status of a previously kicked-off export. | statusUrl | None |
Minimal example
The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.
{
"name": "FHIR Bulk Data Export (example)",
"adapterType": "fhir-bulk",
"config": {
"fhirBaseUrl": "https://fhir-bulk.example.test/fhirbase"
}
}Limits
- Export only: the adapter has no send action, and a send step through it is refused.
- An export is polled every
pollIntervalMsfor at mostmaxPollAttemptspolls, and files are downloadedmaxConcurrentDownloadsat a time. - The engine refuses a URL that resolves to a private address unless the host is in
SSRF_ALLOWLIST(see Environment variables).