From b502183b2f8b87363581039a2fb61ec33cc7938c Mon Sep 17 00:00:00 2001 From: James Date: Tue, 3 Mar 2026 14:24:33 +0000 Subject: [PATCH 1/3] mns-2228: rename event to changed --- .../signal.json | 2 +- specification/multicast-notification-service.yaml | 6 +++--- .../requestBody/create-or-update-subscription-body.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename signal-schemas/examples/{vrs-proxy-role-change-1 => vrs-proxy-role-changed-1}/signal.json (97%) diff --git a/signal-schemas/examples/vrs-proxy-role-change-1/signal.json b/signal-schemas/examples/vrs-proxy-role-changed-1/signal.json similarity index 97% rename from signal-schemas/examples/vrs-proxy-role-change-1/signal.json rename to signal-schemas/examples/vrs-proxy-role-changed-1/signal.json index 5050116..d74f48c 100644 --- a/signal-schemas/examples/vrs-proxy-role-change-1/signal.json +++ b/signal-schemas/examples/vrs-proxy-role-changed-1/signal.json @@ -53,7 +53,7 @@ "part": [ { "name": "event-type", - "valueString": "vrs-proxy-role-change-1" + "valueString": "vrs-proxy-role-changed-1" }, { "name": "source", diff --git a/specification/multicast-notification-service.yaml b/specification/multicast-notification-service.yaml index 52f1256..5380385 100644 --- a/specification/multicast-notification-service.yaml +++ b/specification/multicast-notification-service.yaml @@ -220,13 +220,13 @@ paths: filtering: patient_ods_code: 'M7Z0J' proxy_ods_code: 'M7Z0J' - vrs-proxy-role-change-1: - description: "Create a proxy role change event" + vrs-proxy-role-changed-1: + description: "Create a proxy role changed event" value: specversion: '1.0' id: 501c6aea-aff2-4431-b98e-1bf59192b045 source: uk.nhs.validated-relationships-service - type: vrs-proxy-role-change-1 + type: vrs-proxy-role-changed-1 time: '2020-06-01T13:00:00Z' dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 subject: '9730676240' diff --git a/specification/requestBody/create-or-update-subscription-body.yaml b/specification/requestBody/create-or-update-subscription-body.yaml index 2b1eb23..b26da4e 100644 --- a/specification/requestBody/create-or-update-subscription-body.yaml +++ b/specification/requestBody/create-or-update-subscription-body.yaml @@ -110,14 +110,14 @@ content: type: "message" endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1" payload: "application/json" - vrsProxyRoleChangeSubscription: - description: "VRS proxy role change" + vrsProxyRoleChangedSubscription: + description: "VRS proxy role changed" value: resourceType: "Subscription" status: "requested" end: "2022-04-05T17:31:00.000Z" reason: "Business process A" - criteria: "eventType=vrs-proxy-role-change-1" + criteria: "eventType=vrs-proxy-role-changed-1" channel: type: "message" endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1" From 1416c45389cec20208c1d279e2de52adbcc0c722 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 3 Mar 2026 16:00:15 +0000 Subject: [PATCH 2/3] mns-2228: add cloudevents --- .../vrsProxyRoleChangedSignal.yaml | 80 +++++++++++++++++++ .../vrsProxyRoleDeletedSignal.yaml | 80 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml create mode 100644 specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml diff --git a/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml b/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml new file mode 100644 index 0000000..aee8db5 --- /dev/null +++ b/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml @@ -0,0 +1,80 @@ +"$schema": http://json-schema.org/draft-07/schema# +description: The VRS Proxy Role Changed event. You will receive this object if you subscribe to `vrs-proxy-role-changed-1` events with an `application/cloudevents+json` format. +type: object +properties: + id: + description: Identifies the event. + "$ref": "#/definitions/iddef" + examples: + - b2b8cb8d-9ef3-4fd1-9574-18019c3849fa + source: + description: Identifies the producer of the event. + "$ref": "#/definitions/sourcedef" + examples: + - uk.nhs.validated-relationships-service + specversion: + description: The version of the CloudEvents specification which the event uses. + "$ref": "#/definitions/specversiondef" + examples: + - '1.0' + type: + description: Describes the occurrence; the name of the event. + "$ref": "#/definitions/typedef" + examples: + - vrs-proxy-role-changed-1 + subject: + description: The NHS Number of the patient for which the proxy role has changed. + "$ref": "#/definitions/subjectdef" + examples: + - 9912003888 + time: + description: Timestamp of when the occurrence happened. Must adhere to RFC 3339. + "$ref": "#/definitions/timedef" + examples: + - '2026-02-25T15:49:24.902207+00:00' + dataref: + description: A link to the consent resource on the Validated Relationships Service API. + "$ref": "#/definitions/datarefdef" + examples: + - https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 +required: +- id +- source +- specversion +- type +- time +- subject +definitions: + iddef: + type: string + minLength: 1 + sourcedef: + type: string + minLength: 1 + specversiondef: + type: string + minLength: 1 + typedef: + type: string + minLength: 1 + subjectdef: + type: + - string + minLength: 1 + timedef: + type: + - string + format: date-time + minLength: 1 + datarefdef: + type: string + format: uri + minLength: 1 +example: + specversion: '1.0' + id: b2b8cb8d-9ef3-4fd1-9574-18019c3849fa + source: uk.nhs.validated-relationships-service + type: vrs-proxy-role-changed-1 + time: '2026-02-25T15:49:24.902207+00:00' + dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 + subject: '9912003888' diff --git a/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml b/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml new file mode 100644 index 0000000..e4043e4 --- /dev/null +++ b/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml @@ -0,0 +1,80 @@ +"$schema": http://json-schema.org/draft-07/schema# +description: The VRS Proxy Role Deleted event. You will receive this object if you subscribe to `vrs-proxy-role-deleted-1` events with an `application/cloudevents+json` format. +type: object +properties: + id: + description: Identifies the event. + "$ref": "#/definitions/iddef" + examples: + - 898cc706-9156-4d67-941a-b37ca9a85861 + source: + description: Identifies the producer of the event. + "$ref": "#/definitions/sourcedef" + examples: + - uk.nhs.validated-relationships-service + specversion: + description: The version of the CloudEvents specification which the event uses. + "$ref": "#/definitions/specversiondef" + examples: + - '1.0' + type: + description: Describes the occurrence; the name of the event. + "$ref": "#/definitions/typedef" + examples: + - vrs-proxy-role-deleted-1 + subject: + description: The NHS Number of the patient for which has the proxy role has been deleted. + "$ref": "#/definitions/subjectdef" + examples: + - 9912003888 + time: + description: Timestamp of when the occurrence happened. Must adhere to RFC 3339. + "$ref": "#/definitions/timedef" + examples: + - '2026-02-27T11:47:12.157887+00:00' + dataref: + description: A link to the consent resource on the Validated Relationships Service API. + "$ref": "#/definitions/datarefdef" + examples: + - https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 +required: +- id +- source +- specversion +- type +- time +- subject +definitions: + iddef: + type: string + minLength: 1 + sourcedef: + type: string + minLength: 1 + specversiondef: + type: string + minLength: 1 + typedef: + type: string + minLength: 1 + subjectdef: + type: + - string + minLength: 1 + timedef: + type: + - string + format: date-time + minLength: 1 + datarefdef: + type: string + format: uri + minLength: 1 +example: + specversion: '1.0' + id: 898cc706-9156-4d67-941a-b37ca9a85861 + source: uk.nhs.validated-relationships-service + type: vrs-proxy-role-deleted-1 + time: '2026-02-27T11:47:12.157887+00:00' + dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 + subject: '9912003888' From befbfd64266e6be5645ca8acc68a5bb80eb7665f Mon Sep 17 00:00:00 2001 From: James Date: Tue, 3 Mar 2026 16:22:17 +0000 Subject: [PATCH 3/3] mns-2228: remove files --- .../vrsProxyRoleChangedSignal.yaml | 80 ------------------- .../vrsProxyRoleDeletedSignal.yaml | 80 ------------------- 2 files changed, 160 deletions(-) delete mode 100644 specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml delete mode 100644 specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml diff --git a/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml b/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml deleted file mode 100644 index aee8db5..0000000 --- a/specification/schemas/cloudevents/vrsProxyRoleChangedSignal.yaml +++ /dev/null @@ -1,80 +0,0 @@ -"$schema": http://json-schema.org/draft-07/schema# -description: The VRS Proxy Role Changed event. You will receive this object if you subscribe to `vrs-proxy-role-changed-1` events with an `application/cloudevents+json` format. -type: object -properties: - id: - description: Identifies the event. - "$ref": "#/definitions/iddef" - examples: - - b2b8cb8d-9ef3-4fd1-9574-18019c3849fa - source: - description: Identifies the producer of the event. - "$ref": "#/definitions/sourcedef" - examples: - - uk.nhs.validated-relationships-service - specversion: - description: The version of the CloudEvents specification which the event uses. - "$ref": "#/definitions/specversiondef" - examples: - - '1.0' - type: - description: Describes the occurrence; the name of the event. - "$ref": "#/definitions/typedef" - examples: - - vrs-proxy-role-changed-1 - subject: - description: The NHS Number of the patient for which the proxy role has changed. - "$ref": "#/definitions/subjectdef" - examples: - - 9912003888 - time: - description: Timestamp of when the occurrence happened. Must adhere to RFC 3339. - "$ref": "#/definitions/timedef" - examples: - - '2026-02-25T15:49:24.902207+00:00' - dataref: - description: A link to the consent resource on the Validated Relationships Service API. - "$ref": "#/definitions/datarefdef" - examples: - - https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 -required: -- id -- source -- specversion -- type -- time -- subject -definitions: - iddef: - type: string - minLength: 1 - sourcedef: - type: string - minLength: 1 - specversiondef: - type: string - minLength: 1 - typedef: - type: string - minLength: 1 - subjectdef: - type: - - string - minLength: 1 - timedef: - type: - - string - format: date-time - minLength: 1 - datarefdef: - type: string - format: uri - minLength: 1 -example: - specversion: '1.0' - id: b2b8cb8d-9ef3-4fd1-9574-18019c3849fa - source: uk.nhs.validated-relationships-service - type: vrs-proxy-role-changed-1 - time: '2026-02-25T15:49:24.902207+00:00' - dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 - subject: '9912003888' diff --git a/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml b/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml deleted file mode 100644 index e4043e4..0000000 --- a/specification/schemas/cloudevents/vrsProxyRoleDeletedSignal.yaml +++ /dev/null @@ -1,80 +0,0 @@ -"$schema": http://json-schema.org/draft-07/schema# -description: The VRS Proxy Role Deleted event. You will receive this object if you subscribe to `vrs-proxy-role-deleted-1` events with an `application/cloudevents+json` format. -type: object -properties: - id: - description: Identifies the event. - "$ref": "#/definitions/iddef" - examples: - - 898cc706-9156-4d67-941a-b37ca9a85861 - source: - description: Identifies the producer of the event. - "$ref": "#/definitions/sourcedef" - examples: - - uk.nhs.validated-relationships-service - specversion: - description: The version of the CloudEvents specification which the event uses. - "$ref": "#/definitions/specversiondef" - examples: - - '1.0' - type: - description: Describes the occurrence; the name of the event. - "$ref": "#/definitions/typedef" - examples: - - vrs-proxy-role-deleted-1 - subject: - description: The NHS Number of the patient for which has the proxy role has been deleted. - "$ref": "#/definitions/subjectdef" - examples: - - 9912003888 - time: - description: Timestamp of when the occurrence happened. Must adhere to RFC 3339. - "$ref": "#/definitions/timedef" - examples: - - '2026-02-27T11:47:12.157887+00:00' - dataref: - description: A link to the consent resource on the Validated Relationships Service API. - "$ref": "#/definitions/datarefdef" - examples: - - https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 -required: -- id -- source -- specversion -- type -- time -- subject -definitions: - iddef: - type: string - minLength: 1 - sourcedef: - type: string - minLength: 1 - specversiondef: - type: string - minLength: 1 - typedef: - type: string - minLength: 1 - subjectdef: - type: - - string - minLength: 1 - timedef: - type: - - string - format: date-time - minLength: 1 - datarefdef: - type: string - format: uri - minLength: 1 -example: - specversion: '1.0' - id: 898cc706-9156-4d67-941a-b37ca9a85861 - source: uk.nhs.validated-relationships-service - type: vrs-proxy-role-deleted-1 - time: '2026-02-27T11:47:12.157887+00:00' - dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41 - subject: '9912003888'