Use the FHIR $everything operation to retrieve a complete longitudinal record for a patient

domain: hl7.org · 6 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. Invoke GET [base]/Patient/[id]/$everything; optionally include _since, start, end, or _type parameters to constrain the result set
  2. The server returns a searchset Bundle; for large datasets the response will be paginated with a next link in Bundle.link
  3. Follow all next links sequentially until no next link is present, accumulating all Bundle entries
  4. Parse the accumulated entries; they may include Patient, Encounter, Condition, Observation, MedicationRequest, AllergyIntolerance, Procedure, DocumentReference, and other resource types
  5. Index resources by resourceType and id for efficient cross-referencing when building a longitudinal view
  6. Validate that the returned Patient resource matches the requested patient id to detect server misconfiguration or cross-patient data leakage

Known gotchas

Related routes

Invoke the FHIR $everything operation to retrieve a complete longitudinal patient record
hl7.org/fhir · 5 steps · unrated
Retrieve a complete patient clinical summary using the $everything operation
hl7.org/fhir/R4 · 5 steps · unrated
Implement FHIR Bulk Data system-level $export to extract all patient data from a FHIR server with _since for incremental sync
hl7.org · 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