{
  "resourceType": "StructureDefinition",
  "id": "Extension-EPS-TaskBusinessStatus",
  "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus",
  "version": "0.2.0",
  "name": "ExtensionEPSTaskBusinessStatus",
  "title": "Extension EPS Task Business Status",
  "status": "draft",
  "date": "2025-04-17",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "NHS England",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "An extension use to record the status of a prescription.",
  "purpose": "An extension use to record the status of a prescription.",
  "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",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationDispense"
    },
    {
      "type": "element",
      "expression": "Claim.item"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Dispensing Prescription Status"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "An extension use to record the status of a prescription.",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.nhs.uk/ValueSet/DM-prescription-task-status-reason"
        }
      },
      {
        "id": "Extension.value[x].system",
        "path": "Extension.value[x].system",
        "min": 1
      },
      {
        "id": "Extension.value[x].code",
        "path": "Extension.value[x].code",
        "min": 1
      },
      {
        "id": "Extension.value[x].display",
        "path": "Extension.value[x].display",
        "min": 1
      }
    ]
  }
}