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

Infrastructure And Messaging Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for MessageDefinition.

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

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

conceptmap "MessageSignificanceCategory" {
  prefix s = "http://hl7.org/fhir/message-significance-category"
  prefix t = "http://hl7.org/fhir/message-significance-category"

  s:Consequence - t:consequence
  s:Currency - t:currency
  s:Notification - t:notification
}

uses "http://hl7.org/fhir/3.0/StructureDefinition/MessageDefinition" alias MessageDefinitionR3 as source
uses "http://hl7.org/fhir/StructureDefinition/MessageDefinition" alias MessageDefinition as target

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



group MessageDefinition extends DomainResource
  input src : MessageDefinitionR3 as source
  input tgt : MessageDefinition as target

  "MessageDefinition.url" : for src.url as vs make tgt.url as vt
  "MessageDefinition.identifier" : for src.identifier as vs make tgt.identifier as vt
  "MessageDefinition.version" : for src.version as vs make tgt.version as vt
  "MessageDefinition.name" : for src.name as vs make tgt.name as vt
  "MessageDefinition.title" : for src.title as vs make tgt.title as vt
  "MessageDefinition.status" : for src.status as vs make tgt.status as vt
  "MessageDefinition.experimental" : for src.experimental as vs make tgt.experimental as vt
  "MessageDefinition.date" : for src.date as vs make tgt.date as vt
  "MessageDefinition.publisher" : for src.publisher as vs make tgt.publisher as vt
  "MessageDefinition.contact" : for src.contact as vs make tgt.contact as vt
  "MessageDefinition.description" : for src.description as vs make tgt.description as vt
  "MessageDefinition.useContext" : for src.useContext as vs make tgt.useContext as vt
  "MessageDefinition.jurisdiction" : for src.jurisdiction as vs make tgt.jurisdiction as vt
  "MessageDefinition.purpose" : for src.purpose as vs make tgt.purpose as vt
  "MessageDefinition.copyright" : for src.copyright as vs make tgt.copyright as vt
  "MessageDefinition.event" : for src.event as vs make tgt.event as vt
  "MessageDefinition.category" : for src.category as v make tgt.category = translate(v, "#MessageSignificanceCategory", "code")
  "MessageDefinition.focus" : for src.focus as vs0 make tgt.focus as vt0 then {
    "MessageDefinition.focus.code" : for vs0.code as vs make vt0.code as vt
    "MessageDefinition.focus.min" : for vs0.min as vs make vt0.min as vt
    "MessageDefinition.focus.max" : for vs0.max as vs make vt0.max as vt
  }
  "MessageDefinition.allowedResponse" : for src.allowedResponse as vs0 make tgt.allowedResponse as vt0 then {
    "MessageDefinition.allowedResponse.situation" : for vs0.situation as vs make vt0.situation as vt
  }
endgroup


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

conceptmap "MessageSignificanceCategory" {
  prefix s = "http://hl7.org/fhir/message-significance-category"
  prefix t = "http://hl7.org/fhir/message-significance-category"

  s:consequence - t:Consequence
  s:currency - t:Currency
  s:notification - t:Notification
}

uses "http://hl7.org/fhir/StructureDefinition/MessageDefinition" alias MessageDefinition as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/MessageDefinition" alias MessageDefinitionR3 as target

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



group MessageDefinition extends DomainResource
  input src : MessageDefinition as source
  input tgt : MessageDefinitionR3 as target

  "MessageDefinition.url" : for src.url as vs make tgt.url as vt
  "MessageDefinition.identifier" : for src.identifier as vs make tgt.identifier as vt
  "MessageDefinition.version" : for src.version as vs make tgt.version as vt
  "MessageDefinition.name" : for src.name as vs make tgt.name as vt
  "MessageDefinition.title" : for src.title as vs make tgt.title as vt
  "MessageDefinition.status" : for src.status as vs make tgt.status as vt
  "MessageDefinition.experimental" : for src.experimental as vs make tgt.experimental as vt
  "MessageDefinition.date" : for src.date as vs make tgt.date as vt
  "MessageDefinition.publisher" : for src.publisher as vs make tgt.publisher as vt
  "MessageDefinition.contact" : for src.contact as vs make tgt.contact as vt
  "MessageDefinition.description" : for src.description as vs make tgt.description as vt
  "MessageDefinition.useContext" : for src.useContext as vs make tgt.useContext as vt
  "MessageDefinition.jurisdiction" : for src.jurisdiction as vs make tgt.jurisdiction as vt
  "MessageDefinition.purpose" : for src.purpose as vs make tgt.purpose as vt
  "MessageDefinition.copyright" : for src.copyright as vs make tgt.copyright as vt
  "MessageDefinition.event" : for src.eventCoding as vs make tgt.event as vt
  "MessageDefinition.category" : for src.category as v make tgt.category = translate(v, "#MessageSignificanceCategory", "code")
  "MessageDefinition.focus" : for src.focus as vs0 make tgt.focus as vt0 then {
    "MessageDefinition.focus.code" : for vs0.code as vs make vt0.code as vt
    "MessageDefinition.focus.min" : for vs0.min as vs make vt0.min as vt
    "MessageDefinition.focus.max" : for vs0.max as vs make vt0.max as vt
  }
  "MessageDefinition.allowedResponse" : for src.allowedResponse as vs0 make tgt.allowedResponse as vt0 then {
    "MessageDefinition.allowedResponse.situation" : for vs0.situation as vs make vt0.situation as vt
  }
endgroup