<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-07-14T10:22:23.081+01:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pa" />
  </extension>
  <url value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-PractitionerRole-1" />
  <version value="0.0.1" />
  <name value="CareConnect-PractitionerRole-1" />
  <status value="draft" />
  <date value="2017-07-11T10:52:33.3096011+01:00" />
  <publisher value="HL7 UK" />
  <description value="The PractitionerRole resource represents a specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time." />
  <copyright value="Copyright © 2016 HL7 UK&#xD;&#xA;&#xD;&#xA;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole.identifier.assigner">
      <path value="PractitionerRole.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <ordered value="false" />
        <rules value="openAtEnd" />
      </slicing>
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName">
      <path value="PractitionerRole.code" />
      <sliceName value="sdsJobRoleName" />
      <max value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PractitionerRole" />
        </extension>
        <strength value="required" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SDSJobRoleName-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding">
      <path value="PractitionerRole.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/CareConnect-SDSJobRoleName-1" />
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding.version">
      <path value="PractitionerRole.code.coding.version" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="PractitionerRole.code.coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code:sdsJobRoleName.coding.userSelected">
      <path value="PractitionerRole.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1" />
      </type>
    </element>
  </differential>
</StructureDefinition>