RCMbox Docs

cerner/sync-to-aidbox

Syncs clinical data from Oracle Cerner into Aidbox via bulk FHIR export. Pulls patient, encounter, procedure, practitioner, and coverage data from Cerner's FHIR R4 API, normalizes it, stages it in Azure Blob Storage, and triggers an Aidbox $import.

Script path: @aidbox-billing/cerner/sync-to-aidbox

Input

ParameterTypeDescription
tenantOrganizationIdstringAidbox Organization ID scoping the sync
sincestring (optional)ISO date string — only sync resources updated since this date

Output

FieldTypeDescription
importedCountnumberTotal number of FHIR resources imported
resourceCountsobjectPer-resource-type counts
errorsobject[]Any errors encountered during sync

Prerequisites

Configure the Cerner credentials via environment variables:

VariableDescription
CERNER_TENANT_IDCerner tenant GUID
CERNER_CLIENT_IDCerner API client ID
CERNER_CLIENT_SECRETCerner API client secret
AZURE_STORAGE_ACCOUNTAzure Storage account name
AZURE_CONTAINERAzure Blob container name
AZURE_SAS_TOKENAzure Shared Access Signature token

Usage in workflow YAML

- id: sync-cerner
  script: "@aidbox-billing/cerner/sync-to-aidbox"
  timeout: "30m"
  params:
    tenantOrganizationId: $input.tenantOrganizationId
    since: $input.since

See also

Last updated: