WHO Immunization Implementation Guide
1.0.0 - release

This page is part of the Immunizations (v1.0.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

StructureMap: IMMZ.D1.LMToBundle

Official URL: http://smart.who.int/immunizations/StructureMap/IMMZ.D1.LMToBundle Version: 1.0.0
Draft as of 2026-10-02 Computable Name: IMMZ.D1.LMToBundle

Immunization Administer Vaccine - Transform Logical Model to Immunization resources

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

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

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

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

group IMMZD1ToBundle(source immz : IMMZD1, target bundle : Bundle) {
  immz -> bundle.type = 'transaction' "SetBundleType";
  immz.patient as patient -> uuid() as immid then {
    immz then MakeImmunization(patient, immid, immz, bundle) "MakeImmunization";
    immz then D1andD13Observations(patient, immid, immz, bundle) "MakeD1andD13Observations";
    immz then D1Observations(patient, immid, immz, bundle) "MakeD1Observations";
  } "GetPatient";
}