From b4f99c60a06d39eec94fc499fe52d1d480a36951 Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Fri, 18 Jul 2025 09:53:48 +0100 Subject: [PATCH 1/2] NPA-5305: Add ProposedConsent Component --- .../validated-relationships-service-api.yaml | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 5b9f58ee..c3dd16fb 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -2056,7 +2056,9 @@ components: type: string description: The canonical URL of the resource in the entry resource: - $ref: "#/components/schemas/Consent" + oneOf: + - $ref: "#/components/schemas/Consent" + - $ref: "#/components/schemas/ProposedConsent" search: type: object properties: @@ -2218,7 +2220,6 @@ components: description: "The status of the consent, following the ConsentStateCodes value set." enum: - draft - - proposed - active - rejected - inactive @@ -2252,6 +2253,51 @@ components: items: $ref: "#/components/schemas/Extension" + ProposedConsent: + type: object + required: + - id + - status + - patient + - dateTime + - performer + description: The details of the proposed consent including who the patient and care "performer" are, status of the relationship and whether consent was given by a patient with capacity. + properties: + resourceType: + type: string + description: FHIR resource type. + enum: + - Consent + default: Consent + id: + type: string + description: Unique identifier of the Consent resource + status: + type: string + description: "The status of the consent, following the ConsentStateCodes value set." + enum: + - proposed + patient: + $ref: "#/components/schemas/Reference" + description: "The patient who is the subject of the consent." + dateTime: + type: string + format: date-time + description: "Date and time when the consent was created." + performer: + type: array + maxItems: 1 + items: + $ref: "#/components/schemas/Reference" + description: "Individuals or organizations that agreed to the consent." + provision: + $ref: "#/components/schemas/Provision" + extension: + type: array + description: Model the status reason. + items: + $ref: "#/components/schemas/Extension" + Provision: type: object properties: From 57fb96a8ddfb426dec0e40aedb11359139cb69f4 Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Fri, 18 Jul 2025 12:08:57 +0100 Subject: [PATCH 2/2] NPA-5305: Fix extra ) in specification --- specification/validated-relationships-service-api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index c3dd16fb..a8a4b32b 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -141,7 +141,7 @@ info: * only covers a limited set of scenarios * is open access, so does not allow you to test authorisation - [Run In Postman](https://god.gw.postman.com/run-collection/46399153-73a3846c-092a-44a1-940f-18736fb1f411?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D46399153-73a3846c-092a-44a1-940f-18736fb1f411%26entityType%3Dcollection%26workspaceId%3D34c06bc9-c5de-4206-b931-9ee51c810dbb)) + [Run In Postman](https://god.gw.postman.com/run-collection/46399153-73a3846c-092a-44a1-940f-18736fb1f411?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D46399153-73a3846c-092a-44a1-940f-18736fb1f411%26entityType%3Dcollection%26workspaceId%3D34c06bc9-c5de-4206-b931-9ee51c810dbb) ### Integration testing