{
  "resourceType": "StructureDefinition",
  "id": "Extension-NHSBSAprescriptionType",
  "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
  "version": "0.2.0",
  "name": "ExtensionNHSBSAprescriptionType",
  "title": "Extension NHS BSA Prescription Type",
  "status": "draft",
  "date": "2025-04-03",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "NHS England",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "An extension used to record care setting and type of prescriber.",
  "purpose": "An extension used to record care setting and type of prescriber.",
  "copyright": "Copyright &#169; 2025+ NHS England 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  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 \\&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. HL7&#174; FHIR&#174; standard Copyright &#169; 2011+ HL7 The HL7&#174; FHIR&#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": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationRequest"
    },
    {
      "type": "element",
      "expression": "RequestGroup"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Setting and HCP type for the prescrption",
        "definition": "Care Setting and type of prescriber.",
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "An extension used to record care setting and type of prescriber.",
        "min": 1,
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://fhir.nhs.uk/ValueSet/DM-prescription-type"
        }
      },
      {
        "id": "Extension.value[x].system",
        "path": "Extension.value[x].system",
        "min": 1
      },
      {
        "id": "Extension.value[x].code",
        "path": "Extension.value[x].code",
        "min": 1
      }
    ]
  }
}