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

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Patient, Practitioner

R3 : R4 Conversion maps for List.

Functional status for this map: 9 tests of which 9 fail to execute. (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 extends DomainResource
  input src : ListR3 as source
  input tgt : List as target

  "List.identifier": for src.identifier make tgt.identifier
  "List.status": for src.status make tgt.status
  "List.mode": for src.mode make tgt.mode
  "List.title": for src.title make tgt.title
  "List.code": for src.code make tgt.code
  "List.subject": for src.subject make tgt.subject
  "List.encounter": for src.encounter make tgt.encounter
  "List.date": for src.date make tgt.date
  "List.source": for src.source make tgt.source
  "List.orderedBy": for src.orderedBy make tgt.orderedBy
  "List.note": for src.note make tgt.note
  "List.entry": for src.entry as s make tgt.entry as t then ListEntry(s,t)
  "List.emptyReason": for src.emptyReason make tgt.emptyReason
endgroup


group ListEntry extends BackboneElement
  input src : ListR3 as source
  input tgt : List as target

  "List.entry.flag": for src.flag make tgt.flag
  "List.entry.deleted": for src.deleted make tgt.deleted
  "List.entry.date": for src.date make tgt.date
  "List.entry.item": for src.item make tgt.item
endgroup


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 extends DomainResource
  input src : ListR3 as source
  input tgt : List as target

  "List.identifier": for src.identifier make tgt.identifier
  "List.status": for src.status make tgt.status
  "List.mode": for src.mode make tgt.mode
  "List.title": for src.title make tgt.title
  "List.code": for src.code make tgt.code
  "List.subject": for src.subject make tgt.subject
  "List.encounter": for src.encounter make tgt.encounter
  "List.date": for src.date make tgt.date
  "List.source": for src.source make tgt.source
  "List.orderedBy": for src.orderedBy make tgt.orderedBy
  "List.note": for src.note make tgt.note
  "List.entry": for src.entry as s make tgt.entry as t then ListEntry(s,t)
  "List.emptyReason": for src.emptyReason make tgt.emptyReason
endgroup

group ListEntry extends BackboneElement
  input src : ListR3 as source
  input tgt : List as target

  "List.entry.flag": for src.flag make tgt.flag
  "List.entry.deleted": for src.deleted make tgt.deleted
  "List.entry.date": for src.date make tgt.date
  "List.entry.item": for src.item make tgt.item
endgroup