Workflow
- FHIR Workflow via a Broker. Usage examples:
- Electronic Referral Service (eRS)
- Electronic Prescription Service (EPS)
- Event Sharing. Usage examples:
- Vaccinations Event Sharing
- Ad-Hoc Workflow Communication Patterns. Usage examples:
- Pathology
- Booking and Referral Standard (BARS)
Workflow Management with a broker includes a central registry which allows the coordination of the workflow activities. Within NHS Digital these generally follow FHIR Workflow Management with a Broker pattern.
Examples within NHS Digital include:
Electronic Referral Service (eRS)
The following description is a high-level representation of eRS. Some of the interactions are not currently implemented.
- The referral is sent by the referrer to eRS via the FHIR RESTful POST /ServiceRequest end point. Note: this may also include sending of referral supporting information, see eRS documentation for more details.
- Internally eRS will create a fulfilment Task and work item Tasks as required.
- The service (filler) of these Tasks is notified (need to check if this is true enough?).
- The service may claim or action these Tasks
- As the ServiceRequest is being actioned/fulfilled, the service will generate event notifications. These are generally out of scope for eRS workflow and will include a wide variety of event notifications such as ADT messages, discharge letters, etc.
- The ServiceRequest or Task is marked as completed and this closes the referral or work flow item.
- The referrer and service can check on the status of the Task/ServiceRequest as required via querying eRS endpoints
Electronic Prescription Service (EPS)
EPS does not support notifications and due to technical & legal constraints, the Request (2) and Events (5a and 6) interactions use FHIR Messaging.
- The prescription-order is signed by sending the prescription-order FHIR Message via POST /$prepare endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Prescribing-prepare-prescription)
- The signature section is added to the prescription-order FHIR Message and this is sent to EPS via the POST /$process-message endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Prescribing-send-prescription-order-message)
- Internally within EPS this FHIR Message is converted to a HL7v3 ParentPrescription and the top level of this structure is represented as a FHIR Task (prescription).
- The dispenser polls EPS for prescriptions to act upon or retrieves specific prescriptions via the FHIR Operation POST /Task/$release endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Dispensing-release)
- As the dispenser fulfils the prescription-order they will generate dispense-notifications and/or return/cancel the Task (prescription). Note this actions and those by the prescriber (6) have no set sequence.
- The dispenser sends a series of FHIR Message dispense-notifications (and dispense-notification-updates) to EPS via the POST /$process-message endpoint. (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Dispensing-return). These notifications update the Task (prescription) and the fulfilment Task is deemed as completed by statuses in the dispense-notification.
- The dispenser returns the prescription (they can't fulfil the prescription-order) or cancels the fulfilment of the prescription order (the prescription-order has issues) via the FHIR RESTful POST /Task endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Dispensing-return)
- The prescriber can cancel the prescription-order via the FHIR Message POST /$process-message endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Prescribing-send-prescription-order-update-message)
- The prescriber or dispenser can check the overall status of the prescription fulfilment via the FHR RESTful GET /Task endpoint (https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir#api-Tracker-get-task)
These patterns are often implemented with middleware support, these can be a number of components such as a Trust Integration Engine (TIE), Message Queue (MQ)/MESH, etc. The communication is generally point to point between the placer and the filler.
FHIR documentation on these patterns can be found on Ad-Hoc Workflow Communication Patterns. In particular Messaging request from placer to filler & acknowledgment
Pathology
Pathology is commonly implemented in the NHS using HL7 v2 Messages. The national standards follow a similar pattern using EDIFACT, HL7 v3 and FHIR STU3 Pathology Messages. The HL7 FHIR version is used for illustration of the pattern.
- The Test Request is created in the EPR or Order Comms software, it is sent to the laboratory via the TIE. (HL7 v2.4 OML_O21 - Laboratory order)
- The TIE forwards on the request to the Laboratory
- The laboratory performs the test and send out the results via the TIE. (HL7 v2.4 ORU_R01 - Unsolicited transmission of an observation message)
- The TIE forwards the results (response) to the requester, this response may also go via MESH is the requester is in primary care sector. The TIE may choose to distribute the results to other recipients.
Booking and Referral Standard
BARS is designed around traditional point to point messaging exchanges which are implemented as FHIR Messages. This is similar to Pathology workflow above with the addition of a central registry to record ServiceRequests. It is also similar to HL7 v2.4 REF_I12 Patient Referral and associated response messages (REF_I13 Modify Patient Referral and REF_I14 Cancel Patient Referral
- The referral is sent to the BARS POST /$process-message endpoint (https://digital.nhs.uk/developer/api-catalogue/booking-and-referral-fhir#api-Message-processMessage)
- This referral is then routed to the services POST /$process-message endpoint
- The service can respond via the BARS POST /$process-message endpoint (https://digital.nhs.uk/developer/api-catalogue/booking-and-referral-fhir#api-Message-processMessage)
- This response is then routed to the referrers POST /$process-message endpoint
- As the ServiceRequest is being actioned/fulfilled, the service will generate event notifications. These are generally out of scope for eRS workflow and will include a wide variety of event notifications such as ADT messages, discharge letters, etc.
- The referrer and service can check on the status of the referral as required via querying BARS FHIR RESTful ServiceRequest endpoint (https://digital.nhs.uk/developer/api-catalogue/booking-and-referral-fhir#api-Referral)