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

Patient Administration Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Practitioner

R3 : R4 Conversion maps for PractitionerRole.

Functional status for this map: 1 test that all execute ok. 1 fail round-trip testing and 1 r3 resources are invalid (0 errors). (see documentation)

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/PractitionerRole" alias PractitionerRoleR3 as source
uses "http://hl7.org/fhir/StructureDefinition/PractitionerRole" alias PractitionerRole as target

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



group PractitionerRole extends DomainResource
  input src : PractitionerRoleR3 as source
  input tgt : PractitionerRole as target

  "PractitionerRole.identifier" : for src.identifier as vs make tgt.identifier as vt
  "PractitionerRole.active" : for src.active as vs make tgt.active as vt
  "PractitionerRole.period" : for src.period as vs make tgt.period as vt
  "PractitionerRole.practitioner" : for src.practitioner as vs make tgt.practitioner as vt
  "PractitionerRole.organization" : for src.organization as vs make tgt.organization as vt
  "PractitionerRole.code" : for src.code as vs make tgt.code as vt
  "PractitionerRole.specialty" : for src.specialty as vs make tgt.specialty as vt
  "PractitionerRole.location" : for src.location as vs make tgt.location as vt
  "PractitionerRole.healthcareService" : for src.healthcareService as vs make tgt.healthcareService as vt
  "PractitionerRole.telecom" : for src.telecom as vs make tgt.telecom as vt
  "PractitionerRole.availableTime" : for src.availableTime as vs0 make tgt.availableTime as vt0 then {
    "PractitionerRole.availableTime.allDay" : for vs0.allDay as vs make vt0.allDay as vt
    "PractitionerRole.availableTime.availableStartTime" : for vs0.availableStartTime as vs make vt0.availableStartTime as vt
    "PractitionerRole.availableTime.availableEndTime" : for vs0.availableEndTime as vs make vt0.availableEndTime as vt
  }
  "PractitionerRole.notAvailable" : for src.notAvailable as vs0 make tgt.notAvailable as vt0 then {
    "PractitionerRole.notAvailable.description" : for vs0.description as vs make vt0.description as vt
    "PractitionerRole.notAvailable.during" : for vs0.during as vs make vt0.during as vt
  }
  "PractitionerRole.availabilityExceptions" : for src.availabilityExceptions as vs make tgt.availabilityExceptions as vt
  "PractitionerRole.endpoint" : for src.endpoint as vs make tgt.endpoint as vt
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/PractitionerRole" alias PractitionerRole as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/PractitionerRole" alias PractitionerRoleR3 as target

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



group PractitionerRole extends DomainResource
  input src : PractitionerRole as source
  input tgt : PractitionerRoleR3 as target

  "PractitionerRole.identifier" : for src.identifier as vs make tgt.identifier as vt
  "PractitionerRole.active" : for src.active as vs make tgt.active as vt
  "PractitionerRole.period" : for src.period as vs make tgt.period as vt
  "PractitionerRole.practitioner" : for src.practitioner as vs make tgt.practitioner as vt
  "PractitionerRole.organization" : for src.organization as vs make tgt.organization as vt
  "PractitionerRole.code" : for src.code as vs make tgt.code as vt
  "PractitionerRole.specialty" : for src.specialty as vs make tgt.specialty as vt
  "PractitionerRole.location" : for src.location as vs make tgt.location as vt
  "PractitionerRole.healthcareService" : for src.healthcareService as vs make tgt.healthcareService as vt
  "PractitionerRole.telecom" : for src.telecom as vs make tgt.telecom as vt
  "PractitionerRole.availableTime" : for src.availableTime as vs0 make tgt.availableTime as vt0 then {
    "PractitionerRole.availableTime.allDay" : for vs0.allDay as vs make vt0.allDay as vt
    "PractitionerRole.availableTime.availableStartTime" : for vs0.availableStartTime as vs make vt0.availableStartTime as vt
    "PractitionerRole.availableTime.availableEndTime" : for vs0.availableEndTime as vs make vt0.availableEndTime as vt
  }
  "PractitionerRole.notAvailable" : for src.notAvailable as vs0 make tgt.notAvailable as vt0 then {
    "PractitionerRole.notAvailable.description" : for vs0.description as vs make vt0.description as vt
    "PractitionerRole.notAvailable.during" : for vs0.during as vs make vt0.during as vt
  }
  "PractitionerRole.availabilityExceptions" : for src.availabilityExceptions as vs make tgt.availabilityExceptions as vt
  "PractitionerRole.endpoint" : for src.endpoint as vs make tgt.endpoint as vt
endgroup