{"id":"ebc854ee-8a3b-4788-8d11-f37aaa2cc78b","task":"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","steps":["GET or POST /Measure/{id}/$data-requirements (with optional periodStart and periodEnd parameters) to retrieve a Library resource describing dependencies","Inspect the returned Library.dataRequirement elements; each entry specifies a FHIR resourceType, optional profile URL, and codeFilter or dateFilter constraints","For each dataRequirement with a codeFilter.valueSet, resolve the ValueSet canonical URL to understand which coded values must be present in patient data","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","Cross-reference the Library.relatedArtifact list to identify dependent CQL Libraries, value sets, and other Measures that must also be available on the server"],"gotchas":["The returned Library resource from $data-requirements is a computed artifact, not a stored resource; its ID may be transient and should not be used to retrieve it later","Value set references in dataRequirement.codeFilter may be canonical URLs not yet expanded on the server; call $expand on each referenced ValueSet before building FHIR queries to confirm active codes","Date filters in dataRequirement may use FHIR path expressions referencing the measurement period parameter; interpret them relative to the periodStart and periodEnd you intend to use, not literally"],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:40.623Z"},"url":"https://mcp.waymark.network/r/ebc854ee-8a3b-4788-8d11-f37aaa2cc78b"}