From 447f0b9a9a7c02bc5097e66ee254d270904180c0 Mon Sep 17 00:00:00 2001 From: aidenvaines-bjss Date: Tue, 5 Aug 2025 11:11:54 +0100 Subject: [PATCH 1/2] CCM-11362 publish supplier v1 schema --- docs/events/schemas/supplier-status/v1.json | 118 ++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 docs/events/schemas/supplier-status/v1.json diff --git a/docs/events/schemas/supplier-status/v1.json b/docs/events/schemas/supplier-status/v1.json new file mode 100644 index 0000000..370a3fa --- /dev/null +++ b/docs/events/schemas/supplier-status/v1.json @@ -0,0 +1,118 @@ +{ + "$schema": "https://notify.nhs.uk/events/schemas/supplier-status/v1.json", + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique ID for this event" + }, + "source": { + "type": "string", + "description": "Source of the event" + }, + "specversion": { + "type": "string", + "description": "Version of the event" + }, + "type": { + "type": "string", + "description": "Type of event" + }, + "plane": { + "type": "string", + "enum": ["data", "control"], + "description": "Identification for target event" + }, + "subject": { + "type": "string", + "format": "uuid", + "description": "Original item plan ID" + }, + "time": { + "type": "string", + "description": "Time the event was generated" + }, + "datacontenttype": { + "type": "string", + "description": "Always application/json" + }, + "dataschema": { + "type": "string", + "description": "Schema for this event" + }, + "dataschemaversion": { + "type": "string", + "description": "Version of the schema" + }, + "data": { + "type": "object", + "properties": { + "nhsNumber": { + "type": "string", + "description": "Patient NHS number" + }, + "delayedFallback": { + "type": "boolean", + "description": "Whether or not delayed fallback is enabled" + }, + "sendingGroupId": { + "type": "string", + "description": "Sending group ID" + }, + "clientId": { + "type": "string", + "description": "Client ID for the original message" + }, + "campaignId": { + "type": "string", + "description": "Campaign ID for the original message" + }, + "billingReference": { + "type": "string", + "description": "Billing reference from the original message" + }, + "supplierStatus": { + "type": "string", + "description": "New supplier status" + }, + "previousSupplierStatus": { + "type": "string", + "description": "Previous supplier status" + }, + "requestItemId": { + "type": "string", + "description": "Request Item ID for the message that received a callback" + }, + "requestItemPlanId": { + "type": "string", + "description": "Request Item Plan ID for the plan that received a callback" + } + }, + "required": [ + "nhsNumber", + "delayedFallback", + "sendingGroupId", + "clientId", + "campaignId", + "supplierStatus", + "previousSupplierStatus", + "requestItemId", + "requestItemPlanId" + ] + } + }, + "required": [ + "id", + "source", + "specversion", + "type", + "plane", + "subject", + "time", + "datacontenttype", + "dataschema", + "dataschemaversion", + "data" + ] +} \ No newline at end of file From 77d10e775bd427795a05d21630df823a1a6b194d Mon Sep 17 00:00:00 2001 From: aidenvaines-bjss Date: Tue, 5 Aug 2025 11:16:48 +0100 Subject: [PATCH 2/2] CCM-11362 publish supplier v1 schema --- docs/events/schemas/supplier-status/v1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/events/schemas/supplier-status/v1.json b/docs/events/schemas/supplier-status/v1.json index 370a3fa..62e0e90 100644 --- a/docs/events/schemas/supplier-status/v1.json +++ b/docs/events/schemas/supplier-status/v1.json @@ -115,4 +115,4 @@ "dataschemaversion", "data" ] -} \ No newline at end of file +}