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 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix loinc: <https://loinc.org/rdf/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:PlanDefinition ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "IMMZD2DTDTPPregnancyStartingWith4Doses"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition> ] [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition> ] [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div [ fhir:v "<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;\">IMMZD2DTDTPPregnancyStartingWith4Doses</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-IMMZD2DTDTPPregnancyStartingWith4Doses.html\">IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses</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.D2.DT.DTP.Pregnancy starting with 4 doses</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.D2.DT.DTP.Pregnancy starting with 4 doses\nDiphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses</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-IMMZD2DTDTPPregnancyStartingWith4DosesLogic.html\">IMMZD2DTDTPPregnancyStartingWith4DosesLogic</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> Determine if the client is due for DTP.:</b> Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDiphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n Client is due for tetanus and diphtheria booster dose\n \n <i>(Client is due for tetanus and diphtheria booster dose)</i>\n <br/>\n \n \n \n \n <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTMR.html\">IMMZD2DTMR</a><br/>\n \n <i>Dynamic Values:</i><br/>\n \n status: <i>('draft')</i>\n <br/>\n \n intent: <i>('proposal')</i>\n <br/>\n \n medication: <i>(Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE28', display: 'Tetanus and diphtheria-containing vaccines' } }, display: 'Tetanus and diphtheria-containing 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.D2.DT.DTP.Pregnancy starting with 4 doses.:</b> Show Guidance for the patient regarding IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses.\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>"^^rdf:XMLLiteral ] ] ; # fhir:contained ( [ a fhir:Library ; fhir:id [ fhir:v "effective-data-requirements" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE161" ] ; fhir:display [ fhir:v "Potential contraindications" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE162" ] ; fhir:display [ fhir:v "Currently pregnant" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ; fhir:code [ fhir:v "active" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ; fhir:code [ fhir:v "recurrence" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ; fhir:code [ fhir:v "relapse" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding, loinc:82810-3 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "82810-3" ] ; fhir:display [ fhir:v "Pregnancy status" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode> ] ; fhir:value [ a fhir:Coding, loinc:LA15173-0 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "LA15173-0" ] ; fhir:display [ fhir:v "Pregnant" ] ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/**\n * @dataElement All Doses Administered to Patient\n */\ndefine \"Doses Administered to Patient\":\n [Immunization] I\n where I.status = 'completed'\n and I.isSubpotent is not true" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 0 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "DTP Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: DTP containing Doses Administered to Patient\n*/\ndefine \"DTP Doses Administered to Patient\":\n Elements.\"Doses Administered to Patient\" I\n where\n I.vaccineCode in Concepts.\"DTP-containing vaccines\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 1 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "DTP Primary Series Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: DTP containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"DTP Primary Series Doses Administered to Patient\":\n \"DTP Doses Administered to Patient\".seriesPrimary()" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 2 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "DTP Primary Series Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: DTP containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"DTP Primary Series Doses Administered to Patient\":\n DTPElements.\"DTP Primary Series Doses Administered to Patient\".onOrBefore(Today)" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 3 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Number of DTP Primary Series Doses Administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Number of DTP Primary Series doses\n*/\ndefine \"Number of DTP Primary Series Doses Administered\":\n Count(\"DTP Primary Series Doses Administered to Patient\")" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 4 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Three DTP primary series doses were administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: Three DTP primary series doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 3\n@code: Three DTP primary series doses were administered-123\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Three DTP primary series doses were administered\":\n \"Number of DTP Primary Series Doses Administered\" = 3" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 5 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Td Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Td Doses Administered to Patient\n*/\ndefine \"Td Doses Administered to Patient\":\n Elements.\"Doses Administered to Patient\" I\n where\n I.vaccineCode in Concepts.\"Tetanus and diphtheria-containing vaccines\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 6 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Td Booster Series Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Td Booster Series Doses Administered to Patient\n*/\ndefine \"Td Booster Series Doses Administered to Patient\":\n \"Td Doses Administered to Patient\".seriesBooster()" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 7 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Td Booster Series Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Td Booster Series Doses Administered to Patient\n*/\ndefine \"Td Booster Series Doses Administered to Patient\":\n DTPElements.\"Td Booster Series Doses Administered to Patient\".onOrBefore(Today)" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 8 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Number of Td Booster Series Doses Administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Number of Td Booster Series Doses Administered\n*/\ndefine \"Number of Td Booster Series Doses Administered\":\n Count(\"Td Booster Series Doses Administered to Patient\")" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 9 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "One tetanus and diphtheria booster dose was administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: One tetanus and diphtheria booster dose was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\n@code: One tetanus and diphtheria booster dose was administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"One tetanus and diphtheria booster dose was administered\":\n \"Number of Td Booster Series Doses Administered\" = 1" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 10 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Potential contraindications" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Potential contraindications observations\n*/\ndefine \"Potential contraindications\":\n ([Observation: Concepts.\"Potential contraindications\"]).complete()" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 11 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "CI Currently pregnant Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Observation for currently pregnant\n*/\ndefine \"CI Currently pregnant Observation\":\n \"Potential contraindications\" O\n where O.value ~ Concepts.\"CI-Currently pregnant\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 12 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "CI Currently pregnant Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 13 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "CI Currently pregnant Condition" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Condition for currently pregnant\n*/\ndefine \"CI Currently pregnant Condition\":\n [Condition: Concepts.\"CI-Currently pregnant\"]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 14 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "CI Currently pregnant Condition" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 15 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Pregnancy Status Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Pregnancy Status Observation\":\n [Observation: Concepts.\"Pregnancy status\"] O\n where O.status in { 'final', 'amended', 'corrected' }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 16 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Pregnant Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Pregnant Observation\":\n \"Pregnancy Status Observation\" O\n where O.value ~ Concepts.\"Pregnant\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 17 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Pregnant Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 18 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "The client is pregnant" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\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\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 19 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is currently pregnant" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: Client is currently pregnant\n@pseudocode: \"Currently pregnant\" = TRUE\n@code: Client is currently pregnant-27\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Client is currently pregnant\":\n Encounter.\"The client is pregnant\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 20 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is due for tetanus and diphtheria booster dose Case 1" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is due for tetanus and diphtheria booster dose Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Case 1\":\n Encounter.\"Three DTP primary series doses were administered\"\n and Encounter.\"One tetanus and diphtheria booster dose was administered\"\n and Encounter.\"Client is currently pregnant\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 21 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Two tetanus and diphtheria booster doses were administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: Two tetanus and diphtheria booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 2\n@code: Two tetanus and diphtheria booster doses were administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Two tetanus and diphtheria booster doses were administered\":\n \"Number of Td Booster Series Doses Administered\" = 2" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 22 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Td Doses Administered to Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Td Doses Administered to Patient\n*/\ndefine \"Td Doses Administered to Patient\":\n DTPElements.\"Td Doses Administered to Patient\".onOrBefore(Today)" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 23 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Date of Latest Td Dose" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@internal: Date of Latest Td Dose\n*/\ndefine \"Date of Latest Td Dose\":\n date from start of \"Td Doses Administered to Patient\".mostRecent().occurrence.toInterval()" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 24 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "The latest tetanus and diphtheria dose was administered less than 1 year ago" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: The latest tetanus and diphtheria dose was administered less than 1 year ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\") < 1 year\n@code: The latest tetanus and diphtheria dose was administered less than 1 year ago-131\n@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"The latest tetanus and diphtheria dose was administered less than 1 year ago\":\n \"Date of Latest Td Dose\" is not null\n and duration in years between \"Date of Latest Td Dose\" and Today < 1" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 25 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "The latest tetanus and diphtheria dose was administered more than 1 year ago" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: The latest tetanus and diphtheria dose was administered more than 1 year ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\") ≥ 1 year\n@code: The latest tetanus and diphtheria dose was administered more than 1 year ago-131\n@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"The latest tetanus and diphtheria dose was administered more than 1 year ago\":\n not(\"The latest tetanus and diphtheria dose was administered less than 1 year ago\")" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 26 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is due for tetanus and diphtheria booster dose Case 2" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is due for tetanus and diphtheria booster dose Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Case 2\":\n Encounter.\"Three DTP primary series doses were administered\"\n and Encounter.\"Two tetanus and diphtheria booster doses were administered\"\n and Encounter.\"The latest tetanus and diphtheria dose was administered more than 1 year ago\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 27 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is due for tetanus and diphtheria booster dose" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose\":\n \"Client is due for tetanus and diphtheria booster dose Case 1\"\n or \"Client is due for tetanus and diphtheria booster dose Case 2\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 28 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is due for tetanus and diphtheria booster dose Guidance" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is due for tetanus and diphtheria booster dose Guidance\n@guidance = Should vaccinate client with second tetanus and diphtheria booster dose as three DTP primary series doses and one tetanus and diphtheria booster dose were administered and client is currently pregnant. \nCheck for contraindications.\n@guidance = Should vaccinate client with third tetanus and diphtheria booster dose as the latest tetanus and diphtheria dose was administered more than 1 year ago. This dose should be administered at least 1 year after second booster dose or during next pregnancy. \nCheck for contraindications.\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Guidance\":\n case\n when \"Client is due for tetanus and diphtheria booster dose Case 1\" then 'Should vaccinate client with second tetanus and diphtheria booster dose as three DTP primary series doses and one tetanus and diphtheria booster dose were administered and client is currently pregnant. \nCheck for contraindications.'\n when \"Client is due for tetanus and diphtheria booster dose Case 2\" then 'Should vaccinate client with third tetanus and diphtheria booster dose as the latest tetanus and diphtheria dose was administered more than 1 year ago. This dose should be administered at least 1 year after second booster dose or during next pregnancy. \nCheck for contraindications.'\n else ''\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 29 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is not due for tetanus and diphtheria booster dose" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is not due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose\":\n Encounter.\"Three DTP primary series doses were administered\"\n and Encounter.\"Two tetanus and diphtheria booster doses were administered\"\n and Encounter.\"The latest tetanus and diphtheria dose was administered less than 1 year ago\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 30 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Client is not due for tetanus and diphtheria booster dose Guidance" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Client is not due for tetanus and diphtheria booster dose Guidance\n@guidance: Should not vaccinate client with third tetanus and diphtheria booster dose as the latest tetanus and booster dose was administered less than 1 year ago. This dose should be administered at least 1 year after second booster dose or during next pregnancy. \nCheck for any other vaccines due and inform the caregiver of when to come back for third tetanus and diphtheria booster dose.\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose Guidance\":\n 'Should not vaccinate client with third tetanus and diphtheria booster dose as the latest tetanus and booster dose was administered less than 1 year ago. This dose should be administered at least 1 year after second booster dose or during next pregnancy. \nCheck for any other vaccines due and inform the caregiver of when to come back for third tetanus and diphtheria booster dose.'" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 31 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPEncounterElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Three tetanus and diphtheria booster doses were administered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@input: Three tetanus and diphtheria booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 3\n@code: Three tetanus and diphtheria booster doses were administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Three tetanus and diphtheria booster doses were administered\":\n \"Number of Td Booster Series Doses Administered\" = 3" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 32 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Tetanus and diphtheria immunization schedule is complete" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Tetanus and diphtheria immunization schedule is complete\n@pseudocode: \"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Tetanus and diphtheria immunization schedule is complete\":\n Encounter.\"Three DTP primary series doses were administered\"\n and Encounter.\"Three tetanus and diphtheria booster doses were administered\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 33 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Tetanus and diphtheria immunization schedule is complete Guidance" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@output: Tetanus and diphtheria immunization schedule is complete Guidance\n@guidance: Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered.\nCheck for any other vaccines due.\n*/\ndefine \"Tetanus and diphtheria immunization schedule is complete Guidance\":\n 'Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered.\nCheck for any other vaccines due.'" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 34 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Guidance" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@dynamicValue: Guidance\n*/\ndefine \"Guidance\":\n case \n when \"Client is due for tetanus and diphtheria booster dose\" then \"Client is due for tetanus and diphtheria booster dose Guidance\"\n when \"Client is not due for tetanus and diphtheria booster dose\" then \"Client is not due for tetanus and diphtheria booster dose Guidance\"\n when \"Tetanus and diphtheria immunization schedule is complete\" then \"Tetanus and diphtheria immunization schedule is complete Guidance\" \n else ''\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 35 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZD2DTDTPPregnancyStartingWith4DosesLogic" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Has Guidance" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Has Guidance\":\n \"Guidance\" is not null and \"Guidance\" != ''" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 36 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "onOrBefore" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/**\n * @description: Gets immunizations on or before a date\n */\ndefine fluent function onOrBefore(immunizations List<Immunization>, beforeDate Date):\n immunizations I where\n I.occurrence.toInterval() same day or before beforeDate" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 37 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "seriesPrimary" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/**\n * @description: Gets the doses from the primary series\n */\ndefine fluent function seriesPrimary(immunizations List<Immunization>):\n immunizations I where\n exists( I.protocolApplied pa where pa.series = 'Primary series' )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 38 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToString(value string): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 39 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToString(value ImmunizationStatus): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 40 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToBoolean" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToBoolean(value boolean): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 41 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToConcept" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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 }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 42 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToCode" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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 }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 43 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "IMMZCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "seriesBooster" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/**\n * @description: Gets the doses from the Booster series\n */\ndefine fluent function seriesBooster(immunizations List<Immunization>):\n immunizations I where\n exists( I.protocolApplied pa where pa.series = 'Booster dose' )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 44 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "complete" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define fluent function complete(observations List<Observation>):\n observations O where O.status in { 'final', 'amended', 'corrected' }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 45 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToString(value ObservationStatus): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 46 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "references" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\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, '/'))" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 47 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "prevalenceInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\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 if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 48 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "abatementInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "// 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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 49 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToDateTime" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToDateTime(value dateTime): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 50 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 51 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToDate" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToDate(value date): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 52 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToQuantity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 53 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToCalendarUnit" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "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" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 54 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "WHOCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "mostRecent" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define fluent function mostRecent(immunizations List<Immunization>):\n Last(\n immunizations I\n sort by start of occurrence.toInterval()\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 55 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition> ] ] ) ; fhir:name [ fhir:v "EffectiveDataRequirements" ] ; fhir:status [ fhir:v "active" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/library-type> ] ; fhir:code [ fhir:v "module-definition" ] ] ) ] ; ( fhir:relatedArtifact [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "FHIR model information" ] ; fhir:resource [ fhir:v "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ; fhir:l <http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo?version=4.0.1> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Encounter" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Common" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZCommon> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library WC" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOCommon> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library DTPElements" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ; fhir:l <http://fhir.org/guides/cqf/common/Library/FHIRHelpers?version=4.0.1> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Elements" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ; fhir:l <http://fhir.org/guides/cqf/common/Library/FHIRHelpers?version=4.0.1> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Concepts" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZConcepts"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZConcepts> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Encounter" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZEncounterElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZEncounterElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Elements" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library WC" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOCommon> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Concepts" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/IMMZConcepts"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZConcepts> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library WE" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOEncounterElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOEncounterElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Elements" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOElements"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOElements> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Concepts" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOConcepts"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOConcepts> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library Common" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOCommon> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library WC" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/Library/WHOCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/WHOCommon> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system IMMZD" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system LOINC" ] ; fhir:resource [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set DTP-containing vaccines" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Tetanus and diphtheria-containing vaccines" ] ; fhir:resource [ fhir:v "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28> ] ] ) ; ( fhir:parameter [ fhir:name [ fhir:v "Today" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "date" ] ] [ fhir:name [ fhir:v "EncounterId" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:name [ fhir:v "AsOf" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "date" ] ] [ fhir:name [ fhir:v "Guidance" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "string" ] ] [ fhir:name [ fhir:v "Client is due for tetanus and diphtheria booster dose" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] [ fhir:name [ fhir:v "Has Guidance" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] ) ; ( fhir:dataRequirement [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE161" ] ; fhir:display [ fhir:v "Potential contraindications" ] ] ) ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE161" ] ; fhir:display [ fhir:v "Potential contraindications" ] ] ) ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "value" ] [ fhir:v "encounter" ] [ fhir:v "effective" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE161" ] ; fhir:display [ fhir:v "Potential contraindications" ] ] ) ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Condition> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE162" ] ; fhir:display [ fhir:v "Currently pregnant" ] ] ) ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Patient> ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Condition> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ fhir:system [ fhir:v "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/CodeSystem/IMMZ.D> ] ; fhir:code [ fhir:v "DE162" ] ; fhir:display [ fhir:v "Currently pregnant" ] ] ) ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ a loinc:82810-3 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "82810-3" ] ; fhir:display [ fhir:v "Pregnancy status" ] ] ) ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ a loinc:82810-3 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "82810-3" ] ; fhir:display [ fhir:v "Pregnancy status" ] ] ) ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "value" ] [ fhir:v "encounter" ] [ fhir:v "effective" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ a loinc:82810-3 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "82810-3" ] ; fhir:display [ fhir:v "Pregnancy status" ] ] ) ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] [ fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Immunization> ] ) ; ( fhir:mustSupport [ fhir:v "status" ] [ fhir:v "isSubpotent" ] [ fhir:v "vaccineCode" ] ) ] ) ] ) ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability> ] ; fhir:value [ a fhir:Code ; fhir:v "computable" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements> ] ; fhir:value [ a fhir:Canonical ; fhir:v "#effective-data-requirements"^^xsd:anyURI ; fhir:l <#effective-data-requirements> ] ] ) ; # fhir:url [ fhir:v "http://smart.who.int/immunizations/PlanDefinition/IMMZD2DTDTPPregnancyStartingWith4Doses"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/PlanDefinition/IMMZD2DTDTPPregnancyStartingWith4Doses> ] ; # fhir:version [ fhir:v "0.2.0"] ; # fhir:name [ fhir:v "IMMZD2DTDTPPregnancyStartingWith4Doses"] ; # fhir:title [ fhir:v "IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses"] ; # fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/plan-definition-type"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/plan-definition-type> ] ; fhir:code [ fhir:v "eca-rule" ] ] ) ] ; # fhir:status [ fhir:v "draft"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2026-03-03T13:07:11+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "WHO"] ; # fhir:contact ( [ fhir:name [ fhir:v "WHO" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://who.int" ] ] ) ] ) ; # fhir:description [ fhir:v "IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses\nDiphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"] ; # fhir:relatedArtifact ( [ fhir:type [ fhir:v "citation" ] ; fhir:citation [ fhir:v "WHO recommendations for routine immunization - summary tables (January 2025)" ] ] ) ; # fhir:library ( [ fhir:v "http://smart.who.int/immunizations/Library/IMMZD2DTDTPPregnancyStartingWith4DosesLogic"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZD2DTDTPPregnancyStartingWith4DosesLogic> ] ) ; # fhir:action ( [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale> ] ; fhir:value [ a fhir:Markdown ; fhir:v "Pregnant women who received 4 tetanus-containing vaccines doses during childhood or pre-adulthood \n need only 1 booster dose, which should be given at the first opportunity. To provide lifelong protection, a sixth \n dose would be needed at least 1 year after the fifth dose, or during the next pregnancy. From 7 years of age, \n only tetanus toxoid with reduced diphtheria toxoid (Td) combinations should be used. Age-appropriate combinations-containing \n pertussis vaccine with reduced diphtheria toxoid are also available. Only acellular pertussis (aP)-containing vaccines should \n be used for vaccination of persons aged 7 years and older." ] ] ) ; fhir:title [ fhir:v "Determine if the client is due for DTP." ] ; fhir:description [ fhir:v "Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDiphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses" ] ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:description [ fhir:v "Client is due for tetanus and diphtheria booster dose" ] ; fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Client is due for tetanus and diphtheria booster dose" ] ] ] ) ; fhir:definition [ a fhir:Canonical ; fhir:v "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR> ] ; ( fhir:dynamicValue [ fhir:path [ fhir:v "status" ] ; fhir:expression [ fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "'draft'" ] ] ] [ fhir:path [ fhir:v "intent" ] ; fhir:expression [ fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "'proposal'" ] ] ] [ fhir:path [ fhir:v "medication" ] ; fhir:expression [ fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE28', display: 'Tetanus and diphtheria-containing vaccines' } }, display: 'Tetanus and diphtheria-containing vaccines' }" ] ] ] ) ] [ fhir:title [ fhir:v "Check for Guidance for the patient regarding IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses." ] ; fhir:description [ fhir:v "Show Guidance for the patient regarding IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses." ] ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:description [ fhir:v "Has Guidance" ] ; fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Has Guidance" ] ] ] ) ; fhir:definition [ a fhir:Canonical ; fhir:v "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR> ] ; ( fhir:dynamicValue [ fhir:path [ fhir:v "status" ] ; fhir:expression [ fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "'active'" ] ] ] [ fhir:path [ fhir:v "payload.contentString" ] ; fhir:expression [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Guidance" ] ] ] [ fhir:path [ fhir:v "category.coding" ] ; fhir:expression [ fhir:description [ fhir:v "Category of communication" ] ; fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ] ] ] [ fhir:path [ fhir:v "priority" ] ; fhir:expression [ fhir:description [ fhir:v "Alert priority" ] ; fhir:language [ fhir:v "text/cql-expression" ] ; fhir:expression [ fhir:v "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ] ] ] ) ] ) . #
IG © 2023+ WHO. Package smart.who.int.immunizations#0.2.0 based on FHIR 4.0.1. Generated 2026-03-03
Links: Table of Contents |
QA Report
| Version History | License