SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## Resource Profile: SGHI PractitionerRole

Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/practitionerrole | Version: 0.1.0
Draft as of 2026-05-21 | Computable Name: SGHIPractitionerRole

PractitionerRole describes the types of services that practitioners provide to SGHI Organization at specific location(s). The profile a specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.

Usages:

- Refer to this Profile: SGHI Appointment Profile, SGHI DocumentReference Profile., SGHI MedicationRequest and SGHI Procedure
- Examples for this Profile: PractitionerRole/ExampleSGHIPractitionerRole

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | Identifiers for a role/location
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active | Σ | 1..1 | boolean | Whether this practitioner role record is in active use
practitioner | Σ | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code | Σ | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty | Σ | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location | Σ | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | PractitionerRole | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | PractitionerRole | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from PractitionerRole

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
identifier |  | 1..* | Identifier | Identifiers for a role/location
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active |  | 1..1 | boolean | Whether this practitioner role record is in active use
period |  |  |  |
start |  | 1..1 | dateTime | Starting time with inclusive boundary
end |  | 1..1 | dateTime | End time with inclusive boundary, if not ongoing
practitioner |  | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization |  | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code |  | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty |  | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location |  | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
contact |  |  |  |
name |  | 1..1 | SGHIHumanName | Name of an individual to contact
telecom |  | 1..1 | SGHIContactPoint | Contact details (e.g.phone/fax/url)
availability |  |  |  |
availableTime |  |  |  |
daysOfWeek |  | 1..* | code | mon | tue | wed | thu | fri | sat | sun
allDay |  | 1..1 | boolean | Always available? i.e. 24 hour service
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | Identifiers for a role/location
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active | Σ | 1..1 | boolean | Whether this practitioner role record is in active use
period | Σ | 0..1 | Period | The period during which the practitioner is authorized to perform in these role(s)
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
end | Σ C | 1..1 | dateTime | End time with inclusive boundary, if not ongoing
practitioner | Σ | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code | Σ | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty | Σ | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location | Σ | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
healthcareService |  | 0..* | Reference(HealthcareService) | Healthcare services provided for this role's Organization/Location(s)
contact |  | 0..* | ExtendedContactDetail | Official contact details relating to this PractitionerRole
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
purpose | Σ | 0..1 | CodeableConcept | The type of contact Binding: Contact entity type (preferred): The purpose for which an extended contact detail should be used.
name | Σ | 1..1 | SGHIHumanName | Name of an individual to contact
telecom | Σ | 1..1 | SGHIContactPoint | Contact details (e.g.phone/fax/url)
address | Σ | 0..1 | Address | Address for the contact
organization | Σ | 0..1 | Reference(Organization) | This contact detail is handled/monitored by a specific organization
period | Σ | 0..1 | Period | Period that this contact was valid for usage
characteristic |  | 0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility).
communication |  | 0..* | CodeableConcept | A language the practitioner (in this role) can use in patient communication Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
availability |  | 0..* | Availability | Times the Practitioner is available at this location and/or healthcare service (including exceptions)
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
availableTime | Σ C | 0..* | Element | Times the {item} is available Constraints: av-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
daysOfWeek | Σ | 1..* | code | mon | tue | wed | thu | fri | sat | sun Binding: DaysOfWeek (required): The purpose for which an extended contact detail should be used.
allDay | Σ C | 1..1 | boolean | Always available? i.e. 24 hour service
availableStartTime | Σ C | 0..1 | time | Opening time of day (ignored if allDay = true)
availableEndTime | Σ C | 0..1 | time | Closing time of day (ignored if allDay = true)
notAvailableTime | Σ | 0..* | Element | Not available during this time due to provided reason
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
description | Σ | 0..1 | string | Reason presented to the user explaining why time not available
during | Σ | 0..1 | Period | Service not available during this period
endpoint |  | 0..* | Reference(Endpoint) | Endpoints for interacting with the practitioner in this role
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.contact.​purpose | Base | preferred | Contact entity type | 📦2.0.0 | THO v7.1
PractitionerRole.characteristic | Base | example | Service Mode | 📍5.0.0 | FHIR Std.
PractitionerRole.communication | Base | required | All Languages | 📍5.0.0 | FHIR Std.
PractitionerRole.availability.​availableTime.daysOfWeek | Base | required | Days Of Week | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
av-1 | error | PractitionerRole.availability.availableTime | Cannot include start/end times when selecting all day availability. | `allDay.exists().not() or (allDay implies availableStartTime.exists().not() and availableEndTime.exists().not())`
dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | PractitionerRole | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | PractitionerRole | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from PractitionerRole

Summary

