cqframework / cql-engine

Clinical Quality Language Evaluation Engine
Apache License 2.0
61 stars 45 forks source link

DMS Denominator CQL #62

Closed jeffeastman closed 6 years ago

jeffeastman commented 6 years ago

When I run test data on the DMS measure I get denominator values that are greater than the IPP values:

===== In-memory Summary =====
    denominator 1 = 100
    denominator 2 = 100
    denominator 3 = 100
    initial-population = 55
    numerator 1 = 83
    numerator 2 = 55
    numerator 3 = 25

===== Server Summary =====
    denominator 1 = 100
    denominator 2 = 100
    denominator 3 = 100
    initial-population = 55
    numerator 1 = 83
    numerator 2 = 55
    numerator 3 = 25

Looking at the CQL, I believe the Initial-Population needs to be included in the definitions:

define "Denominator 1":
    {First(
        "Depression Encounters" E
            where PeriodToIntervalOfDT(E.period) during "Assessment Period One"
            sort by start of PeriodToIntervalOfDT(period)
    )}

define "Denominator 2":
    {First(
        "Depression Encounters" E
            where PeriodToIntervalOfDT(E.period) during "Assessment Period Two"
            sort by start of PeriodToIntervalOfDT(period)
    )}

define "Denominator 3":
    {First(
        "Depression Encounters" E
            where PeriodToIntervalOfDT(E.period) during "Assessment Period Three"
            sort by start of PeriodToIntervalOfDT(period)
    )}
c-schuler commented 6 years ago

Is this an engine issue?

jeffeastman commented 6 years ago

No, my bad. It's already a HEDIS issue https://github.com/cqframework/hedis-ig/issues/13

c-schuler commented 6 years ago

No worries. Thanks Jeff.

jeffeastman commented 6 years ago

Closing this one