WHO SMART Guidelines - Measles Immunization
0.1.0 - ci-build

WHO SMART Guidelines - Measles Immunization, published by 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-example-immz and changes regularly. See the Directory of published versions

StructureMap:

Official URL: http://smart.who.int/immunizations-measles/StructureMap/IMMZD4LMToResources Version: 0.1.0
Draft as of 2024-08-12 Computable Name: IMMZD4LMToResources

Immunization - Administer Vaccine - Transform logical model to resources

Generated Narrative: StructureMap IMMZD4LMToResources

map "http://smart.who.int/immunizations-measles/StructureMap/IMMZD4LMToResources" = "IMMZD4LMToResources"

// Immunization - Administer Vaccine - Transform logical model to resources

uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZD4CheckContraindicationsMeasles" alias IMMZD4 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

group IMMZD4ToBundle(source immz : IMMZD4, target bundle : Bundle) {
  immz -> bundle.type = 'collection' "SetCollection";
  immz.patient as patient then {
    immz.contraindications as ci ->  bundle.entry as entry,  entry.resource = create('Condition') as condition then {
      patient -> condition.subject = patient "SetPatient";
      ci ->  condition.clinicalStatus = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.system = 'http://hl7.org/fhir/ValueSet/condition-clinical',  c.code = 'active' "SetClinicalStatus";
      ci ->  condition.code = create('CodeableConcept') as cc,  cc.coding = ci "SetCode";
    } "SetCondition";
  } "GetPatient";
}