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).
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) orservice-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-identitya profile CA (tlsCaPem) is refused: the requests carry the engine's own Google token, so they are verified against the system CAs only. Useservice-account-keyif 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.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
project | string | Yes | No | Google Cloud project ID that holds the dataset. | |
location | string | Yes | No | Dataset location, e.g. us-central1. | |
dataset | string | Yes | No | Healthcare dataset ID. | |
fhirStore | string | Yes | No | FHIR store ID (an R4 store). | |
authType | enum: workload-identity, service-account-key | No | workload-identity | No | workload-identity: the engine's own Google service account (GKE), no stored key. service-account-key: a stored JSON key, for an engine outside GKE. |
credentials | object | No | |||
credentials.serviceAccountKey | string | No | Yes | Service account JSON key (encrypted at rest). Used when authType is service-account-key. | |
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
A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.
| 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 |
create | Create a new FHIR resource (conditional create with ifNoneExist). | resource, ifNoneExist? | None |
update | Update an existing FHIR resource, or upsert one by search (conditional update). | resource, conditionalUpdate? | None |
transaction | POST a transaction or batch Bundle to the store's base URL. | resource | 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": "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,datasetandfhirStore, 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.