<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-practitionerrole-registry" />
  <url value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole-registry" />
  <version value="1.1.2" />
  <name value="PractitionerRoleProfileRegistry" />
  <title value="PractitionerRole Profile (Provider Registry)" />
  <status value="draft" />
  <date value="2026-01-09" />
  <publisher value="HL7 Canada - FHIR Implementation Work Group" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations" />
    </telecom>
  </contact>
  <description value="Proposed constraints and extensions on the PractitionerRole Resource for use by Provider Registry systems." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole">
      <path value="PractitionerRole" />
      <short value="PractitionerRole Registry Profile" />
      <definition value="The PractitionerRoleRegistry Profile is based upon the CA Baseline FHIR PractitionerRole profile for general use" />
    </element>
    <element id="PractitionerRole.extension">
      <path value="PractitionerRole.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="PractitionerRole.extension:status">
      <path value="PractitionerRole.extension" />
      <sliceName value="status" />
      <short value="Role status extension" />
      <definition value="Represents the defined possible states of the Role, as defined by the HL7v3 Role class state machine." />
      <comment value="The roleStatus extension has been flagged for further implementer feedback regarding whether it should be considered a modifier extension." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-rolestatus" />
      </type>
    </element>
    <element id="PractitionerRole.extension:statusReason">
      <path value="PractitionerRole.extension" />
      <sliceName value="statusReason" />
      <short value="Role status reason extension" />
      <definition value="Represents the textual description for the possible states of the Role, as defined by the HL7v3 Role class state machine." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-statusreason" />
      </type>
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <comment value="This element is considered SHOULD support and it is recommended to have an identifier associated with PractitionerRole to assist in searches, not every implementation (especially legacy implementations that combined both concepts of practitioner &amp; practitionerRole) will include an identifier practioner role." />
      <type>
        <code value="Identifier" />
        <profile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <short value="Practitioner that is able to provide the defined services for the organization." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <short value="HealthcareProviderRoleType" />
      <comment value="The binding strength of this element is [Preferred](https://www.hl7.org/fhir/terminologies.html#strength), meaning that codes are encouraged to draw from the HealthcareProviderRoleType code system for interoperability purposes but are not required to do so to be considered conformant." />
      <binding>
        <strength value="preferred" />
        <description value="A role type that is used to categorize an entity that delivers health care in an expected and professional manner to an entity in need of health care services. Examples: Registered Nurse, Chiropractor, Physician, Custodial Care Clinic." />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/healthcareproviderroletype" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <short value="PractitionerSpecialty" />
      <comment value="The binding strength of this element is [Preferred](https://www.hl7.org/fhir/terminologies.html#strength), meaning that codes are encouraged to draw from the PractitionerSpecialty code system for interoperability purposes but are not required to do so to be considered conformant." />
      <binding>
        <strength value="preferred" />
        <description value="Defines the clinical, medical, surgical or other healthcare-related service specialty of a practitioner who interacts, treats or provides such services to or for a patient." />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/practitionerspecialty" />
      </binding>
    </element>
    <element id="PractitionerRole.telecom.system">
      <path value="PractitionerRole.telecom.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.telecom.value">
      <path value="PractitionerRole.telecom.value" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>