PackagesCanonicalsLogsProblems
    Packages
    telus.dw.emr.extract-1-1-21@1.1.21
    https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole
description: '**CHR — Internal Practitioners:** Practitioner roles are configured in **Settings → Account Info → User Management** via the member dialog Roles tab. The linked organization is the practitioner''s home clinic.\n\n**CHR — External Contact Providers:** External contact practitioners also produce PractitionerRole resources. Their organization links to the associated **external facility** — not the main clinic. `code[HL7Role]` and `code[InfowayRole]` are mapped from the contact''s occupation; `code[TelusRole]` is N/A. `specialty` is mapped from the medical specialty when occupation is Medical Doctor; otherwise text-only.\n\n**MA:** Practitioner roles are managed through **Admin → User Management** (user role dropdown) and **Admin → Provider Setup** (specialty).'
package_name: telus.dw.emr.extract-1-1-21
derivation: constraint
name: DwPractitionerRole
type: PractitionerRole
elements:
  meta:
    elements:
      lastUpdated: {mustSupport: true, index: 1}
      source: {mustSupport: true, index: 2}
      security: {mustSupport: true, index: 3}
  specialty:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/healthcareproviderspecialtycode'}
    mustSupport: true
    index: 37
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            mustSupport: true
            index: 38
          code: {mustSupport: true, index: 39}
          display:
            mustSupport: true
            index: 40
            extensions:
              myExtension:
                url: http://hl7.org/fhir/StructureDefinition/translation
                type: Extension
                index: 42
                extensions: {}
                elements:
                  extension: {mustSupport: true, array: true, min: 2, index: 43}
            elements:
              extension:
                index: 41
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    myExtension:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/translation
                        index: 42
                        extensions: {}
                        elements:
                          extension: {mustSupport: true, array: true, min: 2, index: 43}
      text: {mustSupport: true, index: 44}
  organization:
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization']
    type: Reference
    mustSupport: true
    index: 9
  active: {mustSupport: true, index: 6}
  id: {mustSupport: true, index: 0}
  code:
    index: 10
    slicing:
      rules: open
      discriminator:
      - {path: coding.userSelected, type: value}
      - {path: coding.system, type: pattern}
      min: null
      slices:
        HL7Role:
          match:
            coding: {userSelected: false, system: 'http://snomed.info/sct'}
          schema:
            mustSupport: true
            array: true
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/practitioner-role'}
            index: 11
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    mustSupport: true
                    index: 12
                  version: {mustSupport: true, index: 13}
                  code: {mustSupport: true, index: 14}
                  display:
                    mustSupport: true
                    index: 15
                    extensions:
                      translation:
                        url: http://hl7.org/fhir/StructureDefinition/translation
                        type: Extension
                        index: 17
                        extensions: {}
                        elements:
                          extension: {array: true, min: 2, index: 18}
                    elements:
                      extension:
                        index: 16
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            translation:
                              match: {url: null}
                              schema:
                                type: Extension
                                url: http://hl7.org/fhir/StructureDefinition/translation
                                index: 17
                                extensions: {}
                                elements:
                                  extension: {array: true, min: 2, index: 18}
                  userSelected:
                    mustSupport: true
                    pattern: {type: Boolean, value: false}
                    index: 19
                required: [system, userSelected]
              text: {mustSupport: true, index: 20}
        TelusRole:
          match:
            coding: {userSelected: true, system: null}
          schema:
            mustSupport: true
            array: true
            index: 21
            elements:
              coding:
                elements:
                  system:
                    constraint:
                      dw-practitionerrole-telusrole-system: {human: 'TelusRole coding.system must follow pattern urn:telus:emr:{emrType}:{instanceId}:codetable:clinical-role or urn:telus:emr:{emrType}:{region}:{instanceId}:codetable:clinical-role', source: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole', severity: warning, expression: 'matches(''urn:telus:emr:([^:]+:){2,3}codetable:clinical-role'')'}
                    mustSupport: true
                    index: 22
                  code: {mustSupport: true, index: 23}
                  display: {mustSupport: true, index: 24}
                  userSelected:
                    mustSupport: true
                    pattern: {type: Boolean, value: true}
                    index: 25
                required: [system, userSelected]
              text: {mustSupport: true, index: 26}
        InfowayRole:
          match:
            coding: {userSelected: false, system: 'https://fhir.infoway-inforoute.ca/CodeSystem/scptype'}
          schema:
            mustSupport: true
            array: true
            binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/healthcareproviderroletype'}
            index: 27
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/CodeSystem/scptype'}
                    mustSupport: true
                    index: 28
                  version: {mustSupport: false, index: 29}
                  code: {mustSupport: true, index: 30}
                  display:
                    mustSupport: true
                    index: 31
                    extensions:
                      translation:
                        url: http://hl7.org/fhir/StructureDefinition/translation
                        type: Extension
                        index: 33
                        extensions: {}
                        elements:
                          extension: {array: true, min: 2, index: 34}
                    elements:
                      extension:
                        index: 32
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            translation:
                              match: {url: null}
                              schema:
                                type: Extension
                                url: http://hl7.org/fhir/StructureDefinition/translation
                                index: 33
                                extensions: {}
                                elements:
                                  extension: {array: true, min: 2, index: 34}
                  userSelected:
                    mustSupport: true
                    pattern: {type: Boolean, value: false}
                    index: 35
                required: [system, userSelected]
              text: {mustSupport: true, index: 36}
  identifier: {mustSupport: true, index: 5}
  practitioner:
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner']
    type: Reference
    mustSupport: true
    index: 8
  telecom:
    mustSupport: true
    index: 46
    elements:
      system: {mustSupport: true, index: 47}
      value: {mustSupport: true, index: 48}
      use: {mustSupport: true, index: 49}
  period: {index: 7}
  location: {mustSupport: true, index: 45}
  endpoint: {index: 50}
  text: {mustSupport: true, index: 4}
package_version: 1.1.21
class: profile
kind: resource
url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole
base: http://hl7.org/fhir/StructureDefinition/PractitionerRole
version: 2.0.0
required: [practitioner, id, organization]