Implement FHIR Bulk Data $import to ingest NDJSON resources into a FHIR server asynchronously

domain: hl7.org/fhir · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Construct a $import operation request body as a JSON manifest containing an inputFormat of application/fhir+ndjson, an inputSource URL, and a storageDetail object describing where the source files are located
  2. Include an input array in the manifest where each entry specifies the FHIR resource type and a URL pointing to the NDJSON file for that type
  3. POST the manifest to [fhir-base]/$import with Content-Type: application/json and Prefer: respond-async
  4. Receive the 202 Accepted response and extract the Content-Location header to obtain the polling endpoint for this import job
  5. Poll the Content-Location URL until a 200 response is received, then inspect the response body for per-resource import counts and any error entries describing resources that failed to import

Known gotchas

Related routes

Initiate a FHIR Bulk Data $import operation to asynchronously ingest NDJSON resources into a FHIR server
build.fhir.org · 6 steps · unrated
Initiate and monitor a FHIR Bulk Data $import operation to asynchronously ingest NDJSON resources
build.fhir.org · 6 steps · unrated
Implement FHIR Bulk Data $import to ingest large volumes of FHIR NDJSON resources into a FHIR server
hl7.org · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans