<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="51533f7f-1fa3-4866-a200-01618d377455" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
  <name value="NHSDigitalPractitionerRole" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole">
      <path value="PractitionerRole" />
      <constraint>
        <key value="role-spurious" />
        <severity value="warning" />
        <human value="Spurious Code format must be G6NNNNNN or G7NNNNNN" />
        <expression value="identifier.where(system='https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code').value.matches('^[G]{1}[67]{1}[0-9]{6}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-sds-role-profile" />
        <severity value="error" />
        <human value="SDS Role Profile Id must be 12 digits" />
        <expression value="identifier.where(system='https://fhir.nhs.uk/Id/sds-role-profile-id').exists().not() or (identifier.where(system='https://fhir.nhs.uk/Id/sds-role-profile-id').exists()  and identifier.where(system='https://fhir.nhs.uk/Id/sds-role-profile-id').value.matches('^[0-9]{12}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
    </element>
    <element id="PractitionerRole.extension">
      <path value="PractitionerRole.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="PractitionerRole.extension:costCentre">
      <path value="PractitionerRole.extension" />
      <sliceName value="costCentre" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nhs.uk/StructureDefinition/Extension-NHSDigital-Account-code" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="| FHIR identifier | OID/HL7v3 | HL7v2 ITK | Format | Description | Professional Code  | Prescribing Code | &#xD;&#xA;|--|--|--|--|--|--|--|&#xD;&#xA;| https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code |  |  | G[67]NNNNNN | NHS BSA Spurious Code [GENERAL MEDICAL PRACTITIONER PPD CODE](https://datadictionary.nhs.uk/attributes/general_medical_practitioner_ppd_code.html) | No | Yes |&#xD;&#xA;| https://fhir.nhs.uk/Id/sds-role-profile-id | 1.2.826.0.1285.0.2.0.67 | | 12 digits | SDS Role Profile Code | No | No | &#xD;&#xA;&#xD;&#xA;The *SDS Role Profile Code* should be sourced from NHS Identity (SmartCard), this is also held within the Spine Directory Service LDAP database.&#xD;&#xA;&#xD;&#xA;Holds *NHS BSA spurious codes* which are role specific *Doctor Index Number (DIN)*) codes. *NHS BSA spurious codes* are issued when a doctor issues medication outside of their normal role, normally at another organisation. In the example below, the doctor is working in a secondary role (with SDS Role Id of 100102238986), as this a has a spurious code of 2345213. If the doctor was prescribing in their primary role this *spurious code* would be absent.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;{&#xD;&#xA;  &quot;resourceType&quot;: &quot;PractitionerRole&quot;,&#xD;&#xA;  ...&#xD;&#xA;  &quot;identifier&quot;: [&#xD;&#xA;          {&#xD;&#xA;            &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/sds-role-profile-id&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;100102238986&quot;&#xD;&#xA;          },&#xD;&#xA;          {&#xD;&#xA;            &quot;system&quot;: &quot;https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;2345213&quot;&#xD;&#xA;          }&#xD;&#xA;        ],&#xD;&#xA;  ...&#xD;&#xA;}&#xD;&#xA;```" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier:sdsRoleProfileID">
      <path value="PractitionerRole.identifier" />
      <sliceName value="sdsRoleProfileID" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier:sdsRoleProfileID.system">
      <path value="PractitionerRole.identifier.system" />
      <fixedUri value="https://fhir.nhs.uk/Id/sds-role-profile-id" />
    </element>
    <element id="PractitionerRole.identifier:nhsbsaSpuriousCode">
      <path value="PractitionerRole.identifier" />
      <sliceName value="nhsbsaSpuriousCode" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier:nhsbsaSpuriousCode.system">
      <path value="PractitionerRole.identifier.system" />
      <fixedUri value="https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <definition value="This **MUST** either be a reference to a Practitioner resource or an identifier reference plus a display. In both cases the referenced resource or identfier reference should contain a professional code. &#xD;&#xA;&#xD;&#xA;It is recommended an *identifier reference* and *display* (practioner full name) is included. This identifier should be the Practitioner's primary professional code (see `NHSDigital-Practitioner` for details on professional codes). &#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;practitioner&quot;: {&#xD;&#xA;        &quot;display&quot;: &quot;Dr Smith&quot;,&#xD;&#xA;        &quot;identifier&quot;: {&#xD;&#xA;            &quot;system&quot;: &quot;https://fhir.hl7.org.uk/Id/gmc-number&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;C9876543&quot;&#xD;&#xA;          }&#xD;&#xA;    },&#xD;&#xA;```&#xD;&#xA;&#xD;&#xA;For EPS, currently a *Resource reference* is required.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;practitioner&quot;: {&#xD;&#xA;        &quot;reference&quot;: &quot;urn:uuid:1557E58E-3B1E-41DD-B3B5-D4D393DC5A3D&quot;,&#xD;&#xA;        &quot;display&quot;: &quot;Dr Smith&quot;&#xD;&#xA;    },&#xD;&#xA;```" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner" />
      </type>
      <constraint>
        <key value="nhsd-2" />
        <severity value="warning" />
        <human value="An identifier reference or resource reference must be provided" />
        <expression value="(reference.exists() or identifier.exists())" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-nmc" />
        <severity value="warning" />
        <human value="NMC must be of the format NNANNNNA" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/nmc-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/nmc-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/nmc-number').value.matches('^[0-9]{2}[A-Z]{1}[0-9]{4}[A-Z]{1}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-gmp" />
        <severity value="error" />
        <human value="GMP must be of the format GNNNNNNN and not be a spurious code (starts with G6 or G7)" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/gmp-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/gmp-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/gmp-number').value.matches('^[G]{1}[01234589]{1}[0-9]{6}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-gmc" />
        <severity value="error" />
        <human value="GMC must be of the format CNNNNNNN" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-number').value.matches('^[C]{1}[0-9]{7}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-gphc" />
        <severity value="warning" />
        <human value="GPHC must be of the format NNNNNNN" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/gphc-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/gphc-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/gphc-number').value.matches('^[0-9]{7}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-hcpc" />
        <severity value="warning" />
        <human value="HCPC must be of the format AANNNNNN" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/hcpc-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/hcpc-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/hcpc-number').value.matches('^[A-Z]{2}[0-9]{6}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-din" />
        <severity value="warning" />
        <human value="DIN format must be NNNNNN" />
        <expression value="identifier.exists().not() or identifier.where(system='https://fhir.hl7.org.uk/Id/din-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/din-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/din-number').value.matches('^[0-9]{6}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <constraint>
        <key value="role-sds-user-numeric" />
        <severity value="error" />
        <human value="sds-user-id must be numeric" />
        <expression value="identifier.where(system='https://fhir.nhs.uk/Id/sds-user-id').exists().not() or (identifier.where(system='https://fhir.nhs.uk/Id/sds-user-id').exists()  and identifier.where(system='https://fhir.nhs.uk/Id/sds-user-id').value.matches('^[0-9]+$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner" />
      </constraint>
      <constraint>
        <key value="role-gmcreferencenumber" />
        <severity value="error" />
        <human value="GMC Reference Number must be of the format NNNNNNN" />
        <expression value="identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-reference-number').exists().not() or (identifier.where(system='https://fhir.hl7.org.uk/Id/gphc-number').exists()  and identifier.where(system='https://fhir.hl7.org.uk/Id/gmc-reference-number').value.matches('^[0-9]{7}$'))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner" />
      </constraint>
      <constraint>
        <key value="nacs-code-retired" />
        <severity value="warning" />
        <human value="NACS (/ODS) Practitioner Identifier is retired in NHS FHIR and should not be used. Please use the actual naming system instead (e,g, https://fhir.hl7.org.uk/Id/gmc-number, https://fhir.hl7.org.uk/Id/gmp-number, etc)." />
        <expression value="identifier.where(system='https://fhir.hl7.org.uk/Id/professional-code').exists().not()" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <definition value="This **MUST** either be a reference to a Organization resource or an identifier reference. In both cases the reference must contain an ANANA/ODS organisation code. &#xD;&#xA;&#xD;&#xA;&#xD;&#xA;#### organisation resource references&#xD;&#xA;&#xD;&#xA;It is recommended an *identifier reference* is included. &#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;organization&quot;: {&#xD;&#xA;        &quot;identifier&quot;: {&#xD;&#xA;            &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/ods-organization-code&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;RBA&quot;&#xD;&#xA;          },&#xD;&#xA;        &quot;display&quot;: &quot;TAUNTON AND SOMERSET NHS FOUNDATION TRUST&quot;&#xD;&#xA;    }&#xD;&#xA;```&#xD;&#xA;&#xD;&#xA;Optionally *Resource reference* can be provided. This is required in the current version of EPS but this will be changed to supporting the *identifier reference* only.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;organization&quot;: {&#xD;&#xA;        &quot;reference&quot;: &quot;urn:uuid:17c4270d-6966-4788-8cbc-1d1d63536b25&quot;,&#xD;&#xA;        &quot;identifier&quot;: {&#xD;&#xA;            &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/ods-organization-code&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;RBA&quot;&#xD;&#xA;          },&#xD;&#xA;        &quot;display&quot;: &quot;TAUNTON AND SOMERSET NHS FOUNDATION TRUST&quot;&#xD;&#xA;    }&#xD;&#xA;```" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization" />
      </type>
      <constraint>
        <key value="nhsd-1" />
        <severity value="warning" />
        <human value="PractitionerRole.organization - An identifier reference or resource reference should be provided" />
        <expression value="(reference.exists() or identifier.exists())" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.organization.identifier.system">
      <path value="PractitionerRole.organization.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.organization.identifier.value">
      <path value="PractitionerRole.organization.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <definition value="Only supply if this is known from SmartCard/CIS2 data.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;code&quot;:  [&#xD;&#xA;        {&#xD;&#xA;            &quot;coding&quot;:  [&#xD;&#xA;                {&#xD;&#xA;                    &quot;system&quot;: &quot;https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode&quot;,&#xD;&#xA;                    &quot;code&quot;: &quot;S0030:G0100:R0620&quot;&#xD;&#xA;                  }&#xD;&#xA;            ]&#xD;&#xA;        }&#xD;&#xA;    ],&#xD;&#xA;```&#xD;&#xA;&#xD;&#xA;The previous system for this entry was `https://fhir.hl7org.uk/CodeSystem/UKCore-SDSJobRoleName`, this has been retired and `https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode` should be used instead." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.nhs.uk/ValueSet/NHSDigital-PractitionerRoleCode" />
      </binding>
    </element>
    <element id="PractitionerRole.code.coding">
      <path value="PractitionerRole.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding:sdsJobRoleCode">
      <path value="PractitionerRole.code.coding" />
      <sliceName value="sdsJobRoleCode" />
      <short value="SDS Job Role Code" />
      <definition value="This value should be sourced from either APIM OAuth2 userinfo endpoint, SDS LDAP or CIS2/SmartCard details. &#xD;&#xA;&#xD;&#xA;The CodeSystem is variable and is not present in this Implementation Guide." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.code.coding:sdsJobRoleCode.system">
      <path value="PractitionerRole.code.coding.system" />
      <fixedUri value="https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <definition value="This is should be the specialty linked to the role and is not necessarily the practitioners main specialty. &#xD;&#xA;&#xD;&#xA;This can be supplemented by SNOMED CT codes from {{link:http://hl7.org/fhir/ValueSet/c80-practice-codes}}, no ConceptMap currently exists for mapping between the two.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA; &quot;specialty&quot;: [&#xD;&#xA;        {&#xD;&#xA;            &quot;coding&quot;: [&#xD;&#xA;                {&#xD;&#xA;                    &quot;system&quot;: &quot;https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-clinical-specialty&quot;,&#xD;&#xA;                    &quot;code&quot;: &quot;100&quot;,&#xD;&#xA;                    &quot;display&quot;: &quot;GENERAL SURGERY&quot;&#xD;&#xA;                }&#xD;&#xA;            ]&#xD;&#xA;        }&#xD;&#xA;    ],&#xD;&#xA;```" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.specialty.coding">
      <path value="PractitionerRole.specialty.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="PractitionerRole.specialty.coding.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.specialty.coding.code">
      <path value="PractitionerRole.specialty.coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.specialty.coding.display">
      <path value="PractitionerRole.specialty.coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.specialty.coding:NHSDataDictionarySpecialty">
      <path value="PractitionerRole.specialty.coding" />
      <sliceName value="NHSDataDictionarySpecialty" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="NHS Data Dictionary Specialty" />
        <valueSet value="https://fhir.nhs.uk/ValueSet/NHSDataModelAndDictionary-clinical-specialty" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty.coding:NHSDataDictionarySpecialty.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <fixedUri value="https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-clinical-specialty" />
    </element>
    <element id="PractitionerRole.specialty.coding:SNOMEDSpecialty">
      <path value="PractitionerRole.specialty.coding" />
      <sliceName value="SNOMEDSpecialty" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="Specific specialty associated with the agency." />
        <valueSet value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
      </binding>
    </element>
    <element id="PractitionerRole.specialty.coding:SNOMEDSpecialty.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <definition value="The contact address for the practitioner for the service they are providing in this role. This will often be the surgery address, clinic or service address. &#xD;&#xA;&#xD;&#xA;If using ODS Codes, the address on ODS must be checked to ensure it is correct. If the address is not correct, then *Resource reference* **MUST** be supplied.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;location&quot;:  [&#xD;&#xA;         {&#xD;&#xA;            &quot;identifier&quot;: {&#xD;&#xA;              &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/ods-organization-code&quot;,&#xD;&#xA;              &quot;value&quot;: &quot;RCB55&quot;&#xD;&#xA;            }&#xD;&#xA;            &quot;display&quot;: &quot;YORK HOSPITAL&quot;&#xD;&#xA;          }&#xD;&#xA;  ]&#xD;&#xA;```&#xD;&#xA;&#xD;&#xA;For EPS, currently a *Resource reference* is required.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;location&quot;:  [&#xD;&#xA;         {&#xD;&#xA;            &quot;reference&quot;: &quot;urn:uuid:ecc2db8e-3757-4758-a4f1-7f4c7e06662f&quot;,&#xD;&#xA;            &quot;display&quot;: &quot;YORK HOSPITAL&quot;&#xD;&#xA;          }&#xD;&#xA;  ]&#xD;&#xA;```" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-Location" />
      </type>
      <constraint>
        <key value="nhsd-3" />
        <severity value="error" />
        <human value="PractitionerRole.location - An identifier or resource reference must be provided" />
        <expression value="(reference.exists() or identifier.exists())" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <mustSupport value="false" />
    </element>
    <element id="PractitionerRole.location.identifier.system">
      <path value="PractitionerRole.location.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.location.identifier.value">
      <path value="PractitionerRole.location.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.healthcareService">
      <path value="PractitionerRole.healthcareService" />
      <definition value="**SHOULD** be provided for a practitioner in secondary care and will be a reference to clinic or service. This referenced resource or the identifier reference **SHOULD** contain a ODS/ANANA identifier. In secondary care Electronic Prescription Service (EPS) this will also be called **prescribing cost centre**. This is used for reimbursements from NHS BSA. In secondary care the healthchare/service cost centre may also be the ODS code for the clinic.&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;#### healthcareService Resource reference&#xD;&#xA;&#xD;&#xA;An *identifier reference* **MUST** be included. For secondary care organisations this will be the ODS/ANANA Cost Centre code given to a clinic. &#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;healthcareService&quot;:  &#xD;&#xA;    [&#xD;&#xA;         {&#xD;&#xA;            &quot;identifier&quot;: {&#xD;&#xA;              &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/ods-organization-code&quot;,&#xD;&#xA;              &quot;value&quot;: &quot;A99968&quot;&#xD;&#xA;            }&#xD;&#xA;            &quot;display&quot;: &quot;SOMERSET BOWEL CANCER SCREENING CENTRE&quot;&#xD;&#xA;          }&#xD;&#xA;    ]&#xD;&#xA;```&#xD;&#xA;&#xD;&#xA;Optionally *Resource reference* can be provided. This is required in the current version of EPS but this will be changed to supporting the *identifier reference* only.&#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;healthcareService&quot;:  &#xD;&#xA;    [&#xD;&#xA;         {&#xD;&#xA;            &quot;reference&quot;: &quot;urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e&quot;,&#xD;&#xA;            &quot;identifier&quot;: {&#xD;&#xA;              &quot;system&quot;: &quot;https://fhir.nhs.uk/Id/ods-organization-code&quot;,&#xD;&#xA;              &quot;value&quot;: &quot;A99968&quot;&#xD;&#xA;            }&#xD;&#xA;            &quot;display&quot;: &quot;SOMERSET BOWEL CANCER SCREENING CENTRE&quot;&#xD;&#xA;          }&#xD;&#xA;    ]&#xD;&#xA;```" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-HealthcareService" />
      </type>
      <constraint>
        <key value="nhsd-4" />
        <severity value="error" />
        <human value="PractitionerRole.healthcareService - An identifier reference or resource reference must be provided" />
        <expression value="(reference.exists() or (identifier.exists()))" />
        <source value="https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.healthcareService.identifier.system">
      <path value="PractitionerRole.healthcareService.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.healthcareService.identifier.value">
      <path value="PractitionerRole.healthcareService.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.telecom">
      <path value="PractitionerRole.telecom" />
      <definition value="At least one **telecom** number **MUST** be provided. &#xD;&#xA;Contact details that are specific to the role/location/service. Often practitioners have a dedicated line for each location (or service) that they work at and need to be able to define separate contact details for each of these. &#xD;&#xA;&#xD;&#xA;This is not the personnel contact number of the Practitioner, it the contact number for the practitioner in this role and may be the phone number of the clinic, main or branch surgery. &#xD;&#xA;&#xD;&#xA;```json&#xD;&#xA;&quot;telecom&quot;: [&#xD;&#xA;          {&#xD;&#xA;            &quot;system&quot;: &quot;phone&quot;,&#xD;&#xA;            &quot;value&quot;: &quot;01234567890&quot;,&#xD;&#xA;            &quot;use&quot;: &quot;work&quot;&#xD;&#xA;          }&#xD;&#xA;        ]&#xD;&#xA;```" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.telecom.value">
      <path value="PractitionerRole.telecom.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.telecom.use">
      <path value="PractitionerRole.telecom.use" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>