Mandatory: 10 elements(6 nested mandatory elements)

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Practitioner (https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner)
- SGHI Location (https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location)
- SGHI HumanName (https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name)
- SGHI ContactPoint (https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | Identifiers for a role/location
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active | Σ | 1..1 | boolean | Whether this practitioner role record is in active use
practitioner | Σ | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code | Σ | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty | Σ | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location | Σ | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | PractitionerRole | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | PractitionerRole | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from PractitionerRole

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
identifier |  | 1..* | Identifier | Identifiers for a role/location
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active |  | 1..1 | boolean | Whether this practitioner role record is in active use
period |  |  |  |
start |  | 1..1 | dateTime | Starting time with inclusive boundary
end |  | 1..1 | dateTime | End time with inclusive boundary, if not ongoing
practitioner |  | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization |  | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code |  | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty |  | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location |  | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
contact |  |  |  |
name |  | 1..1 | SGHIHumanName | Name of an individual to contact
telecom |  | 1..1 | SGHIContactPoint | Contact details (e.g.phone/fax/url)
availability |  |  |  |
availableTime |  |  |  |
daysOfWeek |  | 1..* | code | mon | tue | wed | thu | fri | sat | sun
allDay |  | 1..1 | boolean | Always available? i.e. 24 hour service
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
PractitionerRole |  | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | Identifiers for a role/location
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
active | Σ | 1..1 | boolean | Whether this practitioner role record is in active use
period | Σ | 0..1 | Period | The period during which the practitioner is authorized to perform in these role(s)
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
end | Σ C | 1..1 | dateTime | End time with inclusive boundary, if not ongoing
practitioner | Σ | 1..1 | SGHIReference(SGHI Practitioner) | Practitioner that provides services for the organization
organization | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization where the roles are available
code | Σ | 1..* | SGHICodeableConcept | Roles which this practitioner may perform Binding: SGHI Practitioner Value Set (required)
specialty | Σ | 1..* | SGHICodeableConcept | Specific specialty of the practitioner Binding: SGHI Practitioner Value Set (required)
location | Σ | 1..* | SGHIReference(SGHI Location) | Location(s) where the practitioner provides care
healthcareService |  | 0..* | Reference(HealthcareService) | Healthcare services provided for this role's Organization/Location(s)
contact |  | 0..* | ExtendedContactDetail | Official contact details relating to this PractitionerRole
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
purpose | Σ | 0..1 | CodeableConcept | The type of contact Binding: Contact entity type (preferred): The purpose for which an extended contact detail should be used.
name | Σ | 1..1 | SGHIHumanName | Name of an individual to contact
telecom | Σ | 1..1 | SGHIContactPoint | Contact details (e.g.phone/fax/url)
address | Σ | 0..1 | Address | Address for the contact
organization | Σ | 0..1 | Reference(Organization) | This contact detail is handled/monitored by a specific organization
period | Σ | 0..1 | Period | Period that this contact was valid for usage
characteristic |  | 0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility).
communication |  | 0..* | CodeableConcept | A language the practitioner (in this role) can use in patient communication Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
availability |  | 0..* | Availability | Times the Practitioner is available at this location and/or healthcare service (including exceptions)
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
availableTime | Σ C | 0..* | Element | Times the {item} is available Constraints: av-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
daysOfWeek | Σ | 1..* | code | mon | tue | wed | thu | fri | sat | sun Binding: DaysOfWeek (required): The purpose for which an extended contact detail should be used.
allDay | Σ C | 1..1 | boolean | Always available? i.e. 24 hour service
availableStartTime | Σ C | 0..1 | time | Opening time of day (ignored if allDay = true)
availableEndTime | Σ C | 0..1 | time | Closing time of day (ignored if allDay = true)
notAvailableTime | Σ | 0..* | Element | Not available during this time due to provided reason
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
description | Σ | 0..1 | string | Reason presented to the user explaining why time not available
during | Σ | 0..1 | Period | Service not available during this period
endpoint |  | 0..* | Reference(Endpoint) | Endpoints for interacting with the practitioner in this role
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
PractitionerRole.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
PractitionerRole.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
PractitionerRole.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
PractitionerRole.code | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.specialty | Base | required | SGHI Practitioner Value Set | 📦0.1.0 | This IG
PractitionerRole.contact.​purpose | Base | preferred | Contact entity type | 📦2.0.0 | THO v7.1
PractitionerRole.characteristic | Base | example | Service Mode | 📍5.0.0 | FHIR Std.
PractitionerRole.communication | Base | required | All Languages | 📍5.0.0 | FHIR Std.
PractitionerRole.availability.​availableTime.daysOfWeek | Base | required | Days Of Week | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
av-1 | error | PractitionerRole.availability.availableTime | Cannot include start/end times when selecting all day availability. | `allDay.exists().not() or (allDay implies availableStartTime.exists().not() and availableEndTime.exists().not())`
dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | PractitionerRole | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | PractitionerRole | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from PractitionerRole

Summary

Mandatory: 10 elements(6 nested mandatory elements)

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Practitioner (https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner)
- SGHI Location (https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location)
- SGHI HumanName (https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name)
- SGHI ContactPoint (https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point)

Other representations of profile: CSV, Excel, Schematron