<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Extension-NHSBSAprescriptionType" />
  <url value="https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType" />
  <version value="0.2.0" />
  <name value="ExtensionNHSBSAprescriptionType" />
  <title value="Extension NHS BSA Prescription Type" />
  <status value="draft" />
  <date value="2025-04-03" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="An extension used to record care setting and type of prescriber." />
  <purpose value="An extension used to record care setting and type of prescriber." />
  <copyright value="Copyright &amp;#169; 2025+ NHS England Licensed under the Apache License, Version 2.0 (the \&amp;quot;License\&amp;quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \&amp;quot;AS IS\&amp;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. HL7&amp;#174; FHIR&amp;#174; standard Copyright &amp;#169; 2011+ HL7 The HL7&amp;#174; FHIR&amp;#174; standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="MedicationRequest" />
  </context>
  <context>
    <type value="element" />
    <expression value="RequestGroup" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Setting and HCP type for the prescrption" />
      <definition value="Care Setting and type of prescriber." />
      <max value="1" />
    </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.uk/StructureDefinition/Extension-DM-PrescriptionType" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="An extension used to record care setting and type of prescriber." />
      <min value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.nhs.uk/ValueSet/DM-prescription-type" />
      </binding>
    </element>
    <element id="Extension.value[x].system">
      <path value="Extension.value[x].system" />
      <min value="1" />
    </element>
    <element id="Extension.value[x].code">
      <path value="Extension.value[x].code" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>