Skip to content
Reference

Adapter: Practice Fusion FHIR R4

Read and search Practice Fusion FHIR R4 (Patient, Encounter and other US Core resources) with SMART Backend Services.

On this page

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-services only: SMART Backend Services with an asymmetric key. The engine signs an RS384 client assertion with credentials.privateKeyPEM; the app's public key is registered as a JWKS URL. Practice Fusion has no client secret option for system apps.
  • baseUrl is the practice's entry in the ServiceBaseURLs.json file linked from Practice Fusion's FHIR Get Started page. credentials.tokenUrl is the token_endpoint in {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.

SettingTypeRequiredDefaultSecretDescription
baseUrlurlYesNoThe practice's FHIR R4 base URL, from Practice Fusion's ServiceBaseURLs.json.
authTypeenum: backend-servicesNobackend-servicesNobackend-services: SMART Backend Services, an RS384 client assertion signed with your private key (the vendor holds your public key or JWKS URL).
credentialsobjectYes
credentials.clientIdstringYesNoClient ID of your Practice Fusion system app. Used when authType is backend-services.
credentials.tokenUrlurlYesNoToken endpoint: token_endpoint in {baseUrl}/.well-known/smart-configuration. Used when authType is backend-services.
credentials.privateKeyPEMstringNoYesPEM private key that signs the client assertion (backend-services). Used when authType is backend-services.
credentials.keyIdstringNoNokid of the registered public key (backend-services). Used when authType is backend-services.
credentials.clientSecretstringNoYesClient secret (oauth2).
credentials.scopesstringNoNoSpace-separated scopes, a subset of the app's registered scopes (default: system/Patient.read system/Encounter.read). Used when authType is backend-services.
timeoutnumberNoNoRequest timeout in milliseconds.
tlsCaPemstringNoYesPEM CA certificate(s) to verify the server against. See tlsCaMode.
tlsCaModeenum: replace, addNoNoTrust: replace = only this CA (default), add = the system CAs plus this CA. Needs tlsCaPem.
tlsClientCertPemstringNoYesPEM client certificate, for servers that require mutual TLS. Set with tlsClientKeyPem.
tlsClientKeyPemstringNoYesPEM private key for the client certificate (encrypted at rest).
tlsClientPfxstringNoYesClient certificate and key as a base64 PKCS#12 (.p12 / .pfx) bundle, instead of the PEM pair.
tlsClientPassphrasestringNoYesPassphrase of the PKCS#12 bundle.
tlsMinVersionenum: TLSv1.2, TLSv1.3NoNoLowest TLS version to accept (default TLSv1.2).
proxyUrlurlNoNoHTTP(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).
proxyUsernamestringNoNoProxy user (Basic auth).
proxyPasswordstringNoYesProxy password.
noProxyarray of stringNoNoHosts 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.

ActionWhat it doesStep parametersKeys a message may supply
readRead a FHIR resource by ID.resourceType, idresourceType, id
searchSearch FHIR resources.resourceType, searchParams?, maxPages?searchParams
get-patientRead one Patient by FHIR id.idid
search-patientsSearch Patient resources (searchParams, e.g. family, birthdate or identifier).searchParams?, maxPages?searchParams
search-encountersSearch 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.

json
{
  "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-encounters or the generic search for 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.

Reference