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

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

R3 : R4 Conversion maps for Subscription.

Functional status for this map: 2 tests that all execute ok. 2 fail round-trip testing and 2 r3 resources are invalid (0 errors). (see documentation)

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/Subscription" alias SubscriptionR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Subscription" alias Subscription as target

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



group Subscription extends DomainResource
  input src : SubscriptionR3 as source
  input tgt : Subscription as target

  "Subscription.status" : for src.status as vs make tgt.status as vt
  "Subscription.contact" : for src.contact as vs make tgt.contact as vt
  "Subscription.end" : for src.end as vs make tgt.end as vt
  "Subscription.reason" : for src.reason as vs make tgt.reason as vt
  "Subscription.criteria" : for src.criteria as vs make tgt.criteria as vt
  "Subscription.error" : for src.error as vs make tgt.error as vt
  "Subscription.channel" : for src.channel as vs0 make tgt.channel as vt0 then {
    "Subscription.channel.type" : for vs0.type as vs make vt0.type as vt
    "Subscription.channel.payload" : for vs0.payload as vs make vt0.payload as vt
    "Subscription.channel.header" : for vs0.header as vs make vt0.header as vt
  }
  "Subscription.tag" : for src.tag as vs make tgt.tag as vt
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/Subscription" alias Subscription as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Subscription" alias SubscriptionR3 as target

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



group Subscription extends DomainResource
  input src : Subscription as source
  input tgt : SubscriptionR3 as target

  "Subscription.status" : for src.status as vs make tgt.status as vt
  "Subscription.contact" : for src.contact as vs make tgt.contact as vt
  "Subscription.end" : for src.end as vs make tgt.end as vt
  "Subscription.reason" : for src.reason as vs make tgt.reason as vt
  "Subscription.criteria" : for src.criteria as vs make tgt.criteria as vt
  "Subscription.error" : for src.error as vs make tgt.error as vt
  "Subscription.channel" : for src.channel as vs0 make tgt.channel as vt0 then {
    "Subscription.channel.type" : for vs0.type as vs make vt0.type as vt
    "Subscription.channel.payload" : for vs0.payload as vs make vt0.payload as vt
    "Subscription.channel.header" : for vs0.header as vs make vt0.header as vt
  }
  "Subscription.tag" : for src.tag as vs make tgt.tag as vt
endgroup