-
Notifications
You must be signed in to change notification settings - Fork 23
QA Specifying Type For Sort By
Darren Duncan edited this page Oct 12, 2017
·
1 revision
We need to sort by the highest lab result for the day. We have attempted "sort by result desc" which gives an error about not being able to resolve the comparison operator.
"Dabigatran Given" Given
with "Lab CrCl and eGFR Test" Lab
such that Lab.result during Given.relevantPeriod
sort by result desc
Because result can be different types, you would need to indicate which type you want to use to do the sort, so:
sort by (result as Quantity) desc
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