[CQLIT-168] Timing Interval Calculation Created: 05/02/19  Updated: 12/22/20  Resolved: 05/31/19

Status: Resolved
Project: CQL Issue Tracker
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major
Reporter: Robin Holder (Inactive) Assignee: eCQM Standards Team
Resolution: Done Votes: 0
Labels: timing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Impact: Often the time is not included when documenting onset dates for Problems, Allergies and historical medications. The time will always be defaulted to midnight for these datetime values. This inclusion of the midnight time could alter the time interval calculation result.
If your issue is regarding an older eCQM version, enter it here: 2019 reporting year multiple EP/EC measures

 Description   

Logic Guidance for the 2019 reporting year:  Appendix B. Time Interval Definitions and Examples

The 2018 reporting year Logic Guidance included this note in timing calculations definitions - 

"For the purposes of quality measures, duration expressed in years ignores the time of day associated with the date/time stamps used in the calculation"

However, in the 2019 reporting year Logic Guidance, that note has been removed.  The CQL definition now includes time of day in each of the calculations "any time interval which starts at a certain time of day".

This means that all timing calculations must consider the time of day when calculating the time interval when "any time interval which starts at a certain time of day" is specified in the definition?

Year, Month, Week, Days?



 Comments   
Comment by Robin Holder (Inactive) [ 05/30/19 ]

Yes, the addresses my question.

Comment by eCQM Standards Team [ 05/30/19 ]

robin.holder@allscripts.com,

Please advise if your inquiry has been fully addressed.

Thank you,

eCQM Standards Team

Comment by Bryn Rhodes [ 05/22/19 ]

With CQL, the precision at which the timing comparison is performed can be specified as part of the timing phrase (e.g. prevalencePeriod starts before day of start of relevantPeriod). If no precision is specified in the timing phrase (e.g. prevalencePeriod starts before start of relevantPeriod), the comparison is performed based on the precision of the values involved. So if the values for onset are being defaulted to midnight, and the timing phrases in the measures do not specify a precision, then yes, the comparisons will include time.

 

Comment by eCQM Standards Team [ 05/06/19 ]

Thank you for your inquiry, the team will review and provide a response.

Generated at Sun Sep 21 12:32:24 UTC 2025 using Jira 10.3.9#10030009-sha1:eff8913ed2270ee44ab422c3609af4c4f36536d0.