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: ImmunizationRecommendation Transforms: R3 to R2

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

ImmunizationRecommendationTransformsR3toR2

/// url = 'http://hl7.org/fhir/StructureMap/ImmunizationRecommendation3to2'
/// name = 'ImmunizationRecommendation3to2'
/// title = 'ImmunizationRecommendation Transforms: R3 to R2'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/ImmunizationRecommendation" alias ImmunizationRecommendation as source
uses "http://hl7.org/fhir/1.0/ImmunizationRecommendation" alias ImmunizationRecommendationR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group ImmunizationRecommendation(source src : ImmunizationRecommendation, target tgt : ImmunizationRecommendationR2) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "ImmunizationRecommendation-identifier";
  src.patient -> tgt.patient "ImmunizationRecommendation-patient";
  src.recommendation as vs0 -> tgt.recommendation as vt0 then imrRecommendation(vs0, vt0) "ImmunizationRecommendation-recommendation";
}

group imrRecommendation(source src, target tgt) extends BackboneElement {
  src.date -> tgt.date "recommendation-date";
  src.vaccineCode -> tgt.vaccineCode "recommendation-vaccineCode";
  src.doseNumber -> tgt.doseNumber "recommendation-doseNumber";
  src.forecastStatus -> tgt.forecastStatus "recommendation-forecastStatus";
  src.dateCriterion as vs -> tgt.dateCriterion as vt then imrDateCriterion(vs, vt) "recommendation-dateCriterion";
  src.protocol as vs -> tgt.protocol as vt then imrProtocol(vs, vt) "recommendation-protocol";
  src.supportingImmunization -> tgt.supportingImmunization "recommendation-supportingImmunization";
  src.supportingPatientInformation -> tgt.supportingPatientInformation "recommendation-supportingPatientInformation";
}

group imrDateCriterion(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code "dateCriterion-date";
  src.value -> tgt.value "dateCriterion-date";
}

group imrProtocol(source src, target tgt) extends BackboneElement {
  src.doseSequence -> tgt.doseSequence "protocol-doseSequence";
  src.description -> tgt.description "protocol-description";
  src.authority -> tgt.authority "protocol-authority";
  src.series -> tgt.series "protocol-series";
}