Current Build
Patient Administration Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Device, Patient, Practitioner, RelatedPerson

R2 : R3 Converson maps for Schedule.

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

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

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Schedule" alias ScheduleR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Schedule" alias Schedule as target

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

group for type+types  Schedule extends DomainResource
  input src : ScheduleR2 as source
  input tgt : Schedule as target

  "Schedule-identifier" : for src.identifier make tgt.identifier
  "Schedule-serviceType" : for src.type make tgt.serviceType
  "Schedule-actor" : for src.actor make tgt.actor
  "Schedule-planningHorizon" : for src.planningHorizon make tgt.planningHorizon
  "Schedule-comment" : for src.comment make tgt.comment

endgroup

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

uses "http://hl7.org/fhir/StructureDefinition/Schedule" alias Schedule as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Schedule" alias ScheduleR2 as target

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

group for type+types  Schedule extends DomainResource
  input src : Schedule as source
  input tgt : ScheduleR2 as target

  "Schedule-identifier" : for src.identifier make tgt.identifier
  "Schedule-type" : for src.serviceType make tgt.type
  "Schedule-actor" : for src.actor make tgt.actor
  "Schedule-planningHorizon" : for src.planningHorizon make tgt.planningHorizon
  "Schedule-comment" : for src.comment make tgt.comment

endgroup