WHO Immunization Implementation Guide
0.1.0 - CI Build International flag

WHO Immunization Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.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 and changes regularly. See the Directory of published versions

StructureMap:

Official URL: http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioLMToResources Version: 0.1.0
Draft as of 2024-05-30 Computable Name: IMMZD1PolioLMToResources
map "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioLMToResources" = "IMMZD1PolioLMToResources"

uses "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistoryPolio" alias IMMZD1 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

imports "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1LMToResources"

group PolioIMMZD1ToBundle(source immz : IMMZD1, target bundle : Bundle) extends IMMZD1ToBundle {
  immz.patient as patient then {
    immz.birth as content ->  bundle.entry as entry,  entry.resource = create('Observation') as obs then {
      patient -> obs.subject = patient "SetPatient";
      content -> obs.code as code then {
        content -> code.coding as coding then {
          content -> coding.system = 'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1' "SetObsSystem";
          content -> coding.code = 'DE109' "SetObsCode";
        } "SetObsCoding";
      } "SetObsCode";
      content -> obs.value = content "SetValue";
    } "SetBirthObservation";
    immz.poliotype as content ->  bundle.entry as entry,  entry.resource = create('Observation') as obs then {
      patient -> obs.subject = patient "SetPatient";
      content -> obs.code as code then {
        content -> code.coding as coding then {
          content -> coding.system = 'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1' "SetObsSystem";
          content -> coding.code = 'DE35' "SetObsCode";
        } "SetObsCoding";
      } "SetObsCode";
      content -> obs.valueCodeableConcept as code then {
        content -> code.coding = content "SetCoding";
      } "SetCodeableConcept";
    } "SetPolioTypeObservation";
  } "GetPatient";
}