Use the DEQM $collect-data operation to gather the FHIR data needed to evaluate a quality measure without performing the evaluation itself
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
POST /Measure/{id}/$collect-data with periodStart, periodEnd, and subject parameters to retrieve the relevant clinical data
Receive a Parameters resource containing a measureReport parameter (data-collection MeasureReport) and one or more resource parameters holding the collected FHIR resources
Inspect the data-collection MeasureReport to confirm evaluatedResource references match the collected resource list
Store or forward the collected resources and the data-collection MeasureReport to an aggregator or payer endpoint using $submit-data
Use $data-requirements first if unsure which resource types and profiles the measure depends on, to avoid collecting unnecessary data
Known gotchas
$collect-data returns raw FHIR resources, not a scored result; do not interpret the data-collection MeasureReport's population counts as a final measure score
Large patient cohorts will produce very large Parameters bundles; consider requesting $collect-data per-patient and batching submissions rather than running against an entire Group
The collected resources may include data from outside the measurement period if they are referenced by in-period resources; validate dates before forwarding to avoid reporting period confusion
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?