-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from MeasureAuthoringTool/MAT-6664
MAT-6664 QDM - If CQL has a retrieve without a filter ( for value set or direct reference code), display error message to user
- Loading branch information
Showing
3 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
library TestRetriveValidation version '1.0.000' | ||
|
||
using QDM version '5.6' | ||
|
||
codesystem "LOINC": 'urn:oid:2.16.840.1.113883.6.1' | ||
codesystem "SNOMEDCT": 'urn:oid:2.16.840.1.113883.6.96' | ||
|
||
|
||
valueset "Office Visit": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001' | ||
valueset "Annual Wellness Visit": 'urn:oid:2.16.840.1.113883.3.526.3.1240' | ||
|
||
code "Acute Pharyngitis Code": | ||
'363746003' from "SNOMEDCT" display 'Acute pharyngitis (disorder)' | ||
|
||
parameter "Measurement Period" Interval<DateTime> | ||
|
||
context Patient | ||
|
||
define "Initial Population": | ||
AgeInYearsAt(date from | ||
end of "Measurement Period" | ||
)in Interval[52, 74] | ||
|
||
define "Get Encounter from valueset Retrieve": | ||
["Encounter, Performed": "Office Visit"] | ||
|
||
define "Get Encounter From Code Retrieve": | ||
["Encounter, Performed": "Acute Pharyngitis Code"] | ||
|
||
define "Get Encounter from Code Declaration": | ||
["Encounter, Performed": code ~ "Acute Pharyngitis Code"] | ||
|
||
// invalid | ||
define "Get Encounter from CodeSystem Declaration": | ||
["Encounter, Performed": code in "SNOMEDCT"] | ||
|
||
// invalid | ||
define "Get Diagnosis from CodeSystem Declaration": | ||
["Diagnosis": "SNOMEDCT"] | ||
|
||
// invalid | ||
define "Retrieve with no filter": | ||
["Encounter, Performed"] ValidEncounter | ||
where ValidEncounter.relevantPeriod during "Measurement Period" |