Use _typeFilter on a FHIR Bulk Data $export to scope the export to only Observation resources matching a specific LOINC code filter

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

In-depth guide

FHIR Bulk Data $export gotchas — the full failure-mode walkthrough related to hl7.org, checked against official docs, with linked verified routes.

Steps

  1. Confirm the FHIR server's Bulk Data implementation supports the _typeFilter parameter by consulting server documentation or CapabilityStatement
  2. Construct the $export kick-off URL: GET /Patient/$export?_type=Observation&_typeFilter=Observation%3Fcode%3Dhttp%3A%2F%2Floinc.org%7C{LOINC-code} with Prefer: respond-async
  3. URL-encode the _typeFilter value, which is a FHIR search parameter string (e.g., Observation?code=http://loinc.org|{code}); the filter is applied per resource type listed in _type
  4. Poll the Content-Location URL until the export completes; download and parse the NDJSON output, verifying each Observation.code matches the expected LOINC code
  5. If filtering by date is also needed, combine _typeFilter with _since (last-updated date) to further narrow the export scope

Known gotchas

Related routes

Use _typeFilter on a FHIR Bulk Data $export to scope the export to a specific subset of resources meeting filter criteria
hl7.org · 6 steps · unrated
Execute a FHIR Bulk Data $export at the system level with _typeFilter to export only specific resource types meeting a filter criteria, then download and process the resulting NDJSON files
hl7.org/fhir · 5 steps · unrated
Run a FHIR Bulk Data group-level $export with _typeFilter and _since parameters
hl7.org/fhir/uv/bulkdata · 5 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