FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. 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/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions

StructureMap: Immunization Transforms: R4B to R5

Official URL: http://hl7.org/fhir/StructureMap/Immunization4Bto5 Version: 0.1.0
Standards status: Draft Maturity Level: 1 Computable Name: Immunization4Bto5

ImmunizationTransformsR4BtoR5

/// url = 'http://hl7.org/fhir/StructureMap/Immunization4Bto5'
/// name = 'Immunization4Bto5'
/// title = 'Immunization Transforms: R4B to R5'
/// status = 'active'

uses "http://hl7.org/fhir/4.3/Immunization" alias ImmunizationR4B as source
uses "http://hl7.org/fhir/5.0/Immunization" alias ImmunizationR5 as target

imports "http://hl7.org/fhir/StructureMap/*4Bto5"

group Immunization(source src : ImmunizationR4B, target tgt : ImmunizationR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.statusReason -> tgt.statusReason;
  src.vaccineCode -> tgt.vaccineCode;
  src.manufacturer -> tgt.manufacturer;
  src.lotNumber -> tgt.lotNumber;
  src.expirationDate -> tgt.expirationDate;
  src.patient -> tgt.patient;
  src.encounter -> tgt.encounter;
  src.occurrence : dateTime -> tgt.occurrence;
  src.occurrence : string -> tgt.occurrence;
  src.primarySource -> tgt.primarySource;
  src.location -> tgt.location;
  src.site -> tgt.site;
  src.route -> tgt.route;
  src.doseQuantity -> tgt.doseQuantity;
  src.performer as s -> tgt.performer as t then ImmunizationPerformer(s, t);
  src.note -> tgt.note;
  src.reasonCode -> tgt.reason;
  src.reasonReference -> tgt.reason;
  src.isSubpotent -> tgt.isSubpotent;
  src.subpotentReason -> tgt.subpotentReason;
  src.programEligibility as s ->  tgt.programEligibility as t,  t.program = s;
  src.fundingSource -> tgt.fundingSource;
  src.reaction as s -> tgt.reaction as t then ImmunizationReaction(s, t);
  src.protocolApplied as s -> tgt.protocolApplied as t then ImmunizationProtocolApplied(s, t);
}

group ImmunizationPerformer(source src, target tgt) extends BackboneElement {
  src.function -> tgt.function;
  src.actor -> tgt.actor;
}

// group ImmunizationProgramEligibility(source src, target tgt) extends BackboneElement {
// src.program -> tgt.program;
// src.programStatus -> tgt.programStatus;
// }
group ImmunizationReaction(source src, target tgt) extends BackboneElement {
  src.date -> tgt.date;
  src.detail -> tgt.manifestation;
  src.reported -> tgt.reported;
}

group ImmunizationProtocolApplied(source src, target tgt) extends BackboneElement {
  src.series -> tgt.series;
  src.authority -> tgt.authority;
  src.targetDisease -> tgt.targetDisease;
  src.doseNumber : string -> tgt.doseNumber;
  src.seriesDoses : string -> tgt.seriesDoses;
}