-
Notifications
You must be signed in to change notification settings - Fork 122
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 #733 from cqframework/fix-732-extension-functions
#732: Fixed result type of FHIRPath extension functions and added mod…
- Loading branch information
Showing
9 changed files
with
128 additions
and
20 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
10 changes: 10 additions & 0 deletions
10
...rc/test/resources/org/cqframework/cql/cql2elm/fhir/r401/TestEncounterParameterContext.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,10 @@ | ||
library TestEncounterParameterContext | ||
|
||
using FHIR version '4.0.1' | ||
|
||
parameter Encounter Encounter | ||
|
||
context Encounter | ||
|
||
define TestExpression: status.value = 'finished' | ||
|
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
12 changes: 12 additions & 0 deletions
12
.../src/test/resources/org/cqframework/cql/cql2elm/fhir/r401/TestMeasureParameterContext.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,12 @@ | ||
library TestMeasureParameterContext | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.1' | ||
|
||
parameter Measure Measure | ||
|
||
context Measure | ||
|
||
define TestExpression: extension('http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis').exists() | ||
|
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
15 changes: 15 additions & 0 deletions
15
Src/java/cql-to-elm/src/test/resources/org/cqframework/cql/cql2elm/fhir/r401/TestTrace.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,15 @@ | ||
library TestTrace | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.1' | ||
|
||
parameter Patient Patient | ||
|
||
context Patient | ||
|
||
define Test1: name.given.trace('test').count() = 5 | ||
|
||
// TODO: Not supported, the second argument here is a selector: https://hl7.org/fhir/fhirpath.html#functions | ||
// define Test2: name.trace('test', given).count() = 3 | ||
|
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