Adapter: Practice Fusion FHIR R4
Read and search Practice Fusion FHIR R4 (Patient, Encounter and other US Core resources) with SMART Backend Services.
Purpose
Read and search a Practice Fusion practice's FHIR R4 API: patients, encounters and the other US Core resources it exposes. Practice Fusion is a Veradigm company but keeps its own certified FHIR API and developer registration (the PDS API portal), separate from the Veradigm developer program that the Veradigm adapter uses. A practice turns the API on with Practice Fusion's FHIR API add-on.
Auth
backend-servicesonly: SMART Backend Services with an asymmetric key. The engine signs an RS384 client assertion withcredentials.privateKeyPEM; the app's public key is registered as a JWKS URL. Practice Fusion has no client secret option for system apps.baseUrlis the practice's entry in the ServiceBaseURLs.json file linked from Practice Fusion's FHIR Get Started page.credentials.tokenUrlis thetoken_endpointin{baseUrl}/.well-known/smart-configuration(the specification shows{BaseURL}/token). The adapter assumes neither.- Scopes default to
system/Patient.read system/Encounter.read. Practice Fusion takes SMART v1 (system/Patient.read) and v2 (system/Patient.rs) scopes. - The token is cached until shortly before it expires and fetched again once after a 401.
- 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 (default backend-services). 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 |
|---|---|---|---|---|---|
baseUrl | url | Yes | No | The practice's FHIR R4 base URL, from Practice Fusion's ServiceBaseURLs.json. | |
authType | enum: backend-services | No | backend-services | No | backend-services: SMART Backend Services, an RS384 client assertion signed with your private key (the vendor holds your public key or JWKS URL). |
credentials | object | Yes | |||
credentials.clientId | string | Yes | No | Client ID of your Practice Fusion system app. Used when authType is backend-services. | |
credentials.tokenUrl | url | Yes | No | Token endpoint: token_endpoint in {baseUrl}/.well-known/smart-configuration. Used when authType is backend-services. | |
credentials.privateKeyPEM | string | No | Yes | PEM private key that signs the client assertion (backend-services). Used when authType is backend-services. | |
credentials.keyId | string | No | No | kid of the registered public key (backend-services). Used when authType is backend-services. | |
credentials.clientSecret | string | No | Yes | Client secret (oauth2). | |
credentials.scopes | string | No | No | Space-separated scopes, a subset of the app's registered scopes (default: system/Patient.read system/Encounter.read). Used when authType is backend-services. | |
timeout | number | No | No | Request timeout in milliseconds. | |
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 |
|---|---|---|---|
read | Read a FHIR resource by ID. | resourceType, id | resourceType, id |
search | Search FHIR resources. | resourceType, searchParams?, maxPages? | searchParams |
get-patient | Read one Patient by FHIR id. | id | id |
search-patients | Search Patient resources (searchParams, e.g. family, birthdate or identifier). | searchParams?, maxPages? | searchParams |
search-encounters | Search Encounter resources (searchParams, e.g. patient or date). | searchParams?, maxPages? | searchParams |
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": "Practice Fusion FHIR R4 (example)",
"adapterType": "practice-fusion-fhir",
"config": {
"baseUrl": "https://practice-fusion-fhir.example.test/base",
"credentials": {
"clientId": "example-clientId",
"tokenUrl": "https://practice-fusion-fhir.example.test/token"
}
}
}Limits
- Read-only: the API is read and search only, and send steps are refused with a read-only error.
- No appointments: the CapabilityStatement in Practice Fusion's API specification lists no Appointment, Schedule or Slot. Use
search-patients,search-encountersor the genericsearchfor another US Core resource. - Search returns one page unless the step sets
maxPages(up to 50). Practice Fusion's next links point at the base URL with_getpages; a next link on another origin is not followed, and a search that hits the cap fails rather than return a partial set. - Rate limits are enforced but not published. A 429 or 5xx is retried by the step's retry settings, after any
Retry-After; a 401 that a new token does not fix, a 403 or another 4xx is not. - The engine refuses a base or token URL that resolves to a private address unless the host is in
SSRF_ALLOWLIST(see Environment variables). - Testing: the adapter is tested against a local fake FHIR server built from the published specification. During onboarding we validate it against your practice's endpoint with you.
- Sources: Practice Fusion's FHIR Get Started and FHIR API Specifications pages.