Skip to content

Commit

Permalink
Replaced contraindication for measles with a generic all antigen ques…
Browse files Browse the repository at this point in the history
…tionnaire/model.
  • Loading branch information
lukeaduncan committed Jan 19, 2024
1 parent 988d473 commit e813468
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 363 deletions.
348 changes: 0 additions & 348 deletions input/cql/IMMZD2DTMeasles.cql.orig

This file was deleted.

2 changes: 1 addition & 1 deletion input/fsh/examples/IMMZ.D4.QuestionnaireResponse.1.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: QuestionnaireResponse
Usage: #example
* status = #completed
* authored = "2023-10-11"
* questionnaire = Canonical(QIMMZD5CheckContraindicationsMeasles)
* questionnaire = Canonical(QIMMZD5CheckContraindications)
* subject = Reference(patient123456)

* item[+]
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/examples/IMMZ.D4.QuestionnaireResponse.2.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: QuestionnaireResponse
Usage: #example
* status = #completed
* authored = "2023-10-11"
* questionnaire = Canonical(QIMMZD5CheckContraindicationsMeasles)
* questionnaire = Canonical(QIMMZD5CheckContraindications)
* subject = Reference(patient123456)

* item[+]
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/examples/IMMZ.D4.QuestionnaireResponse.3.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ InstanceOf: QuestionnaireResponse
Usage: #example
* status = #completed
* authored = "2023-10-11"
* questionnaire = Canonical(QIMMZD5CheckContraindicationsMeasles)
* questionnaire = Canonical(QIMMZD5CheckContraindications)
* subject = Reference(patient123456)

* item[+]
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/examples/IMMZ.D4.QuestionnaireResponse.4.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: QuestionnaireResponse
Usage: #example
* status = #completed
* authored = "2023-10-11"
* questionnaire = Canonical(QIMMZD5CheckContraindicationsMeasles)
* questionnaire = Canonical(QIMMZD5CheckContraindications)
* subject = Reference(patient123456)

* item[+]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Logical: IMMZD5CheckContraindicationsMeasles
Title: "IMMZ.D5 Check Contraindications for Measles"
Description: "Data elements for the IMMZ.D5 Check Contraindications Data Dictionary for Measles."
Logical: IMMZ5CheckContraindications
Title: "IMMZ.D5 Check Contraindications"
Description: "Data elements for the IMMZ.D5 Check Contraindications Data Dictionary."

* ^name = "IMMZ_D5_Check_Contraindications_Measles"
* ^name = "IMMZ_D5_Check_Contraindications"

* patient 1..1 Reference "Patient" "The patient who is being checked for contraindications."
* contraindications 0..* Coding "Potential contraindications" "Specific situations or medical conditions in which it is advised or recommended to avoid or delay administering a particular vaccine."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Instance: QIMMZD5CheckContraindicationsMeasles
Instance: QIMMZ5CheckContraindications
InstanceOf: sdc-questionnaire-extr-smap
Title: "Check Contraindications Questionnaire"
Description: "Immunization - Check Contraindications Questionnaire"
Expand Down
9 changes: 8 additions & 1 deletion input/fsh/valuesets/LiveAttenuatedVaccines.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ Description: "Codes representing live attenuated vaccines"
//fill in codes, check AL_CodeSystems.fsh for the short names of the codesystem
* $ICD11#XM8142
* $ICD11#XM72A0
* $SCT#1011000221100
* $ICD11#XM47S0
* $ICD11#XM8L15
* $ICD11#XM8TF3
* $LNC#30940-1
* $ICD11#XM21H2
* $ICD11#XM4AJ8
* $ICD11#XM9439
Expand All @@ -22,10 +24,15 @@ Description: "Codes representing live attenuated vaccines"
* $ICD11#XM0VX8
* $ICD11#XM0KZ1
* $ICD11#XM4GV0
* $SCT#1081000221109
* $ICD11#XM4VG1
* $ICD11#XM9PS9
* $ICD11#XM3B09
* $ICD11#XM5V64
* $ICD11#XM33K4
* $ICD11#XM0NS8
* $SCT#2221000221107
* $ICD11#XM3418
* $ICD11#XM5DF6
* $ICD11#XM5DF6
* $ICD11#XM3418
* $SCT#1121000221106
2 changes: 1 addition & 1 deletion input/maps/IMMZD5LMToResources.fml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD5LMToResources" = "IMMZD5LMToResources"

uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindicationsMeasles" alias IMMZD5 as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications" alias IMMZD5 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

group IMMZD5ToBundle (source immz : IMMZD5, target bundle: Bundle) {
Expand Down
2 changes: 1 addition & 1 deletion input/maps/IMMZD5QRToLM.fml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD5QRToLM" = "IMMZD5QRToLM"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindicationsMeasles" alias IMMZD5 as target
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications" alias IMMZD5 as target

group QRespToIMMZD5 ( source qr : QResp, target immz : IMMZD5) {

Expand Down
6 changes: 3 additions & 3 deletions input/maps/IMMZD5QRToResources.fml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD5QRToResources" = "IMMZD5QRToResources"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindicationsMeasles" alias IMMZD5 as source
uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications" alias IMMZD5 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

imports "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD5QRToLM"
Expand All @@ -11,9 +11,9 @@ group QRespToBundle (
source qr : QResp,
target bundle: Bundle
) {
qr -> create("http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindicationsMeasles") as model
qr -> create("http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications") as model
then{
qr -> model then QRespToIMMZD5( qr, model) "QRtoLM";
qr -> bundle then IMMZD5ToBundle( model, bundle ) "LMtoBundle";
} "QRtoBundle";
}
}

0 comments on commit e813468

Please sign in to comment.