Skip to content

Commit

Permalink
Updated all antigen client history model/questionnaire/maps to remove…
Browse files Browse the repository at this point in the history
… birth dose as it is now only polio and hep b and added it to polio.
  • Loading branch information
lukeaduncan committed Feb 21, 2024
1 parent c56aaff commit dacc16c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 28 deletions.
2 changes: 0 additions & 2 deletions input/fsh/models/IMMZD1ClientHistory.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Description: "Data elements for the IMMZ.D1 Capture Client History Data Diction
* ^name = "IMMZ_D1_Client_History"

* patient 1..1 Reference "Patient" "The patient who is being checked for contraindications."
* birth 0..1 boolean "Birth dose" "Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen."
* ^code[+] = IMMZ.D1#DE109
* type 1..* Coding "Type of dose" "The type of dose in a series that the client received"
* ^code[+] = IMMZ.D1#DE103
* type from IMMZ.D1.DE103
Expand Down
3 changes: 2 additions & 1 deletion input/fsh/models/IMMZD1ClientHistoryPolio.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Description: "Data elements for the IMMZ.D1 Capture Client History Data Diction

* ^name = "IMMZ_D1_Client_History_Polio"


* birth 0..1 boolean "Birth dose" "Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen."
* ^code[+] = IMMZ.D1#DE109
* poliotype 0..1 Coding "Type of polio dose" "The type of the polio vaccine dose administered to the client"
* ^code[+] = IMMZ.D1#DE35
* ^code[+] = $ICD11#XM0N50
Expand Down
3 changes: 0 additions & 3 deletions input/fsh/questionnaires/QIMMZD1ClientHistory.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ Usage: #definition
* extension[=].valueCanonical = "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1QRToResources"


* insert Question(birth, Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen., boolean, false, false)
* item[=]
* code[+] = IMMZ.D1#DE109
* insert Question(type, The type of dose in a series that the client received, choice, false, true)
* item[=]
* answerValueSet = Canonical(IMMZ.D1.DE103)
Expand Down
3 changes: 0 additions & 3 deletions input/fsh/questionnaires/QIMMZD1ClientHistoryMeasles.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ Usage: #definition
* extension[=].valueCanonical = "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1MeaslesQRToResources"


* insert Question(birth, Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen., boolean, false, false)
* item[=]
* code[+] = IMMZ.D1#DE109
* insert Question(type, The type of dose in a series that the client received, choice, false, true)
* item[=]
* answerValueSet = Canonical(IMMZ.D1.DE103)
Expand Down
3 changes: 0 additions & 3 deletions input/fsh/questionnaires/QIMMZD1ClientHistoryYellowFever.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ Usage: #definition
* extension[=].valueCanonical = "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1YellowFeverQRToResources"


* insert Question(birth, Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen., boolean, false, false)
* item[=]
* code[+] = IMMZ.D1#DE109
* insert Question(type, The type of dose in a series that the client received, choice, false, true)
* item[=]
* answerValueSet = Canonical(IMMZ.D1.DE103)
Expand Down
12 changes: 0 additions & 12 deletions input/maps/IMMZD1LMToResources.fml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ group IMMZD1ToBundle (source immz : IMMZD1, target bundle: Bundle) {

immz.patient as patient then {


immz.birth as content -> bundle.entry as entry, entry.resource = create('Observation') as obs then {
patient -> obs.subject = patient "SetPatient";
content -> obs.code as code then {
content -> code.coding as coding then {
content -> coding.system = 'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1' "SetObsSystem";
content -> coding.code = 'DE109' "SetObsCode";
} "SetObsCoding";
} "SetObsCode";
content -> obs.value = content "SetValue";
} "SetBirthObservation";

immz.type as content -> bundle.entry as entry, entry.resource = create('Observation') as obs then {
patient -> obs.subject = patient "SetPatient";
content -> obs.code as code then {
Expand Down
12 changes: 12 additions & 0 deletions input/maps/IMMZD1PolioLMToResources.fml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ group PolioIMMZD1ToBundle (source immz : IMMZD1, target bundle: Bundle) extends

immz.patient as patient then {


immz.birth as content -> bundle.entry as entry, entry.resource = create('Observation') as obs then {
patient -> obs.subject = patient "SetPatient";
content -> obs.code as code then {
content -> code.coding as coding then {
content -> coding.system = 'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1' "SetObsSystem";
content -> coding.code = 'DE109' "SetObsCode";
} "SetObsCoding";
} "SetObsCode";
content -> obs.value = content "SetValue";
} "SetBirthObservation";

immz.poliotype as content -> bundle.entry as entry, entry.resource = create('Observation') as obs then {
patient -> obs.subject = patient "SetPatient";
content -> obs.code as code then {
Expand Down
4 changes: 4 additions & 0 deletions input/maps/IMMZD1PolioQRToLM.fml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ group PolioQRespToIMMZD1 ( source qr : QResp, target immz : IMMZD1) extends QRes

qr.item as item then {

item.answer first as answer where item.linkId = 'birth' then {
answer.value as content -> immz.birth = content "SetBirth";
} "FirstAnswerForBirth";

item.answer first as answer where item.linkId = 'poliotype' then {
answer.value as coding -> immz.poliotype = coding "SetPolioType";
} "FirstAnswerForPolioType";
Expand Down
4 changes: 0 additions & 4 deletions input/maps/IMMZD1QRToLM.fml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ group QRespToIMMZD1 ( source qr : QResp, target immz : IMMZD1) {

qr.item as item then {

item.answer first as answer where item.linkId = 'birth' then {
answer.value as content -> immz.birth = content "SetBirth";
} "FirstAnswerForBirth";

item.answer as answer where item.linkId = 'type' then {
answer.value as coding -> immz.type = coding "SetVaccineType";
} "AnswerForType";
Expand Down

0 comments on commit dacc16c

Please sign in to comment.