Skip to main content

National Events Management Service (NEMS)

Enabling the sharing of specific health information about a patient in near real-time. Information is shared in the form of event messages, following a publish and subscribe model and using the NHS Spine.

Latest news

Last Reviewed: October 2023

  • Development of the PDS Record Change Event, that informs organisations that a patient record on PDS has been changed, is complete. This will enable organisations to synchronise with up-to-date demographic information. Work is in progress to onboard suppliers as the first users of the new event (currently at signing connection agreement stage with 2 Suppliers).
  • A configuration change has been made to allow more flexible use of generic subscription rules.
  • Development of a new subscription criteria to allow subscribers to restrict the patient cohort to patients registered or patients not registered with a GP, is complete.
  • A new use case, relating to hospital admission notifications, is currently being assessed for value.
  • A new Multicast Notification Service is being developed which will be complementary to NEMS.  

About this service

Overview of NEMS, showing how events are published and then forwarded to subscribers.

The National Events Management Service (NEMS) allows digital health and care services to notify other digital services that an ‘event’ has occurred, using ‘publish-subscribe’ messages – sometimes called ‘push notifications’.

Events can be:

  • clinical or non-clinical
  • relating to a patient or not
  • issued by a national service or a local service

Examples of events include:

  • a patient’s birth
  • a patient’s death
  • a newborn child’s vaccinations

Publish-subscribe messages allow multiple interested parties (‘subscribers’) to be notified of an event (from a ‘publisher’). For example, when a child is vaccinated, this might be of interest to their GP, their local authority and child health services.

It works like this:

  1. Interested parties contact NEMS (via an API) to subscribe to specific types of event, such as death notifications in a specific geographical region.
  2. When an event occurs, the source system publishes an event notification to NEMS.
  3. NEMS sends the event notification to all subscribers.

Event publishers are usually national services, such as the Personal Demographics Service. NEMS also supports non-national use cases.

Subscriptions

When a digital service subscribes to NEMS, it needs to specify:

  • the event type, such as "birth notifications"
  • the event scope they are interested in

The event scope can be:

  • explicit - a specific patient
  • generic - a cohort of patients, such as all patients registered with a specific GP, or all patients within a specific geographical boundary

Notification variants

NEMS supports two variants of event notifications:

  1. Detailed notifications – the subscriber receives full details of the event along with the notification.
  2. Lightweight notifications – the subscriber receives a notification that an event has occurred, with limited details such as the event type and affected patient. The subscriber must then contact the published (via an API) to request full details.

NEMS products

NEMS consists of three separate products, as follows:

NEMS product Features
NEMS Multicast Notification Service (MNS)

‘Lightweight’ notifications.

Multiple event delivery channels, including AWS Firehose, MESH and HTTP(S).

NEMS Spine Product

‘Detailed’ notifications.

Events delivered to subscribers via MESH.

Under review for deprecation.

NEMS custom subscription service

‘Lightweight’ notifications from publishers via MNS enriched to send ‘detailed’ notifications to subscribers.

Events delivered to subscribers via MESH.

Provides backwards compatibility with NEMS Spine Product.


Benefits

Benefits of NEMS include:
  • Provides a proactive way to inform downstream systems when something has happened to a patient which avoids the need to continuously check for changes. This is particularly useful in a national context when dealing with large segments of the population.
  • Makes it easier to find out about events relating to a specific patient list.
  • Reduces the cost of integration by providing a standard integration mechanism.
  • Free to use for both publishers and subscribers.
Benefits of the NEMS Multicast Notification Service include:
  • Data security: with MNS, publishers can be confident that sensitive data is not shared inappropriately because MNS only sends a minimal data set, and the publisher is responsible for controlling and serving the detailed content.
  • Sequencing: with MNS, subscribers do not need to deal with the sequencing of incoming messages. When the subscriber queries the source system to retrieve detailed information, they will always obtain the most recent current information. This is particularly beneficial in the case of delivery failures and retries where an earlier update could be delivered after a later update.
  • Consistency of data format: with MNS, incoming event notifications all use the same data format and schema regardless of event type. Once a subscriber has onboarded for one event type, it is relatively simple to add additional event because the format is the same.

Who this service is for

NEMS is for:

  • systems that need to share information with more than one other system - these are 'event publishers'

  • systems that are interested in notifications published via NEMS - these are 'event subscribers'

It can be used in a variety of care settings but only for the purpose of direct care.

Event publishers are usually national services, such as the Personal Demographics Service, but NEMS does also support non-national use cases.

It is primarily intended for use in England but in some circumstances it supports a wider geography.

Event publishers and subscribers access NEMS via its APIs.


Examples of use

Examples of use include:

  • The Personal Demographics Service notifying interested parties that a patient's demographic information has changed, including their phone number or email address. GP systems can use this notification to update their local copy of the patient's details, so when they contact the patient they are using up-to-date contact information.
  • The Personal Demographics Service notifying interested parties of a patient's death. The Electronic Prescription Service and community pharmacy systems can use this information to cancel any pending prescriptions for the patient.
  • A learning management system (LMS) in an NHS trust notifying interested parties that an NHS employee has completed or refreshed a training course. The Digital Staff Passport service can use this notification to update the employee's passport, which makes life easier when they move to a different NHS trust.

What information is available

Event types

The following table summarises the supported event types.

Event category Event type Event notification variant Product specification
Patient demographic information PDS birth notification Detailed PDS Notifications
  PDS death notification Detailed PDS Notifications
  PDS change of address Detailed PDS Notifications
  PDS change of GP Lightweight Multicast Notification Service
  PDS change of GP Detailed PDS Notifications
  PDS record change Detailed PDS Notifications
Newborn child health Blood spot test outcome Detailed Digital Child Health
  Newborn hearing test Detailed Digital Child Health
  Newborn and infant physical examination (NIPE) outcome Detailed Digital Child Health
  Professional contacts Detailed Digital Child Health
  Vaccinations Detailed Vaccination Events

National usage policy

Event publishers

This service is recommended for all national services that need to publish notifications to multiple interested parties.

Event subscribers

This service is recommended for all health and care systems that would benefit from receiving the supported event types.


How this service works

For details, see the API specification for the NEMS product you want to use.


Status and service level

NEMS product Status Service level
NEMS Spine Product Live, since 2019 Bronze
NEMS Multicast Notification Service (MNS) Live beta, since 2024 Bronze
NEMS custom subscription service Planned for development N/A

How to access this service

For details, see the relevant API specification.


Contact us

Enquiry Point of contact
Live service incident

National Service Desk

Email: [email protected]

Any other general enquiries

Enquiries team

Email: [email protected]

Strategic direction of the service

Shan Rahulan (service owner)

Email: [email protected]

Senior responsible officer (SRO)

Stephen Koch

Email: [email protected]

 



Further information

external
external
internal Digital Child Health

Our purpose is to support the delivery of the recommendations set out in the NHS England strategy Healthy Children: Transforming Child Health Information. Find out more about what we're doing.

internal Message Exchange for Social Care and Health

Message Exchange for Social Care and Health (MESH) provides the ability to share data directly between health and care organisations and is the nationally recognised mechanism for this method of data sharing.

Last edited: 13 March 2024 10:26 am