<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-on-eReferral-profile-PractitionerRole" />
  <url value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole" />
  <version value="1.1.0" />
  <name value="EReferralPractitionerRole" />
  <title value="PractitionerRole" />
  <status value="draft" />
  <description value="The PractitionerRole represents the activity (such as specialty and job title) and contact information that a Practitioner may perform at an organization/location." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole.meta">
      <path value="PractitionerRole.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta.profile">
      <path value="PractitionerRole.meta.profile" />
      <comment value="#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole|1.1.0 `_**&#xD;&#xA;&#xD;&#xA;It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <mustSupport value="false" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.id">
      <path value="PractitionerRole.identifier.type.coding.id" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.system">
      <path value="PractitionerRole.identifier.type.coding.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.version">
      <path value="PractitionerRole.identifier.type.coding.version" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.code">
      <path value="PractitionerRole.identifier.type.coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.display">
      <path value="PractitionerRole.identifier.type.coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier.type.coding.userSelected">
      <path value="PractitionerRole.identifier.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.active">
      <path value="PractitionerRole.active" />
      <mustSupport value="false" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner" />
      </type>
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization" />
      </type>
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="PractitionerRole.code.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.coding.display">
      <path value="PractitionerRole.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;&#xD;&#xA;### To access the ValueSet &lt;a href=&quot;https://tgateway.infoway-inforoute.ca/singlesubset.html?id=2.16.840.1.113883.3.239.12.38&amp;versionid=20191129&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;" />
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty.coding">
      <path value="PractitionerRole.specialty.coding" />
      <mustSupport value="false" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ontariohealth.ca/fhir/ValueSet/qualified-expertise-role-type" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty.coding.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.coding.code">
      <path value="PractitionerRole.specialty.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.coding.display">
      <path value="PractitionerRole.specialty.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location" />
      </type>
    </element>
    <element id="PractitionerRole.telecom.rank">
      <path value="PractitionerRole.telecom.rank" />
      <mustSupport value="false" />
    </element>
  </differential>
</StructureDefinition>