Skip to main content

Proxy role deleted event

This event notifies subscribers when a patient's proxy role is deleted within the Validated Relationship Service (VRS) using Multicast Notification Service (MNS).

 

Overview

This event notifies subscribers when a patient's proxy role is deleted within the Validated Relationship Service (VRS) - the national database of relationships.

It is intended for systems that need to know whenever a new proxy role is deleted in the National Proxy Store.

For general guidance on using MNS, refer to the MNS service page.


Who should subscribe to this event

Use this event if your system:

  • maintains an up to date local view of proxy role information

Example use case

  • a proxy role is deleted within the National Proxy Store (NPS) for a patient and proxy due to an NHS number being invalidated, subscribed GPIT system must be informed to keep its local record up to date.

This event may not be suitable if:

  • a GPIT system or healthcare worker wishes to be informed about a proxy role creation or update.


How this event works

 

This event follows a notification and retrieval pattern:

  1. A proxy role is deleted within the NPS

  2. An event is published

  3. A notification is sent to subscribed systems

  4. Your system receives the notification

  5. Your system fetches the proxy role

  6. Your system retrieves a 404 not found and removes the record within its own system

 


Event structure

This event is available in FHIR format. FHIR events can be published by anybody.

FHIR Type Mandatory Cardinality Description
N/A string M 1..1 version of the schema
id GUID M 1..1 GUID - for this event
source URI M 1..1 where is has come from
event-type string M 1..1 name of the event
timestamp timestamp M 1..1 time of the event ISO 8601
subject string M 1..1 NHS number of the patient
versionid string M 1..1 change number from PDS

 

Example FHIR event

{
  "resourceType": "Bundle",
  "id": "1d98d75d-8fed-448d-a023-7615e7b72c8e",
  "type": "history",
  "timestamp": "2020-06-01T13:00:00Z",
  "entry": [
    {
      "fullUrl": "urn:uuid:1d98d75d-8fed-448d-a023-7615e7b72c8e",
      "resource": {
        "resourceType": "Parameters",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription-status-r4"
          ]
        },
        "id": "1d98d75d-8fed-448d-a023-7615e7b72c8e",
        "parameter": [
          {
            "name": "subscription",
            "valueReference": {
              "reference": "https://api.service.nhs.uk/multicast-notification-service/subscriptions"
            }
          },
          {
            "name": "status",
            "valueCode": "active"
          },
          {
            "name": "type",
            "valueCode": "event-notification"
          },
          {
            "name": "notification-event",
            "part": [
              {
                "name": "event-number",
                "valueString": "1"
              },
              {
                "name": "timestamp",
                "valueInstant": "2020-06-01T13:00:00Z"
              },
              {
                "name": "focus",
                "valueReference": {
                  "reference": "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/93f563c0-c1b9-49e7-8fe4-830aed401e03"
                }
              }
            ]
          },
          {
            "name": "additional-context",
            "part": [
              {
                "name": "event-type",
                "valueString": "vrs-proxy-role-deleted-1"
              },
              {
                "name": "source",
                "valueUri": "uk.nhs.validated-relationships-service"
              },
              {
                "name": "subject",
                "valueReference": {
                  "identifier": {
                    "value": "1234567890"
                  }
                }
              }
            ]
          }
        ]
      },
      "request": {
        "method": "GET",
        "url": "https://api.service.nhs.uk/multicast-notification-service/subscriptions"
      },
      "response": {
        "status": "200"
      }
    }
  ]
}

Event filtering

This event can be filtered on:

  • The ODS code of the patient's GP
  • The ODS code for the proxy's GP

Onboarding

To subscribe to this event, you will need to:

Refer to Subscribe to Multicast Notification Service for further guidance.


Testing

This event is available to test in Path to Live (PTL) environments.


Versioning

This is the only version of this event.

Last edited: 13 May 2026 2:14 pm