forked from mitre/cql-translation-service
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 2.3.0 w/ support for Translator 3.3.2 (#39)
* Version 2.3.0 w/ support for Translator 3.3.2 Update the translator to the latest one in the 3.x line. This required code changes, as the Translator classes have been refactored. * Add xpp3 library to support UCUM operations
- Loading branch information
Showing
6 changed files
with
91 additions
and
55 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
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
21 changes: 21 additions & 0 deletions
21
src/test/resources/org/mitre/bonnie/cqlTranslationServer/NeedsUCUM.cql
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,21 @@ | ||
library NeedsUCUM version '0.0.1' | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.1' | ||
|
||
valueset "test-vs": 'http://example.com/test-vs' | ||
|
||
context Patient | ||
|
||
define "Query ExpressionRef with Value Comparison": | ||
("Simple Observation Query".value as Quantity) > 9 '%' | ||
|
||
define "Simple Observation Query": | ||
Last([Observation: "test-vs"] O | ||
where O.status in {'final', 'amended', 'corrected'}) | ||
|
||
define "Has Elevated Value With Where": | ||
Last([Observation: "test-vs"] O | ||
where O.status in {'final', 'amended', 'corrected'} | ||
and (O.value as Quantity) > 9 '%') |