Release 5 Preview #1

This page is part of the FHIR Specification (v4.2.0: R5 Preview #1). 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/AStandards Status: InformativeSecurity Category: Business 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 all r3 resources are valid. (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(source src : SubscriptionR3, target tgt : Subscription) extends DomainResource <<type+>> {
  src.status -> tgt.status;
  src.contact -> tgt.contact;
  src.end -> tgt.end;
  src.reason -> tgt.reason;
  src.criteria -> tgt.criteria;
  src.error -> tgt.error;
  src.channel as vs0 -> tgt.channel as vt0 then channel(vs0, vt0);
}

group channel(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.endpoint -> tgt.endpoint;
  src.payload -> tgt.payload;
  src.header -> tgt.header;
}


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(source src : Subscription, target tgt : SubscriptionR3) extends DomainResource <<type+>> {
  src.status -> tgt.status;
  src.contact -> tgt.contact;
  src.end -> tgt.end;
  src.reason -> tgt.reason;
  src.criteria -> tgt.criteria;
  src.error -> tgt.error;
  src.channel as vs0 -> tgt.channel as vt0 then channel(vs0, vt0);
}

group channel(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.endpoint -> tgt.endpoint;
  src.payload -> tgt.payload;
  src.header -> tgt.header;
}


<p>No validation errors - all conversions are clean</p>