R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.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

Infrastructure And Messaging Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Practitioner

R3 : R4 Conversion maps for MessageHeader.

Functional status for this map: 1 test of which 1 fail to execute. (see documentation)

map "http://hl7.org/fhir/StructureMap/MessageHeader3to4" = "R3 to R4 Conversions for MessageHeader"


uses "http://hl7.org/fhir/3.0/StructureDefinition/MessageHeader" alias MessageHeaderR3 as source
uses "http://hl7.org/fhir/StructureDefinition/MessageHeader" alias MessageHeader as target

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



group MessageHeader extends DomainResource
  input src : MessageHeaderR3 as source
  input tgt : MessageHeader as target

  "MessageHeader.event" : for src.event as vs make tgt.event as vt
  "MessageHeader.sender" : for src.sender as vs make tgt.sender as vt
  "MessageHeader.author" : for src.author as vs make tgt.author as vt
  "MessageHeader.responsible" : for src.responsible as vs make tgt.responsible as vt
  "MessageHeader.reason" : for src.reason as vs make tgt.reason as vt
  "MessageHeader.response" : for src.response as vs0 make tgt.response as vt0 then {
    "MessageHeader.response.identifier" : for vs0.identifier as vs make vt0.identifier as vt
    "MessageHeader.response.code" : for vs0.code as vs make vt0.code as vt
    "MessageHeader.response.details" : for vs0.details as vs make vt0.details as vt
  }
  "MessageHeader.focus" : for src.focus as vs make tgt.focus as vt
endgroup


map "http://hl7.org/fhir/StructureMap/MessageHeader4to3" = "R4 to R3 Conversion for MessageHeader"


uses "http://hl7.org/fhir/StructureDefinition/MessageHeader" alias MessageHeader as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/MessageHeader" alias MessageHeaderR3 as target

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



group MessageHeader extends DomainResource
  input src : MessageHeader as source
  input tgt : MessageHeaderR3 as target

  "MessageHeader.event" : for src.eventCoding as vs make tgt.event as vt
  "MessageHeader.sender" : for src.sender as vs make tgt.sender as vt
  "MessageHeader.author" : for src.author as vs make tgt.author as vt
  "MessageHeader.responsible" : for src.responsible as vs make tgt.responsible as vt
  "MessageHeader.reason" : for src.reason as vs make tgt.reason as vt
  "MessageHeader.response" : for src.response as vs0 make tgt.response as vt0 then {
    "MessageHeader.response.identifier" : for vs0.identifier as vs make vt0.identifier as vt
    "MessageHeader.response.code" : for vs0.code as vs make vt0.code as vt
    "MessageHeader.response.details" : for vs0.details as vs make vt0.details as vt
  }
  "MessageHeader.focus" : for src.focus as vs make tgt.focus as vt
endgroup