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
post Colorectal Cancer Screening bundle to hapi-fhir server
create a patient that does not meet critieria for needing a colorectal cancer screening denominator
run $care-gaps operation
patient's measureReport indicates a denominator=0/numerator=0
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
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
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