projecttacoma / fqm-execution

fqm-execution is a library that allows users to calculate FHIR-based electronic Clinical Quality Measures (eCQMs) and retrieve the results in a variety of formats
https://projecttacoma.github.io/fqm-execution/
Apache License 2.0
18 stars 6 forks source link

Proportion episode-based measure with falsy IPP shows no highlighting #211

Closed mgramigna closed 1 year ago

mgramigna commented 1 year ago

Summary

Consider the following example

define "Qualifying Encounter":
  ["Encounter": "Encounter Inpatient"] InpatientEncounter
    where InpatientEncounter.status = 'finished'

define "ipop":
  "Qualifying Encounter"

When a patient does not have a qualifying encounter (in this case, the example has a valid Encounter from that valueset, but the status is in-progress instead of finished), no highlighting shows up

image

Expected Behavior

Highlighting should show up and look like this:

image

Version or Commit

Verified in v1.0.6 and v1.0.7

Inputs (e.g. Measure Bundle, Patient Bundle, CQL Library)

relevance-highlighting-input.tar.gz

Relevant Calculation Options (e.g. Measurement Period, meta.profile Validation)

N/A

cql-to-elm Version Used for Measure Logic Translation (if known)

2.4.0

Any Additional Info

The engine might not be treating that statement as "relevant" even though it should be? I also tested it without using an expression ref and just putting the query directly in the "ipop" expression. Same behavior