-
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 logical model/questionnaire for check contraindications. Add…
…ed template for plan and activity defs for contraindications, but the CQL still needs to be completed.
- Loading branch information
1 parent
c77bad6
commit f6fe9a8
Showing
12 changed files
with
301 additions
and
34 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,64 @@ | ||
Instance: Example.IMMZ.D4.QuestionnaireResponse.1 | ||
InstanceOf: QuestionnaireResponse | ||
Usage: #example | ||
* status = #completed | ||
* authored = "2023-10-11" | ||
* questionnaire = Canonical(Questionnaire-IMMZD4CheckContraindications) | ||
* subject = Reference(patient123456) | ||
|
||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE162 "Currently pregnant" | ||
|
||
|
||
Instance: Example.IMMZ.D4.QuestionnaireResponse.2 | ||
InstanceOf: QuestionnaireResponse | ||
Usage: #example | ||
* status = #completed | ||
* authored = "2023-10-11" | ||
* questionnaire = Canonical(Questionnaire-IMMZD4CheckContraindications) | ||
* subject = Reference(patient123456) | ||
|
||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE165 "Severely immunosuppressed" | ||
|
||
Instance: Example.IMMZ.D4.QuestionnaireResponse.3 | ||
InstanceOf: QuestionnaireResponse | ||
Usage: #example | ||
* status = #completed | ||
* authored = "2023-10-11" | ||
* questionnaire = Canonical(Questionnaire-IMMZD4CheckContraindications) | ||
* subject = Reference(patient123456) | ||
|
||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE167 "Severe allergic reactions" | ||
|
||
Instance: Example.IMMZ.D4.QuestionnaireResponse.4 | ||
InstanceOf: QuestionnaireResponse | ||
Usage: #example | ||
* status = #completed | ||
* authored = "2023-10-11" | ||
* questionnaire = Canonical(Questionnaire-IMMZD4CheckContraindications) | ||
* subject = Reference(patient123456) | ||
|
||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE162 "Currently pregnant" | ||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE167 "Severe allergic reactions" | ||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE168 "Symptomatic HIV infection" | ||
* item[+] | ||
* linkId = "contraindications" | ||
* text = "Contraindications" | ||
* answer.valueCoding = IMMZ.D4#DE165 "Severely immunosuppressed" |
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,12 @@ | ||
Instance: patient123456 | ||
InstanceOf: Patient | ||
Usage: #example | ||
|
||
* id = "P123456" | ||
* identifier.value = "123456" | ||
* name[+] | ||
* text = "Test Patient" | ||
* family = "Patient" | ||
* given = "Test" | ||
* gender = #male | ||
* birthDate = "1993-08-12" |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
Logical: IMMZ-D4-check-contraindications | ||
Logical: IMMZD4CheckContraindications | ||
Title: "IMMZ.D4 Check Contraindications for Measles" | ||
Description: "Data elements for the IMMZ.D4 Check Contraindications Data Dictionary for Measles." | ||
|
||
* ^name = "IMMZ_D4_Check_Contraindications_Measles" | ||
|
||
* 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" | ||
* 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." | ||
* ^code[+] = IMMZ.D4#DE161 | ||
* contraindications from IMMZ.D4.DE161 | ||
|
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 @@ | ||
map "http://fhir.org/guides/who/smart-immunization/StructureMap/IMMZD4LMToResources" = "IMMZD4LMToResources" | ||
|
||
uses "http://fhir.org/guides/who/smart-immunization/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as source | ||
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target | ||
|
||
group IMMZD4ToBundle (source immz : IMMZD4, target bundle: Bundle) { | ||
immz -> bundle.type = 'collection' "SetCollection"; | ||
|
||
immz.patient as patient then { | ||
immz.contraindications as ci -> bundle.entry as entry, entry.resource = create('Condition') as condition then { | ||
patient -> condition.subject = patient "SetPatient"; | ||
ci -> condition.code as code then { | ||
ci -> code.coding = ci "SetCoding"; | ||
} "SetCode"; | ||
} "SetCondition"; | ||
} "GetPatient"; | ||
|
||
} |
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,20 @@ | ||
map "http://fhir.org/guides/who/smart-immunization/StructureMap/IMMZD4QRToLM" = "IMMZD4QRToLM" | ||
|
||
uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source | ||
uses "http://fhir.org/guides/who/smart-immunization/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as target | ||
|
||
group QRespToIMMZD4 ( source qr : QResp, target immz : IMMZD4) { | ||
|
||
qr.subject as patient -> immz.patient = patient "SetPatient"; | ||
|
||
qr.item as item then { | ||
|
||
|
||
|
||
item.answer as answer where item.linkId = 'contraindications' then { | ||
answer.value as content -> immz.contraindications = content "SetContraindication"; | ||
} "SetContraindicationAnswer"; | ||
|
||
} "processItems"; | ||
} | ||
|
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,19 @@ | ||
map "http://fhir.org/guides/who/smart-immunization/StructureMap/IMMZD4QRToResources" = "IMMZD4QRToResources" | ||
|
||
uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source | ||
uses "http://fhir.org/guides/who/smart-immunization/StructureDefinition/IMMZD4CheckContraindications" alias IMMZD4 as source | ||
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target | ||
|
||
imports "http://fhir.org/guides/who/smart-immunization/StructureMap/IMMZD4QRToLM" | ||
imports "http://fhir.org/guides/who/smart-immunization/StructureMap/IMMZD4LMToResources" | ||
|
||
group QRespToBundle ( | ||
source qr : QResp, | ||
target bundle: Bundle | ||
) { | ||
qr -> create("http://fhir.org/guides/who/smart-immunization/StructureDefinition/IMMZD4CheckContraindications") as model | ||
then{ | ||
qr -> model then QRespToIMMZD4( qr, model) "QRtoLM"; | ||
qr -> bundle then IMMZD4ToBundle( model, bundle ) "LMtoBundle"; | ||
} "QRtoBundle"; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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