Pre## Prescription Management
EPS is an implementation of FHIR Workflow Management and implements those patterns. These are focused on the FHIR Task resource which is used to represent the 'prescription' within EPS.
Prescription fulfilment is modelled using the FHIR NHSDigital-Task resource. This
Task has links to both the MedicationRequest and MedicationDispense resources from
dispense-notification messages. Prescription Managment acts on the Task resource only.
A summary of FHIR Task is below:
|status||The current status of the
|reasonCode||The Task reason, either
|for||The NHS Number of the Patient the Task is for|
|requester||Who is created the Request (
|owner||Who is responsible for actioning the request (normally the pharmacy for
|input||Pointers to the MedicationRequest which are accessed by EPSQueryAPI|
|output||Pointers to the MedicationDispense which are accessed by EPSQueryAPI|
This Task resource is becomes available on receipt of a PrescriptionOrder and is then updated by the other workflow messages. the Task will be given a status of 'requested', this is item 1 in the diagram below:
When the prescription is released by a pharmacy (item 2) the status changes to 'accepted'. When EPS receives a Prescription Dispense (item 3) the status will change to 'in-progress'. If all items in the Presciption Dispense state they are completed, the Task status will change to 'completed'.
The current status of the prescription can be viewed via the Prescription Tracker API
In a similar manner
dispense-notification workflow events and the EPS generated
prescription-order for continuous-repeat-dispensing, are also represented as sub Tasks.
The Task (code = prescription-order) interactions are:
The Task (code = dispense-notification) interactions are:
- dispense withdraw Cancel a Dispense Notification
The prescription token allows the patient to choose the pharmacy which will fulfill the prescription order.
The prescription token is used by the dispenser to retrieve a non-nominated prescription quickly and effectively without having to cross-reference different stand-alone systems.
The prescription may be in a variety of forms:
For EPS purposes they are both considered to be FHIR NHSDigital-Task
- The Prescription Release operation is used to retrieve the prescriptions using the prescription token id code as a parameter.
For nominated or one off prescriptions EPS will assign the Task based on
- one-off nomination in the Prescription Order
- patients nomination recorded in PDS (the patient can change this via NHSApp)