WHO Immunization Implementation Guide
0.2.0 - ci-build
WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/tree/123/merge and changes regularly. See the Directory of published versions
| Draft as of 2026-03-03 |
{
"resourceType" : "PlanDefinition",
"id" : "IMMZD5DTBCGContraindications",
"meta" : {
"profile" : [
🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"🔗 ,
"http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition"🔗 ,
"http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition"
]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">IMMZD5DTBCGContraindications</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-IMMZD5DTBCGContraindications.html\">IMMZ.D5.DT.BCG contraindications</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.2.0</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">IMMZ.D5.DT.BCG contraindications</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Status: </b></th>\n <td style=\"padding-left: 4px;\">draft</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/7.0.1/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>eca-rule</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2026-03-03 13:07:11+0000</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">WHO</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>IMMZ.D5.DT.BCG contraindications\nIMMZ.D5.DT.BCG contraindications</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Knowledge Capability: </b></th>\n <td style=\"padding-left: 4px;\">\n \n computable \n </td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Related Artifacts: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n <p><b>References</b></p>\n <ul>\n \n <li><div><p>WHO recommendations for routine immunization - summary tables (January 2025)</p>\n</div><br/><a href=\"null\"/></li>\n \n </ul>\n \n \n \n \n \n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-IMMZD5DTBCGContraindicationsLogic.html\">IMMZD5DTBCGContraindicationsLogic</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n <b> Check for contraindications before administering the vaccine(s) due:</b> Contraindication for BCG immunization\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n BCG vaccination is contraindicated\n \n <i>(BCG vaccination is contraindicated)</i>\n <br/>\n \n \n \n \n <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD5DTMR.html\">IMMZD5DTMR</a><br/>\n \n <i>Dynamic Values:</i><br/>\n \n id: <i>(Draft Medication Request ID for BCG dose)</i>\n <br/>\n \n medication: <i>(Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE1', display: 'BCG vaccines' } }, display: 'BCG vaccines' })</i>\n <br/>\n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> Check for contraindications before administering the vaccine(s) due:</b> Contraindication for BCG immunization\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n Bacille Calmette–Guérin (BCG) vaccination is contraindicated\n \n <i>(Bacille Calmette–Guérin (BCG) vaccination is contraindicated)</i>\n <br/>\n \n \n \n \n <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD5DTMR.html\">IMMZD5DTMR</a><br/>\n \n <i>Dynamic Values:</i><br/>\n \n id: <i>(Draft Medication Request ID for BCG dose)</i>\n <br/>\n \n medication: <i>(Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE1', display: 'BCG vaccines' } }, display: 'BCG vaccines' })</i>\n <br/>\n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> Check for Guidance for the patient regarding IMMZ.D5.DT.BCG contraindications.:</b> Show Guidance for the patient regarding IMMZ.D5.DT.BCG contraindications.\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n Has Guidance\n \n <i>(Has Guidance)</i>\n <br/>\n \n \n \n \n <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTCR.html\">IMMZ.D2.DT.CR</a><br/>\n \n <i>Dynamic Values:</i><br/>\n \n status: <i>('active')</i>\n <br/>\n \n payload.contentString: <i>(Guidance)</i>\n <br/>\n \n category.coding: <i>(Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' })</i>\n <br/>\n \n priority: <i>(Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' })</i>\n <br/>\n \n \n \n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"
},
"contained" : [
{
"resourceType" : "Library",
"id" : "effective-data-requirements",
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE162",
"display" : "Currently pregnant"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "active"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "recurrence"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "relapse"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://loinc.org",
"code" : "82810-3",
"display" : "Pregnancy status"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://loinc.org",
"code" : "LA15173-0",
"display" : "Pregnant"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE167",
"display" : "Severe allergic reactions"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE164",
"display" : "Exposed to immunosuppressive treatment"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE187",
"display" : "Immunodeficiency syndromes"
}
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "Potential contraindications"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Potential contraindications observations\n*/\ndefine \"Potential contraindications\":\n ([Observation: Concepts.\"Potential contraindications\"]).complete()"
},
{
"url" : "displaySequence",
"valueInteger" : 0
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Currently pregnant Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for currently pregnant\n*/\ndefine \"CI Currently pregnant Observation\":\n \"Potential contraindications\" O\n where O.value ~ Concepts.\"CI-Currently pregnant\""
},
{
"url" : "displaySequence",
"valueInteger" : 1
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Currently pregnant Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for currently pregnant\n*/\ndefine \"CI Currently pregnant Observation\":\n Elements.\"CI Currently pregnant Observation\" O\n where O.encounter.references(EncounterId)\n or O.effective.toInterval() starts same day or after Today - 9 months"
},
{
"url" : "displaySequence",
"valueInteger" : 2
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Currently pregnant Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for currently pregnant\n*/\ndefine \"CI Currently pregnant Condition\":\n [Condition: Concepts.\"CI-Currently pregnant\"]"
},
{
"url" : "displaySequence",
"valueInteger" : 3
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Currently pregnant Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for currently pregnant\n*/\ndefine \"CI Currently pregnant Condition\":\n Elements.\"CI Currently pregnant Condition\" C\n where C.prevalenceInterval() includes Today"
},
{
"url" : "displaySequence",
"valueInteger" : 4
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOElements"
},
{
"url" : "name",
"valueString" : "Pregnancy Status Observation"
},
{
"url" : "statement",
"valueString" : "define \"Pregnancy Status Observation\":\n [Observation: Concepts.\"Pregnancy status\"] O\n where O.status in { 'final', 'amended', 'corrected' }"
},
{
"url" : "displaySequence",
"valueInteger" : 5
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOElements"
},
{
"url" : "name",
"valueString" : "Pregnant Observation"
},
{
"url" : "statement",
"valueString" : "define \"Pregnant Observation\":\n \"Pregnancy Status Observation\" O\n where O.value ~ Concepts.\"Pregnant\""
},
{
"url" : "displaySequence",
"valueInteger" : 6
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOEncounterElements"
},
{
"url" : "name",
"valueString" : "Pregnant Observation"
},
{
"url" : "statement",
"valueString" : "define \"Pregnant Observation\":\n Elements.\"Pregnant Observation\" O\n where O.encounter.references(EncounterId)\n or O.effective.toInterval() starts same day or after AsOf - 9 months"
},
{
"url" : "displaySequence",
"valueInteger" : 7
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "The client is pregnant"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client is pregnant\n@pseudocode: \"Potential contraindications\" = \"Currently pregnant\"\n*/\ndefine \"The client is pregnant\":\n exists \"CI Currently pregnant Observation\"\n or exists \"CI Currently pregnant Condition\"\n or exists WE.\"Pregnant Observation\""
},
{
"url" : "displaySequence",
"valueInteger" : 8
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "The client is pregnant"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client is pregnant\n@pseudocode: \"Potential contraindications\" = \"Currently pregnant\"\n@code: The client is pregnant-52\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"The client is pregnant\":\n Encounter.\"The client is pregnant\""
},
{
"url" : "displaySequence",
"valueInteger" : 9
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "Bacille Calmette–Guérin (BCG) vaccination is contraindicated"
},
{
"url" : "statement",
"valueString" : "/*\n@output: Bacille Calmette–Guérin (BCG) vaccination is contraindicated\n@pseudocode: '\"Immunization recommendation status\" = \"Contraindicated\"\n*/\ndefine \"Bacille Calmette–Guérin (BCG) vaccination is contraindicated\":\n Encounter.\"The client is pregnant\""
},
{
"url" : "displaySequence",
"valueInteger" : 10
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "Bacille Calmette–Guérin (BCG) vaccination is contraindicated Guidance"
},
{
"url" : "statement",
"valueString" : "/*\n@output: Bacille Calmette–Guérin (BCG) vaccination is contraindicated Guidance\n@guidance: Do not vaccinate client with BCG as BCG vaccination is not recommended during pregnancy\n*/\ndefine \"Bacille Calmette–Guérin (BCG) vaccination is contraindicated Guidance\":\n 'Do not vaccinate client with BCG as BCG vaccination is not recommended during pregnancy'"
},
{
"url" : "displaySequence",
"valueInteger" : 11
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Severe allergic reactions Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Severe allergic reactions\n*/\ndefine \"CI Severe allergic reactions Observation\":\n \"Potential contraindications\" O\n where O.value ~ Concepts.\"CI-Severe allergic reactions\""
},
{
"url" : "displaySequence",
"valueInteger" : 12
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Severe allergic reactions Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Severe allergic reactions\n*/\ndefine \"CI Severe allergic reactions Observation\":\n Elements.\"CI Severe allergic reactions Observation\".encounterOrOnBefore(EncounterId, Today)"
},
{
"url" : "displaySequence",
"valueInteger" : 13
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Severe allergic reactions Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Severe allergic reactions\n*/\ndefine \"CI Severe allergic reactions Condition\":\n [Condition: Concepts.\"CI-Severe allergic reactions\"]"
},
{
"url" : "displaySequence",
"valueInteger" : 14
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Severe allergic reactions Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Severe allergic reactions\n*/\ndefine \"CI Severe allergic reactions Condition\":\n Elements.\"CI Severe allergic reactions Condition\" C\n where C.prevalenceInterval() includes Today"
},
{
"url" : "displaySequence",
"valueInteger" : 15
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "The client has history of severe allergic reactions"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client has history of severe allergic reactions\n@pseudocode: \"Potential contraindications\" = \"Severe allergic reactions\"\n*/\ndefine \"The client has history of severe allergic reactions\":\n exists \"CI Severe allergic reactions Observation\"\n or exists \"CI Severe allergic reactions Condition\""
},
{
"url" : "displaySequence",
"valueInteger" : 16
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "The client has history of severe allergic reactions"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client has history of severe allergic reactions\n@pseudocode: '\"Potential contraindications\" = \"Severe allergic reactions\"\n@code: The client has history of severe allergic reactions-60\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"The client has history of severe allergic reactions\":\n Encounter.\"The client has history of severe allergic reactions\""
},
{
"url" : "displaySequence",
"valueInteger" : 17
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 1"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 1\n@pseudocode: '\"Immunization recommendation status\" = \"Further evaluation needed\"\n*/\ndefine \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 1\":\n Encounter.\"The client has history of severe allergic reactions\""
},
{
"url" : "displaySequence",
"valueInteger" : 18
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Exposed to immunosuppressive treatment Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Exposed to immunosuppressive treatment\n*/\ndefine \"CI Exposed to immunosuppressive treatment Observation\":\n \"Potential contraindications\" O\n where O.value ~ Concepts.\"CI-Exposed to immunosuppressive treatment\""
},
{
"url" : "displaySequence",
"valueInteger" : 19
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Exposed to immunosuppressive treatment Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Exposed to immunosuppressive treatment\n*/\ndefine \"CI Exposed to immunosuppressive treatment Observation\":\n Elements.\"CI Exposed to immunosuppressive treatment Observation\".encounterOrOnBefore(EncounterId, Today)"
},
{
"url" : "displaySequence",
"valueInteger" : 20
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Exposed to immunosuppressive treatment Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Exposed to immunosuppressive treatment\n*/\ndefine \"CI Exposed to immunosuppressive treatment Condition\":\n [Condition: Concepts.\"CI-Exposed to immunosuppressive treatment\"]"
},
{
"url" : "displaySequence",
"valueInteger" : 21
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Exposed to immunosuppressive treatment Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Exposed to immunosuppressive treatment\n*/\ndefine \"CI Exposed to immunosuppressive treatment Condition\":\n Elements.\"CI Exposed to immunosuppressive treatment Condition\" C\n where C.prevalenceInterval() includes Today"
},
{
"url" : "displaySequence",
"valueInteger" : 22
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "The client is exposed to immunosuppressive treatment"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client is exposed to immunosuppressive treatment\n@pseudocode: \"Potential contraindications\" = \"Exposed to immunosuppressive treatment\"\n*/\ndefine \"The client is exposed to immunosuppressive treatment\":\n exists \"CI Exposed to immunosuppressive treatment Observation\"\n or exists \"CI Exposed to immunosuppressive treatment Condition\""
},
{
"url" : "displaySequence",
"valueInteger" : 23
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "The client is exposed to immunosuppressive treatment"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client is exposed to immunosuppressive treatment\n@pseudocode: \"Potential contraindications\" = \"Exposed to immunosuppressive treatment\"\n@code: The client is exposed to immunosuppressive treatment-72\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"The client is exposed to immunosuppressive treatment\":\n Encounter.\"The client is exposed to immunosuppressive treatment\""
},
{
"url" : "displaySequence",
"valueInteger" : 24
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "Current Patient Age In Years"
},
{
"url" : "statement",
"valueString" : "/** \n * @dataElement Patient age in years\n */\ndefine \"Current Patient Age In Years\":\n AgeInYearsAt(Today)"
},
{
"url" : "displaySequence",
"valueInteger" : 25
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "Client's age is more than or equal to 1 year"
},
{
"url" : "statement",
"valueString" : "/*\n@input: Client's age is more than or equal to 1 year\n@pseudocode: \"Age\" ≥ 1 year\n@code: Client's age is more than or equal to 1 year-14\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"Client's age is more than or equal to 1 year\":\n Encounter.\"Current Patient Age In Years\" >= 1"
},
{
"url" : "displaySequence",
"valueInteger" : 26
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 2"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 2\n@pseudocode: '\"Immunization recommendation status\" = \"Further evaluation needed\"\n*/\ndefine \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 2\":\n Encounter.\"The client is exposed to immunosuppressive treatment\"\n and Encounter.\"Client's age is more than or equal to 1 year\""
},
{
"url" : "displaySequence",
"valueInteger" : 27
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note."
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note.\n@pseudocode: '\"Immunization recommendation status\" = \"Further evaluation needed\"\n*/\ndefine \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note.\":\n \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 1\"\n or \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 2\""
},
{
"url" : "displaySequence",
"valueInteger" : 28
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Guidance"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Guidance\n@guidance = Do not vaccinate client with BCG if the client had previous allergic reaction to any component of the vaccine\n@guidance = Do not vaccinate client with BCG if client is exposed to or receives immunosuppressive treatment\n*/\ndefine \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Guidance\":\n case\n when \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 1\" then 'Do not vaccinate client with BCG if the client had previous allergic reaction to any component of the vaccine'\n when \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Case 2\" then 'Do not vaccinate client with BCG if client is exposed to or receives immunosuppressive treatment'\n else ''\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 29
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Immunodeficiency syndromes Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Immunodeficiency syndromes\n*/\ndefine \"CI Immunodeficiency syndromes Observation\":\n \"Potential contraindications\" O\n where O.value ~ Concepts.\"CI-Immunodeficiency syndromes\""
},
{
"url" : "displaySequence",
"valueInteger" : 30
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Immunodeficiency syndromes Observation"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Observation for Immunodeficiency syndromes\n*/\ndefine \"CI Immunodeficiency syndromes Observation\":\n Elements.\"CI Immunodeficiency syndromes Observation\".encounterOrOnBefore(EncounterId, Today)"
},
{
"url" : "displaySequence",
"valueInteger" : 31
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "CI Immunodeficiency syndromes Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Immunodeficiency syndromes\n*/\ndefine \"CI Immunodeficiency syndromes Condition\":\n [Condition: Concepts.\"CI-Immunodeficiency syndromes\"]"
},
{
"url" : "displaySequence",
"valueInteger" : 32
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "CI Immunodeficiency syndromes Condition"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Condition for Immunodeficiency syndromes\n*/\ndefine \"CI Immunodeficiency syndromes Condition\":\n Elements.\"CI Immunodeficiency syndromes Condition\" C\n where C.prevalenceInterval() includes Today"
},
{
"url" : "displaySequence",
"valueInteger" : 33
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "The client has immunodeficiency syndromes"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client has immunodeficiency syndromes\n@pseudocode: \"Potential contraindications\" = \"Immunodeficiency syndromes\"\n*/\ndefine \"The client has immunodeficiency syndromes\":\n exists \"CI Immunodeficiency syndromes Observation\"\n or exists \"CI Immunodeficiency syndromes Condition\""
},
{
"url" : "displaySequence",
"valueInteger" : 34
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "The client has immunodeficiency syndromes"
},
{
"url" : "statement",
"valueString" : "/*\n@input: The client has immunodeficiency syndromes\n@pseudocode: \"Potential contraindications\" = \"Immunodeficiency syndromes\"\n@code: The client has immunodeficiency syndromes-60\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"The client has immunodeficiency syndromes\":\n Encounter.\"The client has immunodeficiency syndromes\""
},
{
"url" : "displaySequence",
"valueInteger" : 35
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination is contraindicated Case 1"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination is contraindicated Case 1\n@pseudocode: '\"Immunization recommendation status\" = \"Contraindicated\"\n*/\ndefine \"BCG vaccination is contraindicated Case 1\":\n Encounter.\"The client has immunodeficiency syndromes\""
},
{
"url" : "displaySequence",
"valueInteger" : 36
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "Client's age is less than 1 year"
},
{
"url" : "statement",
"valueString" : "/*\n@input: Client's age is less than 1 year\n@pseudocode: \"Age\" < 1 year\n@code: Client's age is less than 1 year-14\n@decision: IMMZ.D5.DT.BCG contraindications\n*/\ndefine \"Client's age is less than 1 year\":\n Encounter.\"Current Patient Age In Years\" < 1"
},
{
"url" : "displaySequence",
"valueInteger" : 37
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination is contraindicated Case 2"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination is contraindicated Case 2\n@pseudocode: '\"Immunization recommendation status\" = \"Contraindicated\"\n*/\ndefine \"BCG vaccination is contraindicated Case 2\":\n Encounter.\"The client is exposed to immunosuppressive treatment\"\n and Encounter.\"Client's age is less than 1 year\""
},
{
"url" : "displaySequence",
"valueInteger" : 38
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination is contraindicated"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination is contraindicated\n@pseudocode: '\"Immunization recommendation status\" = \"Contraindicated\"\n*/\ndefine \"BCG vaccination is contraindicated\":\n \"BCG vaccination is contraindicated Case 1\"\n or \"BCG vaccination is contraindicated Case 2\""
},
{
"url" : "displaySequence",
"valueInteger" : 39
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "BCG vaccination is contraindicated Guidance"
},
{
"url" : "statement",
"valueString" : "/*\n@output: BCG vaccination is contraindicated Guidance\n@guidance = Do not vaccinate client with BCG as BCG vaccination is contraindicated for clients with immunodeficiency syndromes\n@guidance = Do not vaccinate client with BCG as BCG vaccination is contraindicated for clients undergoing immunosuppressive treatment\n*/\ndefine \"BCG vaccination is contraindicated Guidance\":\n case\n when \"BCG vaccination is contraindicated Case 1\" then 'Do not vaccinate client with BCG as BCG vaccination is contraindicated for clients with immunodeficiency syndromes'\n when \"BCG vaccination is contraindicated Case 2\" then 'Do not vaccinate client with BCG as BCG vaccination is contraindicated for clients undergoing immunosuppressive treatment'\n else ''\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 40
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "Guidance"
},
{
"url" : "statement",
"valueString" : "/*\n@dynamicValue: Guidance\n*/\ndefine \"Guidance\":\n case \n when \"Bacille Calmette–Guérin (BCG) vaccination is contraindicated\" then \"Bacille Calmette–Guérin (BCG) vaccination is contraindicated Guidance\"\n when \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note.\" then \"BCG vaccination could be contraindicated. Clinical judgement is required. Create a clinical note. Guidance\"\n when \"BCG vaccination is contraindicated\" then \"BCG vaccination is contraindicated Guidance\" \n else ''\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 41
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZElements"
},
{
"url" : "name",
"valueString" : "Draft Medication Request for Patient"
},
{
"url" : "statement",
"valueString" : "/*\n@dataElement: Draft Medication Request for Patient\n*/\ndefine \"Draft Medication Request for Patient\":\n\t[MedicationRequest] MR where MR.status = 'draft' and MR.intent = 'proposal'\n\tsort by date from (authoredOn as FHIR.dateTime) desc"
},
{
"url" : "displaySequence",
"valueInteger" : 42
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZEncounterElements"
},
{
"url" : "name",
"valueString" : "Draft Medication Request for Patient"
},
{
"url" : "statement",
"valueString" : "/*\n@dataElement: Draft Medication Request for Patient\n*/\ndefine \"Draft Medication Request for Patient\":\n Elements.\"Draft Medication Request for Patient\" MR\n where MR.encounter.references(EncounterId) \n or MR.authoredOn.toInterval() same day or before Today\n \tsort by date from (authoredOn as FHIR.dateTime) desc"
},
{
"url" : "displaySequence",
"valueInteger" : 43
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGEncounterElements"
},
{
"url" : "name",
"valueString" : "Draft Medication Request for BCG dose"
},
{
"url" : "statement",
"valueString" : "/*\n@internal: Draft Medication Request for BCG dose\n*/\ndefine \"Draft Medication Request for BCG dose\":\n Encounter.\"Draft Medication Request for Patient\" MR\n where MR.medication in Concepts.\"BCG vaccines\""
},
{
"url" : "displaySequence",
"valueInteger" : 44
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "Draft Medication Request ID for BCG dose"
},
{
"url" : "statement",
"valueString" : "/*\n @dynamicValue: Draft Medication Request ID for BCG dose\n */\n define \"Draft Medication Request ID for BCG dose\":\n First(Encounter.\"Draft Medication Request for BCG dose\").id"
},
{
"url" : "displaySequence",
"valueInteger" : 45
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZD5DTBCGContraindicationsLogic"
},
{
"url" : "name",
"valueString" : "Has Guidance"
},
{
"url" : "statement",
"valueString" : "define \"Has Guidance\":\n \"Guidance\" is not null and \"Guidance\" != ''"
},
{
"url" : "displaySequence",
"valueInteger" : 46
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "complete"
},
{
"url" : "statement",
"valueString" : "define fluent function complete(observations List<Observation>):\n observations O where O.status in { 'final', 'amended', 'corrected' }"
},
{
"url" : "displaySequence",
"valueInteger" : 47
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value ObservationStatus): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 48
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToConcept"
},
{
"url" : "statement",
"valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 49
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCode"
},
{
"url" : "statement",
"valueString" : "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 50
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "references"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns true if the given reference is to the given resourceId\n@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference FHIR.Reference, resourceId String):\n resourceId = Last(Split(reference.reference, '/'))"
},
{
"url" : "displaySequence",
"valueInteger" : 51
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value string): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 52
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "prevalenceInterval"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the toInterval and toAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n (end of condition.abatementInterval()) abatementDate\n return \n\t if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]"
},
{
"url" : "displaySequence",
"valueInteger" : 53
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "abatementInterval"
},
{
"url" : "statement",
"valueString" : "// Was getting error on this for this particular choice set not being found\n\n\n/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine fluent function abatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of condition.onset.toInterval(), condition.recordedDate)\n else \n null"
},
{
"url" : "displaySequence",
"valueInteger" : 54
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value dateTime): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 55
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToInterval"
},
{
"url" : "statement",
"valueString" : "define function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]"
},
{
"url" : "displaySequence",
"valueInteger" : 56
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDate"
},
{
"url" : "statement",
"valueString" : "define function ToDate(value date): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 57
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToQuantity"
},
{
"url" : "statement",
"valueString" : "define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 58
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCalendarUnit"
},
{
"url" : "statement",
"valueString" : "define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 59
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "IMMZCommon"
},
{
"url" : "name",
"valueString" : "encounterOrOnBefore"
},
{
"url" : "statement",
"valueString" : "/**\n * @description: Gets observation from an encounter or on or before a date\n */\ndefine fluent function encounterOrOnBefore(observations List<Observation>, EncounterId String, beforeDate Date):\n observations O where\n (O.encounter.references(EncounterId)\n or O.effective.toInterval() starts same day or before beforeDate)"
},
{
"url" : "displaySequence",
"valueInteger" : 60
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value MedicationRequestStatus): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 61
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value MedicationRequestIntent): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 62
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "toInterval"
},
{
"url" : "statement",
"valueString" : "/*\nFrom FHIRCommon 4.1.0:\n*/\n\n/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else\n null as Interval<DateTime>\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 63
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value instant): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 64
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
}
],
"name" : "EffectiveDataRequirements",
"status" : "active",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "module-definition"
}
]
},
"relatedArtifact" : [
{
"type" : "depends-on",
"display" : "FHIR model information",
"resource" : "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library Encounter",
"resource" : "http://smart.who.int/immunizations/Library/IMMZD5DTBCGEncounterElements"
},
{
"type" : "depends-on",
"display" : "Library Encounter",
"resource" : "http://smart.who.int/immunizations/Library/IMMZEncounterElements"
},
{
"type" : "depends-on",
"display" : "Library Elements",
"resource" : "http://smart.who.int/immunizations/Library/IMMZElements"
},
{
"type" : "depends-on",
"display" : "Library WC",
"resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
},
{
"type" : "depends-on",
"display" : "Library FHIRHelpers",
"resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library Concepts",
"resource" : "http://smart.who.int/immunizations/Library/IMMZConcepts"
},
{
"type" : "depends-on",
"display" : "Library WE",
"resource" : "http://smart.who.int/immunizations/Library/WHOEncounterElements"
},
{
"type" : "depends-on",
"display" : "Library Elements",
"resource" : "http://smart.who.int/immunizations/Library/WHOElements"
},
{
"type" : "depends-on",
"display" : "Library Concepts",
"resource" : "http://smart.who.int/immunizations/Library/WHOConcepts"
},
{
"type" : "depends-on",
"display" : "Library Common",
"resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
},
{
"type" : "depends-on",
"display" : "Library Common",
"resource" : "http://smart.who.int/immunizations/Library/IMMZCommon"
},
{
"type" : "depends-on",
"display" : "Library WC",
"resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
},
{
"type" : "depends-on",
"display" : "Library FHIRHelpers",
"resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library Concepts",
"resource" : "http://smart.who.int/immunizations/Library/IMMZConcepts"
},
{
"type" : "depends-on",
"display" : "Code system IMMZD",
"resource" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"
},
{
"type" : "depends-on",
"display" : "Code system ConditionClinicalStatusCodes",
"resource" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
},
{
"type" : "depends-on",
"display" : "Code system LOINC",
"resource" : "http://loinc.org"
},
{
"type" : "depends-on",
"display" : "Value set BCG vaccines",
"resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE1"
}
],
"parameter" : [
{
"name" : "EncounterId",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Today",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "date"
},
{
"name" : "AsOf",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "date"
},
{
"name" : "Guidance",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "BCG vaccination is contraindicated",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Draft Medication Request ID for BCG dose",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "id"
},
{
"name" : "Has Guidance",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Bacille Calmette–Guérin (BCG) vaccination is contraindicated",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
}
],
"dataRequirement" : [
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value",
"encounter",
"effective"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE162",
"display" : "Currently pregnant"
}
]
}
]
},
{
"type" : "Patient",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE162",
"display" : "Currently pregnant"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "82810-3",
"display" : "Pregnancy status"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "82810-3",
"display" : "Pregnancy status"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"value",
"encounter",
"effective"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "82810-3",
"display" : "Pregnancy status"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE167",
"display" : "Severe allergic reactions"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE167",
"display" : "Severe allergic reactions"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE164",
"display" : "Exposed to immunosuppressive treatment"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE164",
"display" : "Exposed to immunosuppressive treatment"
}
]
}
]
},
{
"type" : "Patient",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE187",
"display" : "Immunodeficiency syndromes"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE187",
"display" : "Immunodeficiency syndromes"
}
]
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"status",
"intent"
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"status",
"intent",
"encounter",
"authoredOn"
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"status",
"intent",
"encounter",
"authoredOn",
"medication"
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE167",
"display" : "Severe allergic reactions"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE164",
"display" : "Exposed to immunosuppressive treatment"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"value"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE161",
"display" : "Potential contraindications"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"code"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D",
"code" : "DE187",
"display" : "Immunodeficiency syndromes"
}
]
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"status",
"intent",
"encounter",
"authoredOn",
"medication"
]
}
]
}
],
"extension" : [
{
"url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
"valueCode" : "computable"
},
{
"url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
"valueCanonical" : "#effective-data-requirements"
}
],
"url" : "http://smart.who.int/immunizations/PlanDefinition/IMMZD5DTBCGContraindications",
"version" : "0.2.0",
"name" : "IMMZD5DTBCGContraindications",
"title" : "IMMZ.D5.DT.BCG contraindications",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
"code" : "eca-rule"
}
]
},
"status" : "draft",
"experimental" : false,
"date" : "2026-03-03T13:07:11+00:00",
"publisher" : "WHO",
"contact" : [
{
"name" : "WHO",
"telecom" : [
{
"system" : "url",
"value" : "http://who.int"
}
]
}
],
"description" : "IMMZ.D5.DT.BCG contraindications\nIMMZ.D5.DT.BCG contraindications",
"relatedArtifact" : [
{
"type" : "citation",
"citation" : "WHO recommendations for routine immunization - summary tables (January 2025)"
}
],
"library" : [
🔗 "http://smart.who.int/immunizations/Library/IMMZD5DTBCGContraindicationsLogic"
],
"action" : [
{
"title" : "Check for contraindications before administering the vaccine(s) due",
"description" : "Contraindication for BCG immunization",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"description" : "BCG vaccination is contraindicated",
"language" : "text/cql-identifier",
"expression" : "BCG vaccination is contraindicated"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "update"
}
]
},
"definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD5DTMR",
"dynamicValue" : [
{
"path" : "id",
"expression" : {
"description" : "Draft Medication Request ID for BCG dose",
"language" : "text/cql-identifier",
"expression" : "Draft Medication Request ID for BCG dose"
}
},
{
"path" : "medication",
"expression" : {
"language" : "text/cql-expression",
"expression" : "Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE1', display: 'BCG vaccines' } }, display: 'BCG vaccines' }"
}
}
]
},
{
"title" : "Check for contraindications before administering the vaccine(s) due",
"description" : "Contraindication for BCG immunization",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"description" : "Bacille Calmette–Guérin (BCG) vaccination is contraindicated",
"language" : "text/cql-identifier",
"expression" : "Bacille Calmette–Guérin (BCG) vaccination is contraindicated"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "update"
}
]
},
"definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD5DTMR",
"dynamicValue" : [
{
"path" : "id",
"expression" : {
"description" : "Draft Medication Request ID for BCG dose",
"language" : "text/cql-identifier",
"expression" : "Draft Medication Request ID for BCG dose"
}
},
{
"path" : "medication",
"expression" : {
"language" : "text/cql-expression",
"expression" : "Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE1', display: 'BCG vaccines' } }, display: 'BCG vaccines' }"
}
}
]
},
{
"title" : "Check for Guidance for the patient regarding IMMZ.D5.DT.BCG contraindications.",
"description" : "Show Guidance for the patient regarding IMMZ.D5.DT.BCG contraindications.",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"description" : "Has Guidance",
"language" : "text/cql-identifier",
"expression" : "Has Guidance"
}
}
],
"definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR",
"dynamicValue" : [
{
"path" : "status",
"expression" : {
"language" : "text/cql-expression",
"expression" : "'active'"
}
},
{
"path" : "payload.contentString",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Guidance"
}
},
{
"path" : "category.coding",
"expression" : {
"description" : "Category of communication",
"language" : "text/cql-expression",
"expression" : "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }"
}
},
{
"path" : "priority",
"expression" : {
"description" : "Alert priority",
"language" : "text/cql-expression",
"expression" : "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }"
}
}
]
}
]
}