NHS Digital FHIR Medicines (Retired - 2.1.14)

This guidance is under active development by NHS Digital and content may be added or updated on a regular basis.

Task Cancel Dispense Notification

On HL7v3 EPS this is called ETPWithdraw. This Task can cancel a previous dispense-notification message.

{
    "resourceType": "Task",
    "id": "6a2624a2-321b-470e-91a6-8ae7a065e2f0",
    "contained":  [
        {
            "resourceType": "PractitionerRole",
            "id": "16708936-6397-4e03-b84f-4aaa790633e0",
            "identifier":  [
                {
                    "system": "https://fhir.nhs.uk/Id/sds-role-profile-id",
                    "value": "555086415105"
                }
            ],
            "practitioner": {
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/sds-user-id",
                    "value": "3415870201"
                },
                "display": "Jackie Clark"
            },
            "organization": {
                "reference": "#org"
            },
            "code":  [
                {
                    "coding":  [
                        {
                            "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode",
                            "code": "R8000",
                            "display": "Clinical Practitioner Access Role"
                        }
                    ]
                }
            ],
            "telecom":  [
                {
                    "system": "phone",
                    "use": "work",
                    "value": "02380798431"
                }
            ]
        },
        {
            "resourceType": "Organization",
            "id": "org",
            "identifier":  [
                {
                    "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                    "value": "VNE51"
                }
            ],
            "address":  [
                {
                    "city": "West Yorkshire",
                    "use": "work",
                    "line":  [
                        "17 Austhorpe Road",
                        "Crossgates",
                        "Leeds"
                    ],
                    "postalCode": "LS15 8BA"
                }
            ],
            "active": true,
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "https://fhir.nhs.uk/CodeSystem/organisation-role",
                            "code": "182",
                            "display": "PHARMACY"
                        }
                    ]
                }
            ],
            "name": "The Simple Pharmacy",
            "telecom":  [
                {
                    "system": "phone",
                    "use": "work",
                    "value": "0113 3180277"
                }
            ]
        }
    ],
    "identifier":  [
        {
            "system": "https://tools.ietf.org/html/rfc4122",
            "value": "5ac84c11-db8b-44da-8fcf-8980b3d13596"
        }
    ],
    "status": "in-progress",
    "intent": "order",
    "groupIdentifier": {
        "system": "https://fhir.nhs.uk/Id/prescription-order-number",
        "value": "C2782B-A99968-4E4E9Z"
    },
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/CodeSystem/task-code",
                "code": "abort",
                "display": "Mark the focal resource as no longer active"
            }
        ]
    },
    "focus": {
        "type": "Bundle",
        "identifier": {
            "system": "https://tools.ietf.org/html/rfc4122",
            "value": "602159ee-1678-41ec-a100-7b3dd04c1d84"
        }
    },
    "for": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/nhs-number",
            "value": "9990548609"
        }
    },
    "authoredOn": "2020-12-21T17:03:20+00:00",
    "owner": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
            "value": "VN6XW"
        }
    },
    "statusReason": {
        "coding":  [
            {
                "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason",
                "code": "DA",
                "display": "Dosage Amendments"
            }
        ]
    },
    "requester": {
        "reference": "#16708936-6397-4e03-b84f-4aaa790633e0"
    }
}
<Task xmlns="http://hl7.org/fhir">
    <id value="6a2624a2-321b-470e-91a6-8ae7a065e2f0" />
    <contained>
        <PractitionerRole>
            <id value="16708936-6397-4e03-b84f-4aaa790633e0" />
            <identifier>
                <system value="https://fhir.nhs.uk/Id/sds-role-profile-id" />
                <value value="555086415105" />
            </identifier>
            <practitioner>
                <identifier>
                    <system value="https://fhir.nhs.uk/Id/sds-user-id" />
                    <value value="3415870201" />
                </identifier>
                <display value="Jackie Clark" />
            </practitioner>
            <organization>
                <reference value="#org" />
            </organization>
            <code>
                <coding>
                    <system value="https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode" />
                    <code value="R8000" />
                    <display value="Clinical Practitioner Access Role" />
                </coding>
            </code>
            <telecom>
                <system value="phone" />
                <value value="02380798431" />
                <use value="work" />
            </telecom>
        </PractitionerRole>
    </contained>
    <contained>
        <Organization>
            <id value="org" />
            <identifier>
                <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
                <value value="VNE51" />
            </identifier>
            <active value="true" />
            <type>
                <coding>
                    <system value="https://fhir.nhs.uk/CodeSystem/organisation-role" />
                    <code value="182" />
                    <display value="PHARMACY" />
                </coding>
            </type>
            <name value="The Simple Pharmacy" />
            <telecom>
                <system value="phone" />
                <value value="0113 3180277" />
                <use value="work" />
            </telecom>
            <address>
                <use value="work" />
                <line value="17 Austhorpe Road" />
                <line value="Crossgates" />
                <line value="Leeds" />
                <city value="West Yorkshire" />
                <postalCode value="LS15 8BA" />
            </address>
        </Organization>
    </contained>
    <identifier>
        <system value="https://tools.ietf.org/html/rfc4122" />
        <value value="5ac84c11-db8b-44da-8fcf-8980b3d13596" />
    </identifier>
    <groupIdentifier>
        <system value="https://fhir.nhs.uk/Id/prescription-order-number" />
        <value value="C2782B-A99968-4E4E9Z" />
    </groupIdentifier>
    <status value="in-progress" />
    <statusReason>
        <coding>
            <system value="https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason" />
            <code value="DA" />
            <display value="Dosage Amendments" />
        </coding>
    </statusReason>
    <intent value="order" />
    <code>
        <coding>
            <system value="http://hl7.org/fhir/CodeSystem/task-code" />
            <code value="abort" />
            <display value="Mark the focal resource as no longer active" />
        </coding>
    </code>
    <focus>
        <type value="Bundle" />
        <identifier>
            <system value="https://tools.ietf.org/html/rfc4122" />
            <value value="602159ee-1678-41ec-a100-7b3dd04c1d84" />
        </identifier>
    </focus>
    <for>
        <identifier>
            <system value="https://fhir.nhs.uk/Id/nhs-number" />
            <value value="9990548609" />
        </identifier>
    </for>
    <authoredOn value="2020-12-21T17:03:20+00:00" />
    <requester>
        <reference value="#16708936-6397-4e03-b84f-4aaa790633e0" />
    </requester>
    <owner>
        <identifier>
            <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
            <value value="VN6XW" />
        </identifier>
    </owner>
</Task>
Task
back to top