[CQM-6539] Which glucose lab do we chose when the relevantDatetime's are the same Created: 10/20/23  Updated: 02/06/24  Resolved: 10/27/23

Status: Closed
Project: eCQM Issue Tracker
Component/s: None

Type: Hosp Inpt eCQMs - Hospital Inpatient eCQMs Priority: Moderate
Reporter: Michael Pickens (Inactive) Assignee: Joelencia Leflore
Resolution: Answered Votes: 0
Labels: None

Contact Name: Michael J Pickens
Contact Email: mpickens@medisolv.com
Institution/Name: Medisolv
Solution: Thank you for your inquiry specific to CMS871v2 Hospital Harm – Severe Hyperglycemia. Both values are evaluated regardless of sort order to determine if at least one of them meets the measure’s criteria. For example, one of the ways to meet the measure’s initial population (IPP) is to have at least one blood glucose value >=200 mg/dL at any time during the encounter. The following scenarios meet the IPP criteria because at least one of the glucose test result values is 200mg/dL:

Scenario 1:
Inpatient hospitalization start datetime: 10/23/23 8:00am
Inpatient hospitalization end datetime: 10/27/23 8:15am
Glucose lab test relevant datetime: 10/24/23 8:00am Result: 199 mg/dL
Glucose lab test relevant datetime: 10/24/23 8:00am Result: 200 mg/dL

Scenario 2:
Inpatient hospitalization start datetime: 10/23/23 8:00am
Inpatient hospitalization end datetime: 10/27/23 8:15am
Glucose lab test relevant datetime: 10/24/23 8:00am Result: 200 mg/dL
Glucose lab test relevant datetime: 10/24/23 8:00am Result: 199 mg/dL
Solution Posted On:
2023 Reporting Period Hosp Inpt eCQMs:
CMS0871v2
Last Commented Date:

 Description   

We have data where there are two glucose labs with different results but identical relevantDatetime values.  The CQL specification says "When the sort elements do not provide a unique ordering (i.e. there is a possibility of duplicate sort values in the result), the order of duplicates is unspecified.".  CMS871v2 does not provide a second attribute to sort the data elements.  

What is the intended behavior for this clause?



 Comments   
Comment by Joelencia Leflore [ 12/08/23 ]

Thank you for your follow-up question specific to CMS871v2 Hospital Harm – Severe Hyperglycemia. In the event of two different glucose values with the same relevantDatetime, both values are evaluated regardless of sort order to determine if at least one of them meets the measure’s criteria, whether it is for the IPP, Denominator, Denominator Exclusion, or Numerator.  For example, the definition you refer to, “First Blood Glucose Within 1 Hour Prior To and 6 Hours After Encounter Start”, is used as part of the calculation for the Denominator Exclusion "Encounter With First Blood Glucose Greater Than or Equal to 1000". 

Comment by Kristen Beatson [ 12/04/23 ]

JLeflore Have you had a chance to review this? Thanks!

Comment by Joelencia Leflore [ 11/07/23 ]

Thank you for the follow-up question. We will review your ticket and provide a response as soon as possible.

Comment by Michael Pickens (Inactive) [ 10/29/23 ]

I'm sorry if I was not clear.  I was referring to the numerator expression:

First Blood Glucose Within 1 Hour Prior To and 6 Hours After Encounter Start

  • First(["Laboratory Test, Performed": "Glucose Lab Test Mass Per Volume"] FirstBloodGlucose
    with("Qualifying Encounter")InpatientEncounter
    such that FirstBloodGlucose.relevantDatetime during Interval[(start of Global."HospitalizationWithObservation"(InpatientEncounter)- 1 hour),(start of Global."HospitalizationWithObservation"(InpatientEncounter)+ 6 hours)]
    sort by relevantDatetime
    )

 

The CQL First() function is called and if the relevantDatetime's are equal there is indeterminate behavior.

Comment by Joelencia Leflore [ 10/23/23 ]

Thank you for submitting your question. We will review your ticket and provide a response as soon as possible.

Generated at Sun Aug 31 08:15:19 UTC 2025 using Jira 10.3.8#10030008-sha1:cdaed80cecc964184c5b19b002388d56f96e274e.