cqframework / clinical-reasoning

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

care-gaps "open-gap" status for patients that do not meet criteria of measure #373

Closed Capt-Mac closed 8 months ago

Capt-Mac commented 8 months ago

Current functionality of care-gaps will show "open-gap" for patients that do not meet intial-population or denominator of quality measure. This is an issue because a patient that does not meet eligibility requirements for a measure should not be labeled as having a "open-gap" in care. It should be "closed-gap"

reproduction steps

  1. post Colorectal Cancer Screening bundle to hapi-fhir server
  2. create a patient that does not meet critieria for needing a colorectal cancer screening denominator
  3. run $care-gaps operation
  4. patient's measureReport indicates a denominator=0/numerator=0
  5. care-gap detected issue reports "open-gap"

expected behavior

patient where denominator=0 should get detectedIssue status of "not-applicable" because they are not eligible for the quality measure

suggested fix

update criteria for "open-gap" to consider denominator=1 and numerator=0, not just numerator=0