Release 5 Preview #3

This page is part of the FHIR Specification (v4.5.0: R5 Preview #3). 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

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Not Classified Compartments: Device, Patient, Practitioner

R3 : R4 Conversion maps for List.

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

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/List" alias ListR3 as source
uses "http://hl7.org/fhir/StructureDefinition/List" alias List as target

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

group List(source src : ListR3, target tgt : List) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.mode -> tgt.mode;
  src.title -> tgt.title;
  src.code -> tgt.code;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.date -> tgt.date;
  src.source -> tgt.source;
  src.orderedBy -> tgt.orderedBy;
  src.note -> tgt.note;
  src.entry as s -> tgt.entry as t then entry(s, t);
  src.emptyReason -> tgt.emptyReason;
}

group entry(source src, target tgt) extends BackboneElement {
  src.flag -> tgt.flag;
  src.deleted -> tgt.deleted;
  src.date -> tgt.date;
  src.item -> tgt.item;
}


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

uses "http://hl7.org/fhir/StructureDefinition/List" alias List as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/List" alias ListR3 as target

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

group List(source src : List, target tgt : ListR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.mode -> tgt.mode;
  src.title -> tgt.title;
  src.code -> tgt.code;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.date -> tgt.date;
  src.source -> tgt.source;
  src.orderedBy -> tgt.orderedBy;
  src.note -> tgt.note;
  src.entry as s -> tgt.entry as t then entry(s, t);
  src.emptyReason -> tgt.emptyReason;
}

group entry(source src, target tgt) extends BackboneElement {
  src.flag -> tgt.flag;
  src.deleted -> tgt.deleted;
  src.date -> tgt.date;
  src.item -> tgt.item;
}


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