-
Notifications
You must be signed in to change notification settings - Fork 25
Cooking with CQL Q&A Index Using Quality Data Model Category
Diagnoses vs Diagnosis: With the new changes to the QDM, is the attribute now “Diagnoses” instead of “Diagnosis”? (Session 17 - 8/17/17)
- Yes. This change was made to support the fact that a single encounter may have multiple diagnoses associated with it. Note that the “Principal Diagnosis” attribute is still singular.
Expand Operator: In the Quality Data Model (QDM) 5.5, what does the expand operator do? Can it be used to make a list of each day in the measurement period? (Session 43 - 4/23/20)
- Yes. QDM 5.5 does not have an expand operator, QDM is the data model. The CQL expand operator is an operator that takes a list of intervals and returns the unit intervals in that input. As shown in Example 1, if you expand the interval from 1 to 10, the result would be a list of the intervals from 1 to 1, 2 to 2, and so on.
Example 1
expand { Interval[1, 10]} // { Interval[1, 1], Interval[2, 2] ...}
There is also a per clause, shown in Example 2. If you expand the measurement period, you can get intervals of milliseconds by saying per day then you get intervals of days. If you said per month, you would get 12 months and then you could count the encounters in that month.
Example 2
define "Measurement Period Days":
expand { "Measurement Period" } per day
Measurement Period is a calendar calculation. If you are using Measurement Period Days and the measurement period includes a leap year, that will be accounted for in the calculation. Similarly, if you said month, you will get the calendar month intervals. You could also ask for the months, the counts in the days, and the highest count of days in that month.
“id” uses in QDM v5.3: Which are the other uses for “id” in QDM v5.3? (Session 17 - 8/17/17)
- When using observations with different dates
- For an episode of care
- When using the same encounter from two different expressions.
- Using Quality Data Model Questions from Cooking with CQL Sessions
Authoring Patterns - QICore v4.1.1
Authoring Patterns - QICore v5.0.0
Authoring Patterns - QICore v6.0.0
Cooking with CQL Q&A All Categories
Additional Q&A Examples
Developers Introduction to CQL
Specifying Population Criteria