Stream: cql
Topic: How is MeasureReport.evaluatedResources populated by HAPI?
Sean McIlvenna (Jun 04 2021 at 19:13):
Can anyone explain how evaluatedResources are populated based on the CQL logic? I'm seeing some weird stuff and am trying to figure things out. For example, two different patient resources in the same report, but their encounters are in different years, and the CQL logic focuses on encounters within a specific period...
JP (Jun 04 2021 at 20:48):
The embedded CQL engine basically keeps track of the things it "looked at" while it's running through the logic, and then hands them up to HAPI to add as part of the MeasureReport
. There isn't a 1-to-1 correspondence between what the engine "looks at" and what's in the CQL. For example, if the CQL says "filter encounters to Date range" and the engine has to load 1000 encounters in order to inspect the dates on them, it reports them all as evaluated. Similarly, if you have some CQL that's Population
or Unspecified
context and the the engine has to look at all the patients on your system to run the logic, it reports that it "looked at" them. Does that make sense?
Last updated: Apr 12 2022 at 19:14 UTC