forked from mcode/cql-testing-harness
-
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.
- Loading branch information
Showing
18 changed files
with
1,045 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
.vscode | ||
.vscode | ||
.env |
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
42 changes: 42 additions & 0 deletions
42
test/fixtures/cql/MMR10MedicalContraPrecautionMMRRecommendation/MMR_Rule10_CQL20240327.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,42 @@ | ||
library "MMR10MedicalContraPrecautionMMRRecommendation" version '1' | ||
|
||
include "MMR_Common_Library" version '1' called Common | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include "FHIRHelpers" version '4.0.1' called FHIRHelpers | ||
|
||
|
||
parameter Imm List<Immunization> | ||
parameter Conditions List<Condition> | ||
|
||
context Patient | ||
|
||
|
||
define "MMR_Vaccine_OneDose": | ||
Count(Common.FindValidVaccines(Imm)) = 1 | ||
|
||
|
||
define "Pregnant_Exist": | ||
Count(Common.FindValidPregnantCondition(Conditions)) > 0 | ||
|
||
|
||
|
||
|
||
define "InPopulation": | ||
MMR_Vaccine_OneDose and Pregnant_Exist | ||
|
||
|
||
/* | ||
rationale | ||
If patient does not have MMR or MMRV records and patient is pregnant, schedule 1st dose of MMR after pregnancy and 2nd dose after 4 weeks of the 1st dose | ||
*/ | ||
|
||
|
||
|
||
define "Recommendation1": | ||
if InPopulation then | ||
'Schedule/admininster 2nd dose after pregnancy, >= 4 wk of 1st dose' | ||
else null | ||
|
33 changes: 33 additions & 0 deletions
33
...MR11MedicalContraPrecautionMMRRecommendation_Immunocompromised/MMR_Rule11_CQL20240327.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,33 @@ | ||
library "MMR11MedicalContraPrecautionMMRRecommendation_Immunocompromised" version '1' | ||
|
||
include "MMR_Common_Library" version '1' called Common | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include "FHIRHelpers" version '4.0.1' called FHIRHelpers | ||
|
||
|
||
parameter Conditions List<Condition> | ||
|
||
|
||
|
||
|
||
context Patient | ||
|
||
define "InPopulation": | ||
Count(Common.FindValidImmunocompromisedCondition(Conditions)) > 0 | ||
|
||
|
||
/* | ||
rationale | ||
If patient does not have MMR or MMRV records and patient is pregnant, schedule 1st dose of MMR after pregnancy and 2nd dose after 4 weeks of the 1st dose | ||
*/ | ||
|
||
define "Recommendation1": | ||
if InPopulation then | ||
'DO NOT ADMINISTER OR SCHEDULE MMR' | ||
else | ||
null | ||
|
||
|
Oops, something went wrong.