Medications Data Use Cases
Five medicines interoperability use cases are in scope for this guide.
- Query for 'Current' medication
- Supply of Medication
- Medications on Admission
- Medications on Discharge
- Hospital Transfer
Query for 'Current' Medication
Most medicines use cases require the clinician to obtain an understanding of the patient's current medication.
Today, the patient's GP record is the most complete record of current medication. This data is made available in four ways;
- Directly by the clinical staff within the patient's GP practice
- In summary form uploaded [in England] to the NHS Summary Care Record
- Via the IM1 pairing integration
- Via the GPConnect API.
The strategic direction for medicines interoperability is the implementation of regional Integrated Care Systems (ICS) and/or Shared Medication Records. It is expected that every ICS or Shared Medication Record obtains access to the GP medication record, combining that with medicines data coming from other provider systems.
It is expected that Regional Integrated Care Systems (ICS) and/or Shared Medication Records will implement a FHIR query API that can return a FHIR List or FHIR Bundle of MedicationStatement
resources. It would also be valid to return the transactional FHIR resources of MedicationRequest
and MedicationDispense
. See implementation options below.
Applicable FHIR resources: MedicationStatement
, and optionally MedicationRequest
and MedicationDispense
.
Definition of 'Current' Medication
A summarised version of the FCI definition is below with references to data items within the FHIR MedicationStatement resource:
Acute (single issue) Medication is current if:
- A prescription has been issued with an end of medication period date set (
MedicationStatement.effectivePeriod.end
) but the end date for the medication period has not yet passed. - If a prescription has been issued within the last 2 years (
MedicationStatement.effectiveDateTime
or.effectivePeriod.start
), but with no end date.
Repeat Medication is current if:
- There is no end date set (
MedicationStatement.effectivePeriod.end
) for the medication period. - The medication period end date(
MedicationStatement.effectivePeriod.end
) is on or after the index date (e.g. today). - And in all cases, the authorised date (
MedicationStatement.effectiveDateTime
or.effectivePeriod.start
) or last issued date (MedicationStatement.extension:medicationStatementLastIssueDate
) is within the last two years (whichever is later).
Where is 'current' determined?
There are two architectural options for where 'current' medication is determined:
- By the shared record(s) end-point returning 'current' medication.
- By the consuming system, querying for medication records from available shared record(s) then applying logic to determine what is 'current'.
For option 1, this would mean all consuming systems see the same 'current' medication. A consuming can always query for all medication if required. A query to an end-point to return only current medication for a given patient may look like this;
GET [base]/currentmedication?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|{NHS_Number}
For example;
GET https://myfhirserver.net/currentmedication?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|123543254
For Option 2, this would mean each consuming system would deturmine what is deemded 'current', ideally based on the FCI publication, but would allow different systems in different care settings to use their own definition of 'current'. The FHIR standard includes various ways to search for resources. The following search parameters for these resources defined within the FHIR standard could be useful when querying for current medication.
MedicationStatement
- subject[patient].identifier
- status (where
active
orcomplete
) - effective (will pick up either effectiveDateTime or effectivePeriod)
For example;
GET [base]/MedicationStatement?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|123543254&status=active,complete&effective=ge2020-05-11
MedicationRequest
- subject[patient].identifier
- status (where
active
orcomplete
) - intent (where
order
) - authoredOn
For example;
GET [base]/MedicationRequest?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|123543254&status=active,complete&intent=order&authoredOn=ge2020-05-11
MedicationDispense
- subject[patient].identifier
- status (where
active
orcomplete
) - whenPrepared
For example;
GET [base]/MedicationDispense?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|123543254&status=active,complete&whenPrepared=ge2020-05-11
What type FHIR resources are returned?
There are four architectural options for which FHIR resources are returned:
- Only
MedicationStatement
resources - Only
MedicationStatement
resources but includingbasedOn
referencedMedicationRequest
resources for prescribed medication - A combination of
MedicationRequest
for prescribed medication withMedicationStatement
resources for non-prescription supply - A combination of
MedicationRequest
for prescribed medication,MedicationStatement
resources for non-prescription supply andMedicationDispense
resources.
The decision for which resources to return will primarily be dictated by what level of data is available to provider systems. The MedicationStatement
resource can summarise some of the data contained within MedicationRequest
and MedicationDispense
resources. For many use cases, the level of detail available within a MedicationStatement
resource will be sufficient.
It would be feasible to build an initial implementation of the query for current medication to return only MedicationStatement
resources. This can be extended in a future release to return the more detailed resources if/when these are required to support additional and more complex consumer use cases.
MedicationStatement
resource, it should be interpreted as the provider system has no known current medications for the patient recorded. This does not mean that patient is definately not on any medication. Another shared record in another region (or country, i.e. Wales or Scotland) may hold medication records for the patient. There is a SNOMED code for 787481004 | No known medications (situation) but this is not required nor expected to be supported by provider or consumer systems.
Supply of Medication
Primary Care / Community Supply
Applicable for the following use cases;
- Primary Care, Community Care and Urgent and Emergency Care (UEC) medication requests to community pharmacy (aka an
FP10
in England orGP10
in Scotland). - Outpatient medication requests to be dispensed by a Community Pharmacy (aka an
FP10HNC
). - Outpatient medication requests to a contracted Outpatient pharmacy.
- Outpatient medication requests to a Homecare medicines provider.
NHS England Electronic Prescription Service FHIR API
Secondary Care
Applicable for the following use cases;
- Inpatient medication requests, for a named patient, to be dispensed by the hospital pharmacy and intended for administration on a hospital ward.
- Medication requests, for a named patient who is on short-term leave from an inpatient stay (but is not discharged), to be dispensed by the hospital pharmacy and intended for administration at home.
- Discharge medication requests, for a named patient, to be dispensed by the hospital pharmacy and issued on discharge for administration at home.
- Outpatient medication requests, for a named patient, to be dispensed by the hospital pharmacy and intended for administration in the Outpatients department, Accident and Emergency department, or Day unit.
- Outpatient medication requests, for a named patient, to be dispensed by the hospital pharmacy for administration at home.
Applicable FHIR resources: MedicationRequest
and MedicationDispense
The use of FHIR resources for these use cases is identical except for the following;
- Care setting identified by the
MedicationRequest.category
. - The quantity of discharge medication to supply may be defined within a
MedicationRequest.dispenseRequest
.
Medications on Admission
On admission to any secondary/tertiary care setting, a medicines reconciliation process is generally undertaken by pharmacists and pharmacy technicians. This process comprises five steps:
- Collect an accurate medication history from appropriate sources prior to admission, or had been recently prescribed
- Develop a list of medications to be prescribed or review a list of medications which have currently been prescribed
- Compare the medications on the two lists identifying medications which have not been prescribed, where doses have changed, or new medications have been prescribed
- Make clinical decisions based on the comparison and the patients current symptoms
- Communicate gaps, confirm changes and provide recommendations of the new list to appropriate caregivers and to the patient.
Inpatient Admissions
The steps as listed above would be typically undertaken and recorded within the Trust ePMA system. Changes to on-going medication will be recorded within the Trust ePMA system and explained to the patient and other caregivers over the course of the admission and any further changes on discharge.
Outpatient Appointment / Treatment
The steps above would be typically undertaken as listed and recorded within the Trust ePMA system.
General Practice Transfer / New Registrations
When a patient registers with a GP practice the medicines reconciliation process is supported by the GP2GP service that makes available the patient's GP record from their previous GP practice clinical system. For new patient registrations where there is no existing primary care record, the GP will ask the patient to describe or bring in their current medication.
Applicable FHIR resources: MedicationStatement
Medications on Discharge
Discharge Medications, Discharge Prescription, or Medication To Take Out (TTO), are medications which are given to a patient when they are discharged from the hospital with a limited supply.
This instruction is sent to the GP via a Discharge Summary document, which may be electronic, and contains a wealth of information under several headings (each heading contains additional sub-headings with various cardinality).
The prescription may include information that the treatment is intended to continue beyond the supply of medication provided and there may be an expectation that the GP will continue the supply which would be highlighted within the discharge summary itself.
PRSB eDischarge Summary Standard - Top level headings
1: Patient demographics
2: GP practice
3: About me
4: Legal information
5: Safeguarding
... etc ...
20: Allergies and adverse reactions
21: Medications and medical devices
... etc ...
28: Additional supoort plans
Note that "Medications and Medical Devices" (highlighted in green) is only one heading out of 28.
Bundling the Discharge Medications with the Discharge Summary
All NHS Trusts will be familiar with the Transfer of Care process from secondary to primary care. They may complete a discharge summary using a system provided by an NHS supplier, a bespoke area within their Electronic Patient Record (EPR), or using paper.
Most digital solutions available today currently bundle discharge medications with the discharge summary, as it makes sense to bundle related things together into one document; however, this presents the following challenges.
Discharge summaries are completed after a patient has been discharged
A discharge summary has a linear progression during a patient stay, lasting for duration of the inpatient encounter.
A mature digital system may populate some of the discharge summary headings automatically; however, many of the headings require manual input from a clinician, which can be a time-consuming process.
NHS Trusts that send a digital copy of a discharge summary to GPs often delay the discharge notification to the ePMA system and the system responsible for sending the discharge summary electronically.
This delay is usually 6-24 hours after the patient has been discharged, and allows additional time for a clinician to complete the discharge summary.
The discharge summary alone is a single document where there is only one version of it that is clinically auditable and relevant - the one that is sent to the GP.
All iterations of the document up until the point the document is sent to the GP are considered as draft.
Discharge medications are required before a patient is discharged and have workflow
A patient being discharged with medication will result in at least one MedicationRequest
being sent to the pharmacy. An NHS Trust will have an additional clinical verification process in which a pharmacist will review the medications requested before approving and dispensing, resulting in at least one MedicationDispense
, or several if there are multiple line items within the prescription.
Unlike the discharge summary, there can be many clinically auditable and relevant versions of a discharge prescription during an inpatient encounter; however, only the medications taken home when the patient is discharged from the hospital can be shown in the discharge prescription.
In summary
It is recommended that any delays to the notification of inpatient discharge to downstream systems be avoided where possible.
Applicable FHIR resources: MedicationStatement
and optionally MedicationDispense
Hospital Transfer
Applicable for the following use cases;
- Internal transfer, to a ward using a different ePMA system.
- Transfer to another hospital, using a different ePMA system.
The most simple implementation of these use cases will be a RESTful POST
to the destination ePMA [B] system. The FHIR Message posted being a Bundle of MedicationStatement
resources and related/referenced resources.
Where ePMA [B] does not operate as a FHIR server then an alternative architecture would be for ePMA [B] to query ePMA [A] using GET
operations.
Where more detailed records are required, a MedicationStatement
can reference a MedicationRequest
using the MedicationStatement.basedOn
element. It can reference a MedicationDispense
using the MedicationStatement.derivedFrom
element.
The difference between the clinical data shared in a transfer compared to that shared within a discharge process would be the inclusion of medication activity specific to the inpatient treatment, which is not relevant after discharge. For example, painkillers, pre-operative medication etc. These are sometimes described as ephemeral medications, i.e. medications that are started during an episode of care and discontinued within that same care episode.
It is not expected that ICS and shared medication records will include ephemeral medication records as these would add unnecessary complexity to the shared record for minimal value.
Applicable FHIR resources: MedicationStatement
and optionally MedicationRequest