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: Device, Patient, Practitioner, RelatedPerson

R2 : R3 Conversion maps for Appointment.

Functional status for this map: 3 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/Appointment2to3" = "R2 to R3 Conversions for Appointment"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Appointment" alias AppointmentR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Appointment" alias Appointment as target

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

group for type+types  Appointment extends DomainResource
  input src : AppointmentR2 as source
  input tgt : Appointment as target

  "Appointment-identifier" : for src.identifier make tgt.identifier 
  "Appointment-status" : for src.status make tgt.status
  "Appointment-serviceType" : for src.type make tgt.serviceType
  "Appointment-reason" : for src.reason make tgt.reason
  "Appointment-priority" : for src.priority make tgt.priority
  "Appointment-description" : for src.description make tgt.description
  "Appointment-start" : for src.start make tgt.start
  "Appointment-end" : for src.end make tgt.end
  "Appointment-minutesDuration" : for src.minutesDuration make tgt.minutesDuration
  "Appointment-slot" : for src.slot make tgt.slot
  "Appointment-comment" : for src.comment make tgt.comment
  "Appointment-participant" : for src.participant as vs0 make tgt.participant as vt0 then appParticipant(vs0, vt0)
endgroup

group appParticipant extends BackboneElement
  input src as source
  input tgt as target

  "Appointment.participant-type" : for src.type make tgt.type
  "Appointment.participant-actor" : for src.actor make tgt.actor
  "Appointment.participant-required" : for src.required make tgt.required
  "Appointment.participant-status" : for src.status make tgt.status
endgroup


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

uses "http://hl7.org/fhir/StructureDefinition/Appointment" alias Appointment as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Appointment" alias AppointmentR2 as target

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

group for type+types  Appointment extends DomainResource
  input src : Appointment as source
  input tgt : AppointmentR2 as target

  "Appointment-identifier" : for src.identifier make tgt.identifier
  "Appointment-status" : for src.status make tgt.status
  "Appointment-type" : for src.serviceType make tgt.type
  "Appointment-reason" : for src.reason make tgt.reason
  "Appointment-priority" : for src.priority make tgt.priority
  "Appointment-description" : for src.description make tgt.description
  "Appointment-start" : for src.start make tgt.start
  "Appointment-end" : for src.end make tgt.end
  "Appointment-minutesDuration" : for src.minutesDuration make tgt.minutesDuration
  "Appointment-slot" : for src.slot make tgt.slot
  "Appointment-comment" : for src.comment make tgt.comment
  "Appointment-participant" : for src.participant as vs0 make tgt.participant as vt0 then appParticipant(vs0, vt0)
endgroup

group appParticipant extends BackboneElement
  input src as source
  input tgt as target

  "Appointment.participant-type" : for src.type make tgt.type
  "Appointment.participant-actor" : for src.actor make tgt.actor
  "Appointment.participant-required" : for src.required make tgt.required
  "Appointment.participant-status" : for src.status make tgt.status
endgroup