R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Public Health and Emergency Response Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient

R2 : R3 Conversion maps for ImmunizationRecommendation.

Functional status for this map: 1 test that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

map "http://hl7.org/fhir/StructureMap/ImmunizationRecommendation2to3" = "R2 to R3 Conversions for ImmunizationRecommendation"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/ImmunizationRecommendation" alias ImmunizationRecommendationR2 as source
uses "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" alias ImmunizationRecommendation as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group for type+types  ImmunizationRecommendation extends DomainResource
  input src : ImmunizationRecommendationR2 as source
  input tgt : ImmunizationRecommendation as target

  "ImmunizationRecommendation-identifier" : for src.identifier make tgt.identifier
  "ImmunizationRecommendation-patient" : for src.patient make tgt.patient
  "ImmunizationRecommendation-recommendation" : for src.recommendation as vs0 make tgt.recommendation as vt0 then imrRecommendation(vs0, vt0)
endgroup

group imrRecommendation extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation-date" : for src.date make tgt.date
  "ImmunizationRecommendation.recommendation-vaccineCode" : for src.vaccineCode make tgt.vaccineCode
  "ImmunizationRecommendation.recommendation-doseNumber" : for src.doseNumber make tgt.doseNumber
  "ImmunizationRecommendation.recommendation-forecastStatus" : for src.forecastStatus make tgt.forecastStatus
  "ImmunizationRecommendation.recommendation-dateCriterion" : for src.dateCriterion as vs make tgt.dateCriterion as vt then imrDateCriterion(vs, vt)
  "ImmunizationRecommendation.recommendation-protocol" : for src.protocol as vs make tgt.protocol as vt then imrProtocol(vs, vt)
  "ImmunizationRecommendation.recommendation-supportingImmunization" : for src.supportingImmunization make tgt.supportingImmunization
  "ImmunizationRecommendation.recommendation-supportingPatientInformation" : for src.supportingPatientInformation make tgt.supportingPatientInformation
endgroup

group imrDateCriterion extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation.dateCriterion-date" : for src.code make tgt.code
  "ImmunizationRecommendation.recommendation.dateCriterion-date" : for src.value make tgt.value
endgroup

group imrProtocol extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation.protocol-doseSequence" : for src.doseSequence make tgt.doseSequence
  "ImmunizationRecommendation.recommendation.protocol-description" : for src.description make tgt.description
  "ImmunizationRecommendation.recommendation.protocol-authority" : for src.authority make tgt.authority
  "ImmunizationRecommendation.recommendation.protocol-series" : for src.series make tgt.series
endgroup

map "http://hl7.org/fhir/StructureMap/ImmunizationRecommendation3to2" = "R3 to R2 Conversion for ImmunizationRecommendation"

uses "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" alias ImmunizationRecommendation as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/ImmunizationRecommendation" alias ImmunizationRecommendationR2 as target

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

group for type+types  ImmunizationRecommendation extends DomainResource
  input src : ImmunizationRecommendation as source
  input tgt : ImmunizationRecommendationR2 as target

  "ImmunizationRecommendation-identifier" : for src.identifier make tgt.identifier
  "ImmunizationRecommendation-patient" : for src.patient make tgt.patient
  "ImmunizationRecommendation-recommendation" : for src.recommendation as vs0 make tgt.recommendation as vt0 then imrRecommendation(vs0, vt0)
endgroup

group imrRecommendation extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation-date" : for src.date make tgt.date
  "ImmunizationRecommendation.recommendation-vaccineCode" : for src.vaccineCode make tgt.vaccineCode
  "ImmunizationRecommendation.recommendation-doseNumber" : for src.doseNumber make tgt.doseNumber
  "ImmunizationRecommendation.recommendation-forecastStatus" : for src.forecastStatus make tgt.forecastStatus
  "ImmunizationRecommendation.recommendation-dateCriterion" : for src.dateCriterion as vs make tgt.dateCriterion as vt then imrDateCriterion(vs, vt)
  "ImmunizationRecommendation.recommendation-protocol" : for src.protocol as vs make tgt.protocol as vt then imrProtocol(vs, vt)
  "ImmunizationRecommendation.recommendation-supportingImmunization" : for src.supportingImmunization make tgt.supportingImmunization
  "ImmunizationRecommendation.recommendation-supportingPatientInformation" : for src.supportingPatientInformation make tgt.supportingPatientInformation
endgroup

group imrDateCriterion extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation.dateCriterion-date" : for src.code make tgt.code
  "ImmunizationRecommendation.recommendation.dateCriterion-date" : for src.value make tgt.value
endgroup

group imrProtocol extends BackboneElement
  input src as source
  input tgt as target

  "ImmunizationRecommendation.recommendation.protocol-doseSequence" : for src.doseSequence make tgt.doseSequence
  "ImmunizationRecommendation.recommendation.protocol-description" : for src.description make tgt.description
  "ImmunizationRecommendation.recommendation.protocol-authority" : for src.authority make tgt.authority
  "ImmunizationRecommendation.recommendation.protocol-series" : for src.series make tgt.series
endgroup