NHS Digital FHIR Medicines

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",
    "extension":  [
        {
            "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent",
            "valueReference": {
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/sds-user-id",
                    "value": "7654321"
                }
            }
        }
    ],
    "contained":  [
        {
            "resourceType": "PractitionerRole",
            "id": "requester",
            "identifier":  [
                {
                    "system": "https://fhir.nhs.uk/Id/sds-role-profile-id",
                    "value": "641555508105"
                }
            ],
            "practitioner": {
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/sds-user-id",
                    "value": "7654321"
                },
                "display": "Ms Lottie Maifeld"
            },
            "organization": {
                "reference": "#organisation"
            },
            "code":  [
                {
                    "coding":  [
                        {
                            "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode",
                            "code": "S0030:G0100:R0620"
                        }
                    ]
                }
            ],
            "telecom":  [
                {
                    "system": "phone",
                    "use": "work",
                    "value": "01234567890"
                }
            ]
        },
        {
            "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",
    "statusReason": {
        "coding":  [
            {
                "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason",
                "code": "0002",
                "display": "Unable to dispense medication on prescriptions"
            }
        ]
    },
    "intent": "order",
    "groupIdentifier": {
        "system": "https://fhir.nhs.uk/Id/prescription-order-number",
        "value": "83C40E-A23856-00123C"
    },
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/CodeSystem/task-code",
                "code": "fulfill",
                "display": "Fulfill the focal request"
            }
        ]
    },
    "focus": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/prescription-order-number",
            "value": "83C40E-A23856-00123C"
        }
    },
    "for": {
        "identifier": {
            "system": "https://fhir.nhs.uk/Id/nhs-number",
            "value": "9446368138"
        }
    },
    "authoredOn": "2016-03-10T22:39:32-04:00",
    "requester": {
        "reference": "#requester"
    },
    "reasonCode": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "33633005",
                "display": "Prescription of drug"
            }
        ]
    },
    "input":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "16076005",
                        "display": "Prescription"
                    }
                ]
            },
            "valueReference": {
                "type": "MedicationRequest",
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/prescription-order-item-number",
                    "value": "1e34ee53-397a-2e70-e97c-67b1bd95014d"
                }
            }
        }
    ]
}
<Task xmlns="http://hl7.org/fhir">
    <id value="ee1b55f8-113c-4725-99a3-25fbad366dd6" />
    <contained>
        <PractitionerRole>
            <id value="requester" />
            <identifier>
                <system value="https://fhir.nhs.uk/Id/sds-role-profile-id" />
                <value value="641555508105" />
            </identifier>
            <practitioner>
                <identifier>
                    <system value="https://fhir.nhs.uk/Id/sds-user-id" />
                    <value value="7654321" />
                </identifier>
                <display value="Ms Lottie Maifeld" />
            </practitioner>
            <organization>
                <reference value="#organisation" />
            </organization>
            <code>
                <coding>
                    <system value="https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode" />
                    <code value="S0030:G0100:R0620" />
                </coding>
            </code>
            <telecom>
                <system value="phone" />
                <value value="01234567890" />
                <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>
    <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent">
        <valueReference>
            <identifier>
                <system value="https://fhir.nhs.uk/Id/sds-user-id" />
                <value value="7654321" />
            </identifier>
        </valueReference>
    </extension>
    <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="83C40E-A23856-00123C" />
    </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="fulfill" />
            <display value="Fulfill the focal request" />
        </coding>
    </code>
    <focus>
        <identifier>
            <system value="https://fhir.nhs.uk/Id/prescription-order-number" />
            <value value="83C40E-A23856-00123C" />
        </identifier>
    </focus>
    <for>
        <identifier>
            <system value="https://fhir.nhs.uk/Id/nhs-number" />
            <value value="9446368138" />
        </identifier>
    </for>
    <authoredOn value="2016-03-10T22:39:32-04:00" />
    <requester>
        <reference value="#requester" />
    </requester>
    <reasonCode>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="33633005" />
            <display value="Prescription of drug" />
        </coding>
    </reasonCode>
    <input>
        <type>
            <coding>
                <system value="http://snomed.info/sct" />
                <code value="16076005" />
                <display value="Prescription" />
            </coding>
        </type>
        <valueReference>
            <type value="MedicationRequest" />
            <identifier>
                <system value="https://fhir.nhs.uk/Id/prescription-order-item-number" />
                <value value="1e34ee53-397a-2e70-e97c-67b1bd95014d" />
            </identifier>
        </valueReference>
    </input>
</Task>
Task
back to top