-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in plandef for yellow fever contraindication. Updated plan defs…
… and activity defs to use rulesets to simplify adding new antigens.
- Loading branch information
1 parent
4804ce0
commit d70e1e5
Showing
27 changed files
with
427 additions
and
783 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Library: IMMZD18SYellowFever (IMMZ.D18.S.YellowFever) | ||
* Trigger: IMMZ.D18 Determine required vaccination(s) Schedule if any | ||
*/ | ||
library IMMZD18SYellowFever | ||
// Start Skeleton CQL | ||
using FHIR version '4.0.1' | ||
include FHIRHelpers version '4.0.1' | ||
include IMMZCommon called IMMZCom | ||
include IMMZConcepts called IMMZc | ||
include IMMZConfig called IMMZCon | ||
include IMMZVaccineLibrary called IMMZvl | ||
include FHIRCommon called FC | ||
include IMMZD2DTYellowFeverInput called input | ||
|
||
// End Skeleton CQL | ||
context Patient | ||
|
||
|
||
/* | ||
@output: Yellow fever dose 1 | ||
@trigger: Child's birth | ||
*/ | ||
define "Yellow fever dose 1": | ||
input."No yellow fever primary series doses were administered" | ||
|
||
/* | ||
@output: Measles dose dose 1 Create | ||
@create: The client is due for measles dose 1 if the client is at least 9 months | ||
*/ | ||
define "Yellow fever dose dose 1 Create": | ||
if "Yellow fever dose 1" then 'The client is due for yellow fever dose 1 if the client is at least 9 months and living in a yellow fever endemic area. Due Date is ' | ||
+ ToString("Yellow fever dose 1 Due Date") + '. Overdue on ' + ToString("Yellow fever dose 1 Overdue") | ||
else '' | ||
|
||
/* | ||
@dynamicValue: Yellow fever dose 1 Due Date | ||
@pseudocode: "Date of birth" + 9 'month' | ||
*/ | ||
define "Yellow fever dose 1 Due Date": | ||
if "Yellow fever dose 1" then Patient.birthDate + 9 months | ||
else null | ||
|
||
/* | ||
@dynamicValue: Yellow fever dose 1 Overdue | ||
@pseudocode: To be determined by Member States however there is no recommended overdue date and individuals are always eligible to be vaccinated | ||
*/ | ||
define "Yellow fever dose 1 Overdue": | ||
if "Yellow fever dose 1" then Patient.birthDate + 12 months | ||
else null | ||
|
||
/* | ||
@dynamicValue: Yellow fever dose 1 Expiration | ||
@pseudocode: To be determined by Member States however there is no recommended expiration date and individuals are always eligible to be vaccinated | ||
*/ | ||
define "Yellow fever dose 1 Expiration": | ||
null |
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,18 @@ | ||
RuleSet: MedicationRequestActivityDefinition( antigen, version, date, doNotPerform, product ) | ||
* extension[+] | ||
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" | ||
* valueCode = #computable | ||
* version = "{version}" | ||
* name = "IMMZ{antigen}MedicationRequest" | ||
* status = #draft | ||
* experimental = false | ||
* date = {date} | ||
* publisher = "World Health Organization (WHO)" | ||
* contact[+] | ||
* telecom[+] | ||
* system = #url | ||
* value = "https://who.int" | ||
* kind = #MedicationRequest | ||
* intent = #proposal | ||
* doNotPerform = {doNotPerform} | ||
* productCodeableConcept = {product} |
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,7 @@ | ||
Instance: IMMZD2DTYellowFeverMR | ||
InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity | ||
Title: "IMMZ.D2.DT.YellowFever.MR" | ||
Description: "Provide immunization" | ||
Usage: #definition | ||
|
||
* insert MedicationRequestActivityDefinition( D2DTYellowFever, 0.1.0, 2023-10-23, false, $ICD11#XM0N24 "Yellow fever vaccine") |
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,7 @@ | ||
Instance: IMMZD5DTYellowFeverMR | ||
InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity | ||
Title: "IMMZ.D5.DT.YellowFever.MR" | ||
Description: "Immunization Contraindication" | ||
Usage: #definition | ||
|
||
* insert MedicationRequestActivityDefinition( D5DTYellowFever, 0.1.0, 2023-10-23, true, $ICD11#XM0N24 "Yellow fever vaccine") |
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
Oops, something went wrong.