Thank you for your inquiry regarding CMS996v5: Appropriate Treatment for ST-Segment Elevation Myocardial Infarction (STEMI) Patients in the Emergency Department (ED). The dementia diagnosis exclusion is defined by the following logic in the measure’s HTML file posted on the eCQI Resource Center [
https://ecqi.healthit.gov/sites/default/files/ecqm/measures/CMS996v5.html].
Active Exclusion Diagnosis at Start of ED Encounter
"ED Encounter with STEMI Diagnosis" EDwSTEMI
with ( ["Diagnosis": "Active Bleeding Excluding Menses or Bleeding Diathesis"]
union ["Diagnosis": "Malignant Intracranial Neoplasm Group"]
union ["Diagnosis": "Cerebral Vascular Lesion"]
union ["Diagnosis": "Dementia and Related Intracranial Pathologies"]
union ["Diagnosis": "Pregnant State"]
union ["Diagnosis": "Allergy to thrombolytics"] ) ActiveExclusionDx
such that ActiveExclusionDx.prevalencePeriod overlaps before EDwSTEMI.relevantPeriod
The exclusion definition above shows that the diagnosis prevalencePeriod (or time from diagnosis onset to abatement) “overlaps before” the ED encounter relevantPeriod (or the time the encounter began to the time the encounter ended). This means that the onset datetime of the dementia diagnosis must occur before the start of the ED encounter for the patient to be properly excluded from the measure denominator.
In the scenario depicted above, we interpret the startTime of the relevantPeriod (admission time/time the encounter began) to be 18:56. Additionally, we assume that the patient’s dementia was likely present at the start of the ED encounter. However, for this ED encounter, since the dementia diagnosis was documented by the author dateTime attribute at 18:57, the ED encounter for this patient would not be excluded from the measure denominator due to the dementia diagnosis as it was recorded after the start of the ED encounter.
To ensure that ED encounters for patients whose dementia diagnosis began before the start of the ED encounter are properly excluded from the measure denominator, we recommend finding a place in your EHR system where you can manually document the onset time of a dementia diagnosis. Additionally, we recommend working with your EHR vendor to determine the source of a dementia diagnosis in your EHR system and map this dementia diagnosis and onset time stamp to the prevalencePeriod onset dateTime attribute of the “Diagnosis”: “Dementia and Related Intracranial Pathologies” QDM datatype.
For more information on the “Diagnosis” QDM datatype and the prevalencePeriod attribute, please see the following resource on the eCQI Resource Center
https://ecqi.healthit.gov/mcw/2025/ecqm-dataelement/diagnosisdementiaandrelatedintracranialpathologies.html.