<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="2f57e69e-4709-4c3e-980b-628c1f2db670" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2023-09-28T12:19:32.112+00:00" />
    <source value="#25HnKpLEHK8daWhc" />
  </meta>
  <url value="https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-PractitionerRole-Employee" />
  <version value="1.0.0" />
  <name value="IDMSPractitionerRoleExternalOrganization" />
  <status value="active" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <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:Department">
      <path value="PractitionerRole.extension" />
      <sliceName value="Department" />
      <definition value="#### **_`IDMS:  The Department.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Department" />
      </type>
    </element>
    <element id="PractitionerRole.extension:JobTitle">
      <path value="PractitionerRole.extension" />
      <sliceName value="JobTitle" />
      <definition value="#### **_`IDMS:  The job title.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/Title" />
      </type>
    </element>
    <element id="PractitionerRole.extension:searchableString">
      <path value="PractitionerRole.extension" />
      <sliceName value="SearchableString" />
      <definition value="#### **_`IDMS:  Allows for searching on a combination of elements.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/SearchableExtraString" />
      </type>
    </element>
    <element id="PractitionerRole.extension:CreatedDate">
      <path value="PractitionerRole.extension" />
      <sliceName value="CreatedDate" />
      <definition value="#### **_`IDMS:  This is the date and time the record was created.`_**" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedDate" />
      </type>
    </element>
    <element id="PractitionerRole.extension:CreatedUser">
      <path value="PractitionerRole.extension" />
      <sliceName value="CreatedUser" />
      <definition value="#### **_`IDMS:  This is the reference to the user that created the record.`_**" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedUser" />
      </type>
    </element>
    <element id="PractitionerRole.extension:UpdatedDate">
      <path value="PractitionerRole.extension" />
      <sliceName value="UpdatedDate" />
      <definition value="#### **_`IDMS:  This is the date and time the record was updated.`_**" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedDate" />
      </type>
    </element>
    <element id="PractitionerRole.extension:UpdatedUser">
      <path value="PractitionerRole.extension" />
      <sliceName value="UpdatedUser" />
      <definition value="#### **_`IDMS:  This is the reference to the user that updated the record.`_**" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedUser" />
      </type>
    </element>
    <element id="PractitionerRole.extension:migrationNotes">
      <path value="PractitionerRole.extension" />
      <sliceName value="migrationNotes" />
      <definition value="#### **_`IDMS:  Data that was migrated from DSTS that is no longer needed.`_**" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.gov.on.ca/idms/fhir/StructureDefinition/MigrationNotes" />
      </type>
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.period">
      <path value="PractitionerRole.period" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <definition value="#### **_`IDMS:  This is the person that has this role.`_**" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <definition value="#### **_`IDMS:  This is the drug company that has this role. For Employees it's the Ministy of Health`_**" />
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <short value="Security Authorization Code" />
      <definition value="#### **_`IDMS:  This is the security authorization roles.  Employees always have 2 role codes AUTHORIZATION-ROLE-EMPLOYEE and an employee role code from the CodeSystem: https://health.gov.on.ca/idms/fhir/CodeSystem/EmployeeRole `_**" />
    </element>
    <element id="PractitionerRole.code.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <min value="0" />
    </element>
    <element id="PractitionerRole.code.coding.version">
      <path value="PractitionerRole.code.coding.version" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <short value="Security Authorization Role" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding.display">
      <path value="PractitionerRole.code.coding.display" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.coding.userSelected">
      <path value="PractitionerRole.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code.text">
      <path value="PractitionerRole.code.text" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.healthcareService">
      <path value="PractitionerRole.healthcareService" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.contact">
      <path value="PractitionerRole.contact" />
      <definition value="#### **_`IDMS:  The work phone number and  email addresses .`_**" />
    </element>
    <element id="PractitionerRole.characteristic">
      <path value="PractitionerRole.characteristic" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.communication">
      <path value="PractitionerRole.communication" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.availability">
      <path value="PractitionerRole.availability" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.endpoint">
      <path value="PractitionerRole.endpoint" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>