<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="7dfce760-2c9b-45a5-bff5-504a3ec9bcf0" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-SDS" />
  <name value="NHSDigitalPractitionerRoleSDS" />
  <status value="draft" />
  <description value="This profile is designed to support backwards compatibility with NHS Digital Spine HL7 v3 API's. It should not be used for new API's. &#xD;&#xA;&#xD;&#xA;The use of SDS identifiers here is not widely supported and ODS identifiers (professional codes) are preferred instead." />
  <purpose value="Constraint profile for Electronic Prescription System which enforces practitioner, organization, sds role code, sds user profile id and telecom elements in contained resources," />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:sdsRoleProfileID">
      <path value="PractitionerRole.identifier" />
      <sliceName value="sdsRoleProfileID" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.practitioner.identifier">
      <path value="PractitionerRole.practitioner.identifier" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.practitioner.identifier.system">
      <path value="PractitionerRole.practitioner.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/sds-user-id" />
    </element>
    <element id="PractitionerRole.practitioner.identifier.value">
      <path value="PractitionerRole.practitioner.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.practitioner.display">
      <path value="PractitionerRole.practitioner.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization-SDS" />
      </type>
    </element>
    <element id="PractitionerRole.organization.reference">
      <path value="PractitionerRole.organization.reference" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.organization.identifier.system">
      <path value="PractitionerRole.organization.identifier.system" />
      <fixedUri value="https://fhir.nhs.uk/Id/ods-organization-code" />
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding:sdsJobRoleCode">
      <path value="PractitionerRole.code.coding" />
      <sliceName value="sdsJobRoleCode" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.telecom">
      <path value="PractitionerRole.telecom" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>