Finnish Implementation Guide for SMART App Launch
2.0.0-rc1 - ballot

Publication Build: This will be filled in by the publication tooling

## Resource Profile: FiSMARTPractitionerRole - Mappings

Draft as of 2025-02-06

Mappings for the fi-smart-practitioner-role resource profile.

### Mappings for HL7 v2 Mapping (http://hl7.org/v2)

FiSMARTPractitionerRole
PractitionerRole | PRD (as one example)
identifier | PRD-7 (or XCN.1)
active | STF-7
period | PRD-8/9 / PRA-5.4
code | PRD-1 / STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17
specialty | PRA-5
healthcareService | EDU-2 / AFF-3

### Mappings for RIM Mapping (http://hl7.org/v3)

FiSMARTPractitionerRole
PractitionerRole | Entity. Role, or Act, Role
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
active | .statusCode
period | .performance[@typeCode <= 'PPRF'].ActDefinitionOrEvent.effectiveTime
practitioner | .player
organization | .scoper
code | .code
specialty | .player.HealthCareProvider[@classCode = 'PROV'].code
location | .performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']
healthcareService | .player.QualifiedEntity[@classCode = 'QUAL'].code
telecom | .telecom
availableTime | .effectiveTime
id | n/a
extension | n/a
modifierExtension | N/A
daysOfWeek | .effectiveTime
allDay | .effectiveTime
availableStartTime | .effectiveTime
availableEndTime | .effectiveTime
notAvailable | .effectiveTime
id | n/a
extension | n/a
modifierExtension | N/A
description | n/a
during | .effectiveTime
availabilityExceptions | .effectiveTime
endpoint | n/a

### Mappings for ServD (http://www.omg.org/spec/ServD/1.0/)

FiSMARTPractitionerRole
PractitionerRole | ServiceSiteProvider
identifier | ./Identifiers
period | (ServD maps Practitioners and Organizations via another entity, so this concept is not available)
code | (ServD maps Practitioners and Organizations via another entity, so this concept is not available)
specialty | ./Specialty
location | (ServD maps Practitioners and Organizations via another entity, so this concept is not available)<br/> However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)

### Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

FiSMARTPractitionerRole
PractitionerRole |
identifier | FiveWs.identifier
active | FiveWs.status
period | FiveWs.done[x]
location | FiveWs.where[x]