<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Extension-DataStandardsWales-Speciality" />
  <url value="https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-Speciality" />
  <version value="1.0.0" />
  <name value="ExtensionDataStandardsWalesSpeciality" />
  <status value="active" />
  <experimental value="false" />
  <date value="2026-03-09" />
  <publisher value="NHS Wales" />
  <contact>
    <name value="Data Standards" />
    <telecom>
      <system value="email" />
      <value value="data.standards@wales.nhs.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="An extension to carry the specialty of a practitioner that would be required to perform the service requested in this appointment" />
  <purpose value="An extension to carry the specialty of a practitioner that would be required to perform the service requested in this appointment" />
  <copyright value="2026 NHS Wales" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Encounter" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="The specialty of a practitioner that would be required to perform the service requested in this appointmen" />
      <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointmen" />
      <mustSupport value="true" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-Speciality" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="The specialty of a practitioner that would be required to perform the service requested at this encounter" />
      <definition value="The specialty of a practitioner that would be required to perform the service requested at this encounter" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-PracticeSettingCode" />
      </binding>
    </element>
  </differential>
</StructureDefinition>