R4 Draft for Comment

This page is part of the FHIR Specification (v3.2.0: R4 Ballot 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

Patient Administration Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R2 : R3 Conversion maps for Slot.

Functional status for this map: 4 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

map "http://hl7.org/fhir/StructureMap/Slot2to3" = "R2 to R3 Conversions for Slot"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Slot" alias SlotR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Slot" alias Slot as target

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

group for type+types  Slot extends DomainResource
  input src : SlotR2 as source
  input tgt : Slot as target

  "Slot-identifier" : for src.identifier make tgt.identifier
  "Slot-serviceType" : for src.type make tgt.serviceType
  "Slot-schedule" : for src.schedule make tgt.schedule
  "Slot-freeBusyType" : for src.freeBusyType make tgt.status
  "Slot-start" : for src.start make tgt.start
  "Slot-end" : for src.end make tgt.end
  "Slot-overbooked" : for src.overbooked make tgt.overbooked
  "Slot-comment" : for src.comment make tgt.comment

endgroup

map "http://hl7.org/fhir/StructureMap/Slot3to2" = "R3 to R2 Conversion for Slot"

uses "http://hl7.org/fhir/StructureDefinition/Slot" alias Slot as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Slot" alias SlotR2 as target

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

group for type+types  Slot extends DomainResource
  input src : Slot as source
  input tgt : SlotR2 as target

  "Slot-identifier" : for src.identifier make tgt.identifier
  "Slot-type" : for src.serviceType make tgt.type
  "Slot-schedule" : for src.schedule make tgt.schedule
  "Slot-freeBusyType" : for src.status check src.status != 'entered-in-error' make tgt.freeBusyType
  "Slot-start" : for src.start make tgt.start
  "Slot-end" : for src.end make tgt.end
  "Slot-overbooked" : for src.overbooked make tgt.overbooked
  "Slot-comment" : for src.comment make tgt.comment

endgroup