FHIR Release 3 (STU) Current Build
This page is part of FHIR STU 3 (v3.0.1) in it's permanent home (it will always be available at this URL). It has been superceded by R4 . For a full list of available versions, see the Directory of published versions .
FHIR Infrastructure Work Group Maturity Level : N/A Ballot Standards Status : Informative Compartments : Not linked to any defined compartments

R2 : R3 Converson : R4 Conversion maps for DomainResource.

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

map "http://hl7.org/fhir/StructureMap/DomainResource2to3" = "R2 to R3 Conversions for DomainResource"
map "http://hl7.org/fhir/StructureMap/DomainResource3to4" = "R3 to R4 Conversions for DomainResource"
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DomainResource" alias DomainResourceR2 as source

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/*2to3"
group for type+types  DomainResource extends Resource
  input src : DomainResourceR2 as source
  input tgt : DomainResource as target

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

  "DomainResource-contained" : for src.contained make tgt.contained
  "DomainResource-text" : for src.text make tgt.text
  "DomainResource-extension" : for src.extension make tgt.extension
  "DomainResource-modifierExtension" : for src.modifierExtension make tgt.modifierExtension

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;
}

endgroup

map "http://hl7.org/fhir/StructureMap/DomainResource3to2" = "R3 to R2 Conversion for DomainResource"
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/DSTU2/StructureDefinition/DomainResource" alias DomainResourceR2 as target
imports "http://hl7.org/fhir/StructureMap/*3to2"

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

group for type+types  DomainResource extends Resource
  input src : DomainResource as source
  input tgt : DomainResourceR2 as target

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

  "DomainResource-contained" : for src.contained make tgt.contained
  "DomainResource-text" : for src.text make tgt.text
  "DomainResource-extension" : for src.extension make tgt.extension
  "DomainResource-modifierExtension" : for src.modifierExtension make tgt.modifierExtension

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/3.0/StructureDefinition').not() and (url != 'http://hl7.org/fhir/StructureDefinition/patient-animal') -> tgt.extension;
  src.modifierExtension -> tgt.modifierExtension;
}

endgroup

n/a <p>n/a</p>