Skip to content
Reference

Adapter: Google Cloud Healthcare FHIR

Read, search and write FHIR R4 resources in a Google Cloud Healthcare API FHIR store (Workload Identity, no stored key).

On this page

Purpose

Read, search, create and update resources, and run transaction Bundles, in a Google Cloud Healthcare API FHIR R4 store.

Auth

  • workload-identity (default: the engine's own Google service account on GKE) or service-account-key (a stored JSON key, for an engine outside GKE). The token is cached 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. With workload-identity a profile CA (tlsCaPem) is refused: the requests carry the engine's own Google token, so they are verified against the system CAs only. Use service-account-key if you need a private CA.

Settings

Auth is chosen with authType: workload-identity, service-account-key (default workload-identity). 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
projectstringYesNoGoogle Cloud project ID that holds the dataset.
locationstringYesNoDataset location, e.g. us-central1.
datasetstringYesNoHealthcare dataset ID.
fhirStorestringYesNoFHIR store ID (an R4 store).
authTypeenum: workload-identity, service-account-keyNoworkload-identityNoworkload-identity: the engine's own Google service account (GKE), no stored key. service-account-key: a stored JSON key, for an engine outside GKE.
credentialsobjectNo
credentials.serviceAccountKeystringNoYesService account JSON key (encrypted at rest). Used when authType is service-account-key.
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

A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.

ActionWhat it doesStep parametersKeys a message may supply
readRead a FHIR resource by ID.resourceType, idresourceType, id
searchSearch FHIR resources.resourceType, searchParams?, maxPages?searchParams
createCreate a new FHIR resource (conditional create with ifNoneExist).resource, ifNoneExist?None
updateUpdate an existing FHIR resource, or upsert one by search (conditional update).resource, conditionalUpdate?None
transactionPOST a transaction or batch Bundle to the store's base URL.resourceNone

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": "Google Cloud Healthcare FHIR (example)",
  "adapterType": "gcp-healthcare-fhir",
  "config": {
    "project": "example-project",
    "location": "example-location",
    "dataset": "example-dataset",
    "fhirStore": "example-fhirStore"
  }
}

Limits

  • The base URL is built from project, location, dataset and fhirStore, and every request stays inside that store.
  • A 401, 403 or other 4xx is not retried; a 408, 429 or 5xx is. See Google Cloud Healthcare FHIR.

Reference