FHIR Release 3 (STU) 4

This page is part of the FHIR Specification (v3.0.2: (v4.0.1: R4 - Mixed Normative and STU 3). ) in it's permanent home (it will always be available at this URL). 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 R4 R3

Patient Administration Work Group Maturity Level : N/A Ballot Standards Status : Informative Security Category : Business Compartments : Not linked to any defined compartments

R2 : R3 Converson : R4 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

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


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

uses "http://hl7.org/fhir/3.0/StructureDefinition/Slot" alias SlotR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Slot" alias Slot as target


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

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


  "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

group Slot(source src : SlotR3, target tgt : Slot) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.serviceCategory -> tgt.serviceCategory;
  src.serviceType -> tgt.serviceType;
  src.specialty -> tgt.specialty;
  src.appointmentType -> tgt.appointmentType;
  src.schedule -> tgt.schedule;
  src.status -> tgt.status;
  src.start -> tgt.start;
  src.end -> tgt.end;
  src.overbooked -> tgt.overbooked;
  src.comment -> 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

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


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

uses "http://hl7.org/fhir/StructureDefinition/Slot" alias Slot as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Slot" alias SlotR3 as target


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

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


  "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

group Slot(source src : Slot, target tgt : SlotR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.serviceCategory -> tgt.serviceCategory;
  src.serviceType -> tgt.serviceType;
  src.specialty -> tgt.specialty;
  src.appointmentType -> tgt.appointmentType;
  src.schedule -> tgt.schedule;
  src.status -> tgt.status;
  src.start -> tgt.start;
  src.end -> tgt.end;
  src.overbooked -> tgt.overbooked;
  src.comment -> tgt.comment;
}


endgroup


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