WHO Immunization Implementation Guide
0.2.0 - ci-build

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/ and changes regularly. See the Directory of published versions

StructureMap: IMMZ.D5.LMToBundle

Official URL: http://smart.who.int/immunizations/StructureMap/IMMZ.D5.LMToBundle Version: 0.2.0
Draft as of 2025-09-10 Computable Name: IMMZ.D5.LMToBundle

Immunization Administer Vaccine - Transform Logical Model to Immunization resources

map "http://smart.who.int/immunizations/StructureMap/IMMZ.D5.LMToBundle" = "IMMZ.D5.LMToBundle"

// Immunization Administer Vaccine - Transform Logical Model to Immunization resources

uses "http://smart.who.int/immunizations/StructureDefinition/IMMZD5" alias IMMZD5 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

imports "http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"

group IMMZD5ToBundle(source immz : IMMZD5, target bundle : Bundle) {
  immz -> bundle.type = 'transaction' "SetBundleType";
  immz.patient as patient then {
    immz.potentialContraindications as content ->  c('http://smart.who.int/immunizations/CodeSystem/IMMZ.D', 'DE161', 'Potential contraindications') as code,  c('http://terminology.hl7.org/CodeSystem/observation-category', 'survey', 'Survey') as survey then MakeObservation(patient, code, survey, content, bundle);
  } "GetPatient";
}