Skip to main content

ODK → FHIR via OpenFn

This recipe wires ODK Central submissions into the FHIR store using an OpenFn workflow and the ICR FHIR adaptor.

ODK Central ──OData──▶ OpenFn (fhir-icr adaptor) ──FHIR transaction──▶ FHIR store

The workflow has two steps:

  1. Fetch — the odk adaptor pulls new submissions from ODK Central via OData, incrementally (a cursor on __system/submissionDate so each run only fetches what's new).
  2. Transform + load — the @openfn/language-fhir-icr adaptor turns each submission into ICR-profiled FHIR and upserts it into the store in one idempotent transaction.

The transform, credential, form-by-form mapping, worked workflow.json, and Lightning deployment are documented in the dedicated adaptor section: