generated from mgramigna/typescript-node-starter
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not Equal and Not Equivalent clause coverage calculation handling (#291)
* Not Equal and Not Equivalent clause coverage calculation handling * Added unit test for not equivalent * Check for operand localId * Remove undefined localId assignment * Move localId check, check for both localIds * Added unit test for future translator functionality for Not Equal clauses * Modified Not Equal unit test cql to not use literal false
- Loading branch information
1 parent
40b26fb
commit a37ab3c
Showing
6 changed files
with
1,314 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,24 @@ | ||
library Test | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.1' | ||
include MATGlobalCommonFunctions version '5.0.000' called Global | ||
|
||
codesystem "EXAMPLE": 'http://example.com' | ||
codesystem "EXAMPLE-2": 'http://example.com/2' | ||
codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' | ||
|
||
valueset "test-vs": 'http://example.com/test-vs' | ||
|
||
code "Active": 'active' from "ConditionClinicalStatusCodes" | ||
code "Recurrence": 'recurrence' from "ConditionClinicalStatusCodes" | ||
code "Relapse": 'relapse' from "ConditionClinicalStatusCodes" | ||
|
||
concept "Condition Active": { "Active", "Recurrence", "Relapse" } display 'Active' | ||
|
||
context Patient | ||
|
||
define "Not Equal Clause": | ||
[Condition: "test-vs"] C | ||
where C.id != 'notId' |
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,24 @@ | ||
library Test | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.1' | ||
include MATGlobalCommonFunctions version '5.0.000' called Global | ||
|
||
codesystem "EXAMPLE": 'http://example.com' | ||
codesystem "EXAMPLE-2": 'http://example.com/2' | ||
codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' | ||
|
||
valueset "test-vs": 'http://example.com/test-vs' | ||
|
||
code "Active": 'active' from "ConditionClinicalStatusCodes" | ||
code "Recurrence": 'recurrence' from "ConditionClinicalStatusCodes" | ||
code "Relapse": 'relapse' from "ConditionClinicalStatusCodes" | ||
|
||
concept "Condition Active": { "Active", "Recurrence", "Relapse" } display 'Active' | ||
|
||
context Patient | ||
|
||
define "Not Equivalent Clause": | ||
[Condition: "test-vs"] C | ||
where C.clinicalStatus !~ "Condition Active" |
Oops, something went wrong.