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

R3 : R4 Conversion maps for DomainResource.

Functional status for this map: Not Mapped (see documentation)

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/DomainResource" alias DomainResourceR3 as source
uses "http://hl7.org/fhir/StructureDefinition/DomainResource" alias DomainResource as target

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

group DomainResource(source src : DomainResourceR3, target tgt : DomainResource) extends Resource <<type+>> {
  src.text -> tgt.text;
  src.contained -> tgt.contained;
  src.extension -> tgt.extension;
  src.modifierExtension -> tgt.modifierExtension;
}


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

uses "http://hl7.org/fhir/StructureDefinition/DomainResource" alias DomainResource as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/DomainResource" alias DomainResourceR3 as target

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

group DomainResource(source src : DomainResourceR3, target tgt : DomainResource) extends Resource <<type+>> {
  src.text -> tgt.text;
  src.contained -> tgt.contained;
  src.extension where url.startsWith('http://hl7.org/fhir/StructureDefinition/X34').not() and url != 'http://hl7.org/fhir/StructureDefinition/patient-animal' -> tgt.extension;
  src.modifierExtension -> tgt.modifierExtension;
}


<p>n/a</p>