WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 1.0.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/132/merge and changes regularly. See the Directory of published versions
| Draft as of 2026-03-31 |
@prefix fhir: <http://hl7.org/fhir/> . @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:Library ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "IMMZCommon"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary> ] [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary> ] [ fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library> ] [ fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module> ] ) ] ; # 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 \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">IMMZCommon</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">IMMZCommon</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">1.0.0</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Library-IMMZCommon.html\">IMMZCommon</a></td>\n </tr>\n \n\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.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>logic-library</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-31 13:54:17+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>This library defines common terminologies and functions used throughout the Immunization CPG</p>\n</div></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\n \n <tr>\n <th scope=\"row\"><b>Related Artifacts: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p><b>Dependencies</b></p>\n <ul>\n \n <li><a href=\"Library-WHOCommon.html\">WHOCommon</a></li>\n \n </ul>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Data Requirements:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>\n \n <tr>\n <th>Medication</th>\n <th>http://hl7.org/fhir/StructureDefinition/Medication</th>\n <th/>\n <th>\n \n </th>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n \n <tr>\n <td colspan=\"2\">\n <table>\n <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n <tr><td><pre><code class=\"language-cql\">library IMMZCommon#xD;\n#xD;\nusing FHIR version '4.0.1'#xD;\n#xD;\ninclude FHIRHelpers version '4.0.1'#xD;\ninclude WHOCommon called WC#xD;\n#xD;\n/**#xD;\n * @description Fetches a singleton protocol applied from an immunization#xD;\n * @comment The protocol list from the immunization#xD;\n */#xD;\ndefine function Only(protocols List<FHIR.Immunization.ProtocolApplied>):#xD;\n singleton from protocols#xD;\n#xD;\n/**#xD;\n * @description Fetches a singleton protocol applied from an immunization#xD;\n * @comment The protocol list from the immunization#xD;\n */#xD;\ndefine fluent function only(protocols List<FHIR.Immunization.ProtocolApplied>):#xD;\n singleton from protocols#xD;\n#xD;\n/**#xD;\n * @description Takes the date choice of a date/string choice (for Immunization date)#xD;\n */#xD;\ndefine function ToDate(choice Choice<FHIR.date, FHIR.string>):#xD;\n case#xD;\n when choice is FHIR.date then#xD;\n choice as FHIR.date#xD;\n else#xD;\n Message(null as FHIR.date, true, '1', 'Error', 'Cannot compute a date from a String value')#xD;\n end#xD;\n#xD;\n/**#xD;\n * @description Takes the date choice of a date/string choice (for Immunization date)#xD;\n */#xD;\ndefine function ToDateTime(choice Choice<FHIR.dateTime, FHIR.string>):#xD;\n case#xD;\n when choice is FHIR.dateTime then#xD;\n choice as FHIR.dateTime#xD;\n else#xD;\n Message(null as FHIR.dateTime, true, '1', 'Error', 'Cannot compute a date from a String value')#xD;\n end#xD;\n#xD;\n#xD;\n/**#xD;\n * @description Takes a choice of FHIR.string and FHIR.positiveInt and ensures the result is a FHIR.positiveInt#xD;\n */#xD;\ndefine function ToPositiveInt(choice Choice<FHIR.positiveInt, FHIR.string>):#xD;\n case#xD;\n when choice is FHIR.positiveInt then#xD;\n choice as FHIR.positiveInt#xD;\n else#xD;\n Message(null as FHIR.positiveInt, true, '1', 'Error', 'Cannot compute a positive from a String value') // TODO: I'm sure that this is supported somehow?#xD;\n end#xD;\n#xD;\n#xD;\n/**#xD;\n * @description Takes a choice between a Medication and a CodeableConcept and returns just the code of the medication#xD;\n */#xD;\ndefine function ExtractMedicationCode(choice Choice<FHIR.CodeableConcept, FHIR.Reference>):#xD;\n case#xD;\n when choice is FHIR.CodeableConcept then#xD;\n choice as FHIR.CodeableConcept#xD;\n when choice is FHIR.Reference then#xD;\n First([Medication] M #xD;\n where M.id = Last(Split(choice.reference, '/'))#xD;\n return M.code as FHIR.CodeableConcept)#xD;\n else#xD;\n Message(null as FHIR.CodeableConcept, true, '1', 'Error', 'Cannot compute a medication code') // TODO: I'm sure that this is supported somehow?#xD;\n end#xD;\n#xD;\n#xD;\n/**#xD;\n * @description Takes a choice between a Medication and a CodeableConcept and returns just the code of the medication#xD;\n */#xD;\ndefine function ExtractMedicationInitiationDate(choice Choice<FHIR.dateTime, FHIR.Period>):#xD;\n case#xD;\n when choice is FHIR.Period then#xD;\n start of (choice as FHIR.Period)#xD;\n when choice is FHIR.dateTime then#xD;\n choice as FHIR.dateTime#xD;\n else#xD;\n Message(null as FHIR.dateTime, true, '1', 'Error', 'Cannot compute medication treatment initiation date') // TODO: I'm sure that this is supported somehow?#xD;\n end#xD;\n#xD;\n/**#xD;\n * @description: Gets the type of antigen dose extension value from an Immunization#xD;\n */#xD;\ndefine fluent function typeOfDose(immz Immunization):#xD;\n (First(#xD;\n immz.extension E where E.url = 'http://smart.who.int/immunizations/StructureDefinition/IMMZTypeOfDose'#xD;\n )).value as FHIR.CodeableConcept#xD;\n#xD;\n/**#xD;\n * @description: Gets the type of antigen dose extension value from an Immunization#xD;\n */#xD;\ndefine fluent function brand(immz Immunization):#xD;\n (First(#xD;\n immz.extension E where E.url = 'http://smart.who.int/immunizations/StructureDefinition/IMMZVaccineBrand'#xD;\n )).value as FHIR.CodeableConcept#xD;\n#xD;\n/**#xD;\n * @description: Gets a given immunization from a list that matches the dose number#xD;\n */#xD;\ndefine fluent function getDose(immunizations List<Immunization>, doseNumber String):#xD;\n immunizations I where#xD;\n exists( I.protocolApplied pa where pa.doseNumber = doseNumber )#xD;\n#xD;\n/**#xD;\n * @description: Gets a given immunization from a list that matches the dose number#xD;\n */#xD;\ndefine fluent function getDose(immunization Immunization, doseNumber String):#xD;\n immunization I where#xD;\n exists( I.protocolApplied pa where pa.doseNumber = doseNumber )#xD;\n#xD;\n/**#xD;\n * @description: Gets immunizations on or before a date#xD;\n */#xD;\ndefine fluent function onOrBefore(immunizations List<Immunization>, beforeDate Date):#xD;\n immunizations I where#xD;\n I.occurrence.toInterval() same day or before beforeDate#xD;\n#xD;\n/**#xD;\n * @description: Gets the series doses from an immunization#xD;\n */#xD;\ndefine fluent function seriesDoses(immunization Immunization):#xD;\n First(immunization.protocolApplied pa where pa.seriesDoses is not null).seriesDoses#xD;\n#xD;\n/**#xD;\n * @description: Gets observation from an encounter or on or before a date#xD;\n */#xD;\ndefine fluent function encounterOrOnBefore(observations List<Observation>, EncounterId String, beforeDate Date):#xD;\n observations O where#xD;\n (O.encounter.references(EncounterId)#xD;\n or O.effective.toInterval() starts same day or before beforeDate)#xD;\n#xD;\n/**#xD;\n * @description: Gets the doses from the primary series#xD;\n */#xD;\ndefine fluent function seriesPrimary(immunizations List<Immunization>):#xD;\n immunizations I where#xD;\n exists( I.protocolApplied pa where pa.series = 'Primary series' )#xD;\n#xD;\n/**#xD;\n * @description: Gets the doses from the dose 0 series#xD;\n */#xD;\ndefine fluent function seriesDose0(immunizations List<Immunization>):#xD;\n immunizations I where#xD;\n exists( I.protocolApplied pa where pa.series = 'Dose 0' )#xD;\n#xD;\n/**#xD;\n * @description: Gets the doses from the Booster series#xD;\n */#xD;\ndefine fluent function seriesBooster(immunizations List<Immunization>):#xD;\n immunizations I where#xD;\n exists( I.protocolApplied pa where pa.series = 'Booster dose' )#xD;\n#xD;\n/**#xD;\n * @description: Gets the doses from the Supplementary series#xD;\n */#xD;\ndefine fluent function seriesSupplementary(immunizations List<Immunization>):#xD;\n immunizations I where#xD;\n exists( I.protocolApplied pa where pa.series = 'Supplementary dose' )#xD;\n#xD;\n/**#xD;\n * @description: Sorts a list and returns the requested index#xD;\n */#xD;\ndefine fluent function sortedIndex(immunizations List<Immunization>, idx Integer):#xD;\n if exists( immunizations ) then#xD;\n (immunizations I sort by start of occurrence.toInterval())[idx]#xD;\n else null#xD;\n</code></pre></td></tr>\n </table>\n </td>\n </tr>\n \n \n \n </table>\n</div>\n</div>"^^rdf:XMLLiteral ] ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability> ] ; fhir:value [ a fhir:Code ; fhir:v "computable" ] ] ) ; # fhir:url [ fhir:v "http://smart.who.int/immunizations/Library/IMMZCommon"^^xsd:anyURI ; fhir:l <http://smart.who.int/immunizations/Library/IMMZCommon> ] ; # fhir:version [ fhir:v "1.0.0"] ; # fhir:name [ fhir:v "IMMZCommon"] ; # fhir:title [ fhir:v "IMMZCommon"] ; # fhir:status [ fhir:v "draft"] ; # fhir:experimental [ fhir:v false] ; # 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 "logic-library" ] ] ) ] ; # fhir:date [ fhir:v "2026-03-31T13:54:17+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 "This library defines common terminologies and functions used throughout the Immunization CPG"] ; # fhir:relatedArtifact ( [ 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:dataRequirement ( [ fhir:type [ fhir:v "Medication" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Medication> ] ) ] ) ; # fhir:content ( [ fhir:contentType [ fhir:v "text/cql" ] ; fhir:data [ fhir:v "bGlicmFyeSBJTU1aQ29tbW9uDQoNCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnDQoNCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnDQppbmNsdWRlIFdIT0NvbW1vbiBjYWxsZWQgV0MNCg0KLyoqDQogKiBAZGVzY3JpcHRpb24gRmV0Y2hlcyBhIHNpbmdsZXRvbiBwcm90b2NvbCBhcHBsaWVkIGZyb20gYW4gaW1tdW5pemF0aW9uDQogKiBAY29tbWVudCBUaGUgcHJvdG9jb2wgbGlzdCBmcm9tIHRoZSBpbW11bml6YXRpb24NCiAqLw0KZGVmaW5lIGZ1bmN0aW9uIE9ubHkocHJvdG9jb2xzIExpc3Q8RkhJUi5JbW11bml6YXRpb24uUHJvdG9jb2xBcHBsaWVkPik6DQogIHNpbmdsZXRvbiBmcm9tIHByb3RvY29scw0KDQovKioNCiAqIEBkZXNjcmlwdGlvbiBGZXRjaGVzIGEgc2luZ2xldG9uIHByb3RvY29sIGFwcGxpZWQgZnJvbSBhbiBpbW11bml6YXRpb24NCiAqIEBjb21tZW50IFRoZSBwcm90b2NvbCBsaXN0IGZyb20gdGhlIGltbXVuaXphdGlvbg0KICovDQpkZWZpbmUgZmx1ZW50IGZ1bmN0aW9uIG9ubHkocHJvdG9jb2xzIExpc3Q8Rk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ations#1.0.0 based on FHIR 4.0.1. Generated 2026-03-31
Links: Table of Contents |
QA Report
| Version History | License