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 Return Prescription Order

A return prescription order, returns the prescription to the prescription-tracker (EPS). Medications will not have been dispensed.

{
    "resourceType": "Task",
    "id": "ee1b55f8-113c-4725-99a3-25fbad366dd6",
    "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": "#organisation"
            },
            "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": "organisation",
            "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": "add2e9dd-da0a-c266-a4e3-447c68239525"
        }
    ],
    "status": "rejected",
    "intent": "order",
    "groupIdentifier": {
        "system": "https://fhir.nhs.uk/Id/prescription-order-number",
        "value": "18B064-A99968-4BCAA3"
    },
    "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": "67c585f6-f4b5-4f53-861a-50c07ecff5d4"
        }
    },
    "for": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/nhs-number",
            "value": "9449304289"
        }
    },
    "authoredOn": "2016-03-10T22:39:32+00:00",
    "owner": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
            "value": "VNFKT"
        }
    },
    "statusReason": {
        "coding":  [
            {
                "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason",
                "code": "0002",
                "display": "Unable to dispense medication on prescriptions"
            }
        ]
    },
    "requester": {
        "reference": "#16708936-6397-4e03-b84f-4aaa790633e0"
    }
}
<Task xmlns="http://hl7.org/fhir">
    <id value="ee1b55f8-113c-4725-99a3-25fbad366dd6" />
    <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="#organisation" />
            </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="organisation" />
            <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="add2e9dd-da0a-c266-a4e3-447c68239525" />
    </identifier>
    <groupIdentifier>
        <system value="https://fhir.nhs.uk/Id/prescription-order-number" />
        <value value="18B064-A99968-4BCAA3" />
    </groupIdentifier>
    <status value="rejected" />
    <statusReason>
        <coding>
            <system value="https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason" />
            <code value="0002" />
            <display value="Unable to dispense medication on prescriptions" />
        </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="67c585f6-f4b5-4f53-861a-50c07ecff5d4" />
        </identifier>
    </focus>
    <for>
        <identifier>
            <system value="https://fhir.nhs.uk/Id/nhs-number" />
            <value value="9449304289" />
        </identifier>
    </for>
    <authoredOn value="2016-03-10T22:39:32+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="VNFKT" />
        </identifier>
    </owner>
</Task>
Task
back to top