Stream: cql
Topic: Group Results by Patient Facility/Location in MeasureReport
Felix Ongati (Apr 08 2021 at 12:57):
We have a use case where we would like to return results of $evaluate-measure disaggregated by age-sex and grouped by patient's facility/location. Grouping by age-sex is straightforward in CQL, has anyone here tried to return results grouped by patient location or does anyone have an idea of the best way to do this? I know you can specify location in the subject attribute of a measure, but I am thinking that will mean calling $evaluate-measure for each of the individual locations.
Bryn Rhodes (Apr 08 2021 at 16:29):
A Measure can have different "subjects", where the subject is the primary reference point for the criteria within the measure. By default, the subject is "Patient", so the criteria are expressed in terms of patient-level queries. But you can use Measure with different subjects, such as "Location", which would mean that the criteria are written with respect to a particular Location. This corresponds with the "context" declaration in the CQL, so instead of saying "context Patient", you would say "context Location". Does that help?
Felix Ongati (Apr 15 2021 at 15:16):
Thanks @Bryn Rhodes , that helps a lot.
Felix Ongati (Apr 15 2021 at 15:17):
FYI @Vladimer Shioshvili , @Jenny Thompson
Last updated: Apr 12 2022 at 19:14 UTC