<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-practitionerRole-patientchart" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2022-09-28T20:28:44.7401164+00:00" />
  </meta>
  <url value="http://telus.com/fhir/patientChart/StructureDefinition/profile-practitionerRole" />
  <name value="PractitionerRolePatientChart" />
  <title value="Practitioner Role eServices" />
  <status value="draft" />
  <date value="2020-11-17T21:41:32.4178306+00:00" />
  <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/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole">
      <path value="PractitionerRole" />
      <comment value="Usage Note: This resource will be referenced in messages in the context of Communication.sender, Communication.extension:ReplyTo, and Communication.recipient." />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.id">
      <path value="PractitionerRole.id" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta">
      <path value="PractitionerRole.meta" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta.lastUpdated">
      <path value="PractitionerRole.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta.source">
      <path value="PractitionerRole.meta.source" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.meta.profile">
      <path value="PractitionerRole.meta.profile" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.text">
      <path value="PractitionerRole.text" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <comment value="Usage Note:  For PS-ON - this can be populated with a UUID" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier.system">
      <path value="PractitionerRole.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier.value">
      <path value="PractitionerRole.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <comment value="Conformance Rule:   This must be populated when known.   There are some situations, such as receiving a report from an Emergency Physician where there are no Practitioner details." />
      <type>
        <code value="Reference" />
        <aggregation value="bundled" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner.reference">
      <path value="PractitionerRole.practitioner.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner.display">
      <path value="PractitionerRole.practitioner.display" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <comment value="Conformance Rule:   This must be populated when known.    May not be known when a specialist sends a report; organization/clinic data may not be provided.&#xD;&#xA;&#xD;&#xA;References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://telus.com/fhir/StructureDefinition/profile-organization-patientchart" />
        <aggregation value="bundled" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization.reference">
      <path value="PractitionerRole.organization.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization.display">
      <path value="PractitionerRole.organization.display" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <comment value="Usage:   If no code mapping exists, text must be sent. in its place.   &#xD;&#xA;&#xD;&#xA;Conformance Rule: This is the role that the practitioner was playing when this message was created.    If the role code is not known, text must be used." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.coding">
      <path value="PractitionerRole.code.coding" />
      <comment value="Conformance:   Two codes should be sent; one from the HealthcareProviderRoleCode set (Infoway code system) and a second one that uses a SNOMED code system and supports messaging with international communities.    Rationale:   The Infoway code system may be replaced with SNOMED in the future though it must be supported until that time in order to align with Core-CA, PS-ON and PS-CA profiles.  It is the primary subset for use in Canada.&#xD;&#xA;&#xD;&#xA;Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
      <mustSupport value="true" />
    </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" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.coding.display.extension">
      <path value="PractitionerRole.code.coding.display.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="PractitionerRole.code.coding.display.extension:RoleDisplayTranslation">
      <path value="PractitionerRole.code.coding.display.extension" />
      <sliceName value="RoleDisplayTranslation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/translation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.text">
      <path value="PractitionerRole.code.text" />
      <comment value="Usage note:   This should be populated when translation has occurred; the text conveys the original value from the EMR.   It must be present if a local code is used&#xD;&#xA;&#xD;&#xA;Very often the text is the same as a displayName of one of the codings." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <comment value="*** confirm that we will use the Infoway code set - doesn't seem to be avaialbel yet on the infoway site; see PS_ON&#xD;&#xA;&#xD;&#xA;Conformance Rule:  This must be populated by sending systems if known. Both the preferred code and the local code should be included when known. Where no local code exist, the text should be populated. If the mapping from the local code to the preferred code set (SNOMED) is not available, only the local code is sent." />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.coding">
      <path value="PractitionerRole.specialty.coding" />
      <comment value="Usage Note: Specialty.coding will not be returned at this time; only Specialty.text will be returned in TPR Queries&#xD;&#xA;Usage Note:  In Ontario, the two digit code used for billing can be used" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.coding.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <min value="1" />
      <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.specialty.text">
      <path value="PractitionerRole.specialty.text" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.text.extension">
      <path value="PractitionerRole.specialty.text.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="PractitionerRole.specialty.text.extension:SpecialtyTextTranslation">
      <path value="PractitionerRole.specialty.text.extension" />
      <sliceName value="SpecialtyTextTranslation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/translation" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>