cqframework / clinical-reasoning

CQF Clinical Reasoning on FHIR for Java
https://www.cqframework.org/clinical-reasoning/
Apache License 2.0
33 stars 24 forks source link

More strictly enforce CQFM Measure Profiles #412

Closed JPercival closed 5 months ago

JPercival commented 5 months ago

The Measure engine in this project implicitly depends on Measures largely conforming to this profile: https://build.fhir.org/ig/HL7/cqf-measures/StructureDefinition-measure-cqfm.html

That means that things like population.id are required. We hit a number of null pointer exceptions in various test cases because we assumed that the Measure resources conformed to that profile, but in fact Measures out in the wild often do not.

We should add checks for the ids and surface more friendly error messages for Measures that are not conformant.