From 132e14cfde8f9e210720fc9534e0eb2f1dbd14af Mon Sep 17 00:00:00 2001 From: James Date: Fri, 27 Feb 2026 13:48:17 +0000 Subject: [PATCH 1/3] mns-2229: add vrs proxy delete event --- .../signal.json | 0 .../vrs-proxy-role-deleted-1/signal.json | 83 +++++++++++++++++++ .../multicast-notification-service.yaml | 10 +++ .../create-or-update-subscription-body.yaml | 14 +++- 4 files changed, 106 insertions(+), 1 deletion(-) rename signal-schemas/examples/{proxy-role-change-1 => vrs-proxy-role-change-1}/signal.json (100%) create mode 100644 signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json diff --git a/signal-schemas/examples/proxy-role-change-1/signal.json b/signal-schemas/examples/vrs-proxy-role-change-1/signal.json similarity index 100% rename from signal-schemas/examples/proxy-role-change-1/signal.json rename to signal-schemas/examples/vrs-proxy-role-change-1/signal.json diff --git a/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json b/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json new file mode 100644 index 0000000..9119097 --- /dev/null +++ b/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json @@ -0,0 +1,83 @@ +{ + "resourceType": "Bundle", + "id": "898cc706-9156-4d67-941a-b37ca9a85861", + "type": "history", + "timestamp": "2026-02-27T11:47:12.157887+00:00", + "entry": [ + { + "fullUrl": "urn:uuid:212513f9-694d-4735-a9c7-8dca94fea66b", + "resource": { + "resourceType": "Parameters", + "meta": { + "profile": [ + "http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription-status-r4" + ] + }, + "id": "212513f9-694d-4735-a9c7-8dca94fea66b", + "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": "2026-02-27T11:47:12.157887+00:00" + }, + { + "name": "focus", + "valueReference": { + "reference": "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41" + } + } + ] + }, + { + "name": "additional-context", + "part": [ + { + "name": "event-type", + "valueString": "vrs-proxy-role-change-1" + }, + { + "name": "source", + "valueUri": "uk.nhs.validated-relationships-service" + }, + { + "name": "subject", + "valueReference": { + "identifier": { + "value": "9912003888" + } + } + } + ] + } + ] + }, + "request": { + "method": "GET", + "url": "https://api.service.nhs.uk/multicast-notification-service/subscriptions" + }, + "response": { + "status": "200" + } + } + ] +} diff --git a/specification/multicast-notification-service.yaml b/specification/multicast-notification-service.yaml index e2da640..a6b6ffc 100644 --- a/specification/multicast-notification-service.yaml +++ b/specification/multicast-notification-service.yaml @@ -207,6 +207,16 @@ paths: subject: '9730676240' filtering: gppractice: 'XY11' + vrs-proxy-role0-deleted-1: + description: "Create a proxy role deleted event" + value: + specversion: '1.0' + id: 898cc706-9156-4d67-941a-b37ca9a85861 + source: uk.nhs.validated-relationships-service + type: vrs-proxy-role-deleted-1 + time: '2020-06-01T13:00:00Z' + dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 + subject: '9730676240' vrs-proxy-role-change-1: description: "Create a proxy role change event" value: diff --git a/specification/requestBody/create-or-update-subscription-body.yaml b/specification/requestBody/create-or-update-subscription-body.yaml index 7d5cbaa..290ed1d 100644 --- a/specification/requestBody/create-or-update-subscription-body.yaml +++ b/specification/requestBody/create-or-update-subscription-body.yaml @@ -98,7 +98,19 @@ content: type: "message" endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1" payload: "application/json" - proxyRoleChangeSubscription: + vrsProxyRoleChangeDeletedSubscription: + description: "VRS proxy role deleted" + value: + resourceType: "Subscription" + status: "requested" + end: "2022-04-05T17:31:00.000Z" + reason: "Business process A" + criteria: "eventType=vrs-proxy-role-deleted-1" + channel: + type: "message" + endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1" + payload: "application/json" + vrsProxyRoleChangeSubscription: description: "VRS proxy role change" value: resourceType: "Subscription" From f79da3c1fe1d618be36e6cf4ade991f7e033591d Mon Sep 17 00:00:00 2001 From: James Date: Fri, 27 Feb 2026 14:12:26 +0000 Subject: [PATCH 2/3] mns-2229: add filtering and update change to delted --- .../examples/vrs-proxy-role-deleted-1/signal.json | 2 +- specification/multicast-notification-service.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json b/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json index 9119097..8139b48 100644 --- a/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json +++ b/signal-schemas/examples/vrs-proxy-role-deleted-1/signal.json @@ -53,7 +53,7 @@ "part": [ { "name": "event-type", - "valueString": "vrs-proxy-role-change-1" + "valueString": "vrs-proxy-role-deleted-1" }, { "name": "source", diff --git a/specification/multicast-notification-service.yaml b/specification/multicast-notification-service.yaml index a6b6ffc..e84becf 100644 --- a/specification/multicast-notification-service.yaml +++ b/specification/multicast-notification-service.yaml @@ -217,6 +217,9 @@ paths: time: '2020-06-01T13:00:00Z' dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 subject: '9730676240' + filtering: + patient_ods_code: 'M7Z0J' + proxy_ods_code: 'M7Z0J' vrs-proxy-role-change-1: description: "Create a proxy role change event" value: @@ -227,6 +230,9 @@ paths: time: '2020-06-01T13:00:00Z' dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 subject: '9730676240' + filtering: + patient_ods_code: 'M7Z0J' + proxy_ods_code: 'M7Z0J' pds-death-notification-2: description: "Create a patient death status event" value: From ac829b60100d6daaced8c5bc9943f0dfd6c27ad5 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 27 Feb 2026 14:13:25 +0000 Subject: [PATCH 3/3] mns-2229: fix typo --- specification/multicast-notification-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/multicast-notification-service.yaml b/specification/multicast-notification-service.yaml index e84becf..9579da0 100644 --- a/specification/multicast-notification-service.yaml +++ b/specification/multicast-notification-service.yaml @@ -207,7 +207,7 @@ paths: subject: '9730676240' filtering: gppractice: 'XY11' - vrs-proxy-role0-deleted-1: + vrs-proxy-role-deleted-1: description: "Create a proxy role deleted event" value: specversion: '1.0'