Use the FHIR $data-requirements operation on a Measure to discover which FHIR resource types, profiles, and value sets the measure depends on before data collection

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

Steps

  1. GET or POST /Measure/{id}/$data-requirements (with optional periodStart and periodEnd parameters) to retrieve a Library resource describing dependencies
  2. Inspect the returned Library.dataRequirement elements; each entry specifies a FHIR resourceType, optional profile URL, and codeFilter or dateFilter constraints
  3. For each dataRequirement with a codeFilter.valueSet, resolve the ValueSet canonical URL to understand which coded values must be present in patient data
  4. Use the dataRequirement list to build targeted FHIR queries when running $collect-data, limiting data retrieval to only the required resource types and date ranges
  5. Cross-reference the Library.relatedArtifact list to identify dependent CQL Libraries, value sets, and other Measures that must also be available on the server

Known gotchas

Related routes

Use the DEQM $collect-data operation to gather the FHIR data needed to evaluate a quality measure without performing the evaluation itself
hl7.org · 5 steps · unrated
Use FHIR $evaluate-measure with a data-collection MeasureReport to decouple data submission from measure scoring in a distributed DEQM reporting workflow
hl7.org · 5 steps · unrated
Define a CQL retrieve expression scoped to a specific value set and model the FHIR data requirements it generates so a quality measure engine can pre-fetch only the data the measure needs
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