From e7b37e67d15dd896efb89b1af227b95b3181fda2 Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Fri, 26 Sep 2025 15:00:52 +0100 Subject: [PATCH 01/20] NPA-5608: mandatory fixes - remove id and patient see mandatory changes --- ...iltered-relationships-status-active-include-details.yaml | 4 ---- .../GET_Consent/multiple-relationships-include-patient.yaml | 3 --- .../multiple-relationships-include-performer-patient.yaml | 6 ------ .../multiple-relationships-include-performer.yaml | 3 --- ...ltiple-relationships-single-patient-include-patient.yaml | 1 - ...ationships-single-patient-include-performer-patient.yaml | 4 ---- ...iple-relationships-single-patient-include-performer.yaml | 3 --- ...ingle-consenting-adult-relationship-include-patient.yaml | 1 - ...enting-adult-relationship-include-performer-patient.yaml | 2 -- ...gle-consenting-adult-relationship-include-performer.yaml | 1 - .../single-mother-child-relationship-include-patient.yaml | 1 - ...mother-child-relationship-include-performer-patient.yaml | 2 -- .../single-mother-child-relationship-include-performer.yaml | 1 - 13 files changed, 32 deletions(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index 589428cb..8db44f8d 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -22,7 +22,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC0000003" patient: - type: Patient identifier: system: "https://fhir.nhs.uk/Id/nhs-number" value: "9000000017" @@ -51,7 +50,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC1234567" name: - - id: "123456" use: usual period: start: "2020-01-01" @@ -128,7 +126,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC0000003" patient: - type: Patient identifier: system: "https://fhir.nhs.uk/Id/nhs-number" value: "9000000005" @@ -154,7 +151,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC9999999" name: - - id: "123456" use: usual period: start: "2020-01-01" diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index 3a46d41f..bef9d3d6 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -26,7 +26,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' @@ -108,7 +107,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - - id: '123456' use: usual period: start: '2020-01-01' @@ -187,7 +185,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 7fdf3278..9dd49b20 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -22,7 +22,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000009' @@ -51,7 +50,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' @@ -128,7 +126,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC00000234 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000005' @@ -155,7 +152,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - - id: '123456' use: usual period: start: '2020-01-01' @@ -229,7 +225,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000001 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000006' @@ -256,7 +251,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml index 07e3b9f2..800e6c72 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml @@ -22,7 +22,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000009' @@ -94,7 +93,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC00000234 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000005' @@ -164,7 +162,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000001 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000006' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml index b91b0d00..2a15c3e2 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml @@ -25,7 +25,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index dedd1418..88b1bbc6 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -25,7 +25,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' @@ -53,7 +52,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' @@ -123,7 +121,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' @@ -190,7 +187,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml index 9f2d842c..621b9589 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml @@ -20,7 +20,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' @@ -90,7 +89,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' @@ -157,7 +155,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000003 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000100' diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml index 4510271f..d067836e 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml @@ -26,7 +26,6 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index 1c83d5a0..3d13d76c 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -22,7 +22,6 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000008 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000005' @@ -49,7 +48,6 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml index 733b31d4..7456a741 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml @@ -21,7 +21,6 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000008 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000005' diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml index a514ffba..1b31145f 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml @@ -26,7 +26,6 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234556 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index eda8bf54..1438b429 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -22,7 +22,6 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000001 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000009' @@ -51,7 +50,6 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234556 name: - - id: '123456' use: usual period: start: '2020-01-01' diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml index ee23cd19..ec3cfabd 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml @@ -21,7 +21,6 @@ ConsentSingleAdultChildRelationshipIncludePerformerBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC0000001 patient: - type: Patient identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000009' From ff21bece96b7707dc868c9a42e1177904604c500 Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Mon, 29 Sep 2025 12:48:45 +0100 Subject: [PATCH 02/20] NPA-5608: example changes and spec changes and postman changes --- ...ip Service Sandbox.postman_collection.json | 252 +++++++++--------- ...onships-status-active-include-details.yaml | 17 +- ...iltered-relationships-status-inactive.yaml | 2 - ...-relationships-status-proposed-active.yaml | 4 - ...ultiple-relationships-include-patient.yaml | 24 +- ...lationships-include-performer-patient.yaml | 25 +- ...tiple-relationships-include-performer.yaml | 4 +- ...nships-single-patient-include-patient.yaml | 10 +- ...gle-patient-include-performer-patient.yaml | 11 +- ...hips-single-patient-include-performer.yaml | 4 +- ...multiple-relationships-single-patient.yaml | 3 - .../GET_Consent/multiple-relationships.yaml | 3 - ...ng-adult-relationship-include-patient.yaml | 7 +- ...elationship-include-performer-patient.yaml | 4 +- .../single-consenting-adult-relationship.yaml | 1 - ...er-child-relationship-include-patient.yaml | 7 +- ...elationship-include-performer-patient.yaml | 9 +- ...-child-relationship-include-performer.yaml | 1 + .../single-mother-child-relationship.yaml | 1 - .../validated-relationships-service-api.yaml | 3 - 20 files changed, 172 insertions(+), 220 deletions(-) diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index 373c710c..c5b45e65 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -1,11 +1,11 @@ { "info": { - "_postman_id": "4c6e58e9-dd6b-42fc-b6d7-5beac34fa4ea", - "name": "Validated Relationship Service Sandbox 18/09/25", + "_postman_id": "9c6dfa73-ac4f-4497-bca6-c2c4048f7c10", + "name": "Validated Relationship Service Sandbox 29/09/25", "description": "This Postman collection includes example scenarios for each of the Validated Relationship Service (VRS) API endpoints, covering both valid and invalid request scenarios.\n\nThe collection is pointed towards the VRS sandbox environment, which will return a specific example response based on the request sent. All data shown in the requests or responses is test data.\n\nOur sandbox environment only covers the scenarios listed in the Postman collection and is open access. It does not allow you to test authorisation or any scenarios beyond the ones documented.\n\nFull specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "44536620", - "_collection_link": "https://www.postman.com/ellie-bound1-b2ea016f/workspace/validated-relationship-service-sandbox-18-10-2025/collection/44536620-4c6e58e9-dd6b-42fc-b6d7-5beac34fa4ea?action=share&source=collection_link&creator=44536620" + "_exporter_id": "48873809", + "_collection_link": "https://www.postman.com/christopher-bacon1-3957569/workspace/validated-relationship-service-sandbox-29-09-2025/collection/48873809-9c6dfa73-ac4f-4497-bca6-c2c4048f7c10?action=share&source=collection_link&creator=48873809" }, "item": [ { @@ -8090,8 +8090,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", - " },", - " \"type\": \"RelatedPerson\"", + " }", " },", " \"role\": {", " \"coding\": [", @@ -8127,7 +8126,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -8190,31 +8190,26 @@ " \"value\": \"ABC1234567\"", " }", " ],", - " \"name\": [", - " {", - " \"id\": \"123456\",", - " \"use\": \"usual\",", - " \"period\": {", - " \"start\": \"2020-01-01\",", - " \"end\": \"2021-12-31\"", - " },", - " \"given\": [", - " \"Sally\"", - " ],", - " \"family\": \"Evans\",", - " \"prefix\": [", - " \"Mrs\"", - " ]", - " }", - " ],", + " \"name\": {", + " \"use\": \"usual\",", + " \"period\": {", + " \"start\": \"2020-01-01\",", + " \"end\": \"2021-12-31\"", + " },", + " \"given\": [", + " \"Sally\"", + " ],", + " \"family\": \"Evans\",", + " \"prefix\": [", + " \"Mrs\"", + " ]", + " },", " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", - " \"identifier\": {", - " \"value\": \"ODS12345\",", - " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", - " }", + " \"identifier\": null,", + " \"value\": \"ODS12345\",", + " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", " }", " ]", " },", @@ -8289,7 +8284,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -8323,110 +8319,109 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"resourceType\": \"Bundle\",", - " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", - " \"total\": 1,", - " \"type\": \"searchset\",", - " \"link\": [", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", + " \"total\": 1,", + " \"type\": \"searchset\",", + " \"link\": [", " {", " \"relation\": \"self\",", " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer\"", " }", " ],", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", - " \"resource\": {", - " \"resourceType\": \"RelatedPerson\",", - " \"id\": \"RP974720\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000010\"", - " },", - " {", - " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", - " \"value\": \"ABC0000008\"", - " }", - " ],", - " \"patient\": {", - " \"type\": \"Patient\",", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000005\"", - " }", - " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", - " \"code\": \"Personal\",", - " \"display\": \"Personal relationship with the patient\"", - " }", - " ]", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"include\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", - " \"resource\": {", - " \"resourceType\": \"Consent\",", - " \"id\": \"WWCC67T1\",", - " \"status\": \"active\",", - " \"scope\": {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", - " \"code\": \"patient-privacy\",", - " \"display\": \"Privacy Consent\"", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", + " \"resource\": {", + " \"resourceType\": \"RelatedPerson\",", + " \"id\": \"RP974720\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", + " },", + " {", + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", + " \"value\": \"ABC0000008\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000005\"", + " }", + " },", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", + " \"code\": \"Personal\",", + " \"display\": \"Personal relationship with the patient\"", + " }", + " ]", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"include\"", " }", - " ],", - " \"text\": \"Patient Privacy Consent\"", - " },", - " \"category\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", - " \"code\": \"INFA\",", - " \"display\": \"Information Access\"", - " }", - " ],", - " \"text\": \"Information Access Consent\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000005\"", - " }", " },", - " \"dateTime\": \"2024-07-21T17:32:28Z\",", - " \"performer\": [", - " {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000010\"", - " }", - " }", - " ],", - " \"policy\": [", - " {", - " \"authority\": \"https://www.england.nhs.uk\",", - " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", + " \"resource\": {", + " \"resourceType\": \"Consent\",", + " \"id\": \"WWCC67T1\",", + " \"status\": \"active\",", + " \"scope\": {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"code\": \"patient-privacy\",", + " \"display\": \"Privacy Consent\"", + " }", + " ],", + " \"text\": \"Patient Privacy Consent\"", + " },", + " \"category\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"code\": \"INFA\",", + " \"display\": \"Information Access\"", + " }", + " ],", + " \"text\": \"Information Access Consent\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000005\"", + " }", + " },", + " \"dateTime\": \"2024-07-21T17:32:28Z\",", + " \"performer\": [", + " {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", + " }", + " }", + " ],", + " \"policy\": [", + " {", + " \"authority\": \"https://www.england.nhs.uk\",", + " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"match\"", " }", - " ],", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " }", - " ]", + " }", + " ]", "}", "", "pm.test(\"Status code is 200\", function () {", @@ -8439,7 +8434,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -10240,6 +10236,7 @@ "script": { "type": "text/javascript", "packages": {}, + "requests": {}, "exec": [ "" ] @@ -10250,6 +10247,7 @@ "script": { "type": "text/javascript", "packages": {}, + "requests": {}, "exec": [ "pm.test(\"Response has FHIR content type\", () => {", " pm.expect(pm.response.headers.get('Content-Type')).to.include('application/fhir+json');", diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index 8db44f8d..b5d04ee0 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -30,6 +30,7 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" code: PRN display: parent + - coding: - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" code: MTH display: mother @@ -64,10 +65,9 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - PhD birthDate: "2022-10-22" generalPractitioner: - - type: "Organization" - identifier: - value: "ODS12345" - system: "https://fhir.nhs.uk/Id/ods-organization-code" + - identifier: + value: "ODS12345" + system: "https://fhir.nhs.uk/Id/ods-organization-code" search: mode: include - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9" @@ -105,7 +105,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: "9000000017" - type: RelatedPerson role: coding: - code: PRN @@ -162,10 +161,9 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - Mrs birthDate: "1995-10-22" generalPractitioner: - - type: "Organization" - identifier: - value: "ODS12345" - system: "https://fhir.nhs.uk/Id/ods-organization-code" + - identifier: + value: "ODS12345" + system: "https://fhir.nhs.uk/Id/ods-organization-code" search: mode: include - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1" @@ -203,7 +201,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: "9000000017" - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml index 80f2c988..a0642052 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml @@ -45,7 +45,6 @@ ConsentMultipleRelationshipsStatusInactiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN @@ -91,7 +90,6 @@ ConsentMultipleRelationshipsStatusInactiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml index c56c95f8..01f03f50 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml @@ -45,7 +45,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN @@ -92,7 +91,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN @@ -139,7 +137,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN @@ -186,7 +183,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000017' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index bef9d3d6..a7598838 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -40,10 +40,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 @@ -81,7 +80,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -118,10 +116,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 @@ -159,7 +156,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -196,10 +192,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - Mr birthDate: 1991-1-13 generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 @@ -237,7 +232,6 @@ ConsentMultipleRelationshipsIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 9dd49b20..6a0a5d99 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -30,6 +30,7 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother @@ -64,10 +65,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 @@ -105,7 +105,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -163,10 +162,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 @@ -204,7 +202,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: Personal @@ -262,10 +259,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - Mr birthDate: 1991-1-13 generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 @@ -303,7 +299,6 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: Personal diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml index 800e6c72..f98053e7 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml @@ -30,6 +30,7 @@ ConsentMultipleRelationshipsIncludePerformerBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother @@ -71,7 +72,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -140,7 +140,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: Personal @@ -209,7 +208,6 @@ ConsentMultipleRelationshipsIncludePerformerBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: Personal diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml index 2a15c3e2..ede9c6ad 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml @@ -36,10 +36,9 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: - Miss birthDate: '1963-11-02' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 @@ -77,7 +76,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000020' - type: RelatedPerson role: coding: - code: CHILD @@ -123,7 +121,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000021' - type: RelatedPerson role: coding: - code: GUARD @@ -169,7 +166,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index 88b1bbc6..a2d9d731 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -36,10 +36,9 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - Miss birthDate: '1963-11-02' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 @@ -60,6 +59,7 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother @@ -100,7 +100,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000020' - type: RelatedPerson role: coding: - code: CHILD @@ -166,7 +165,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000021' - type: RelatedPerson role: coding: - code: GUARD @@ -232,7 +230,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml index 621b9589..715851b2 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml @@ -28,6 +28,7 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother @@ -68,7 +69,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000020' - type: RelatedPerson role: coding: - code: CHILD @@ -134,7 +134,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000021' - type: RelatedPerson role: coding: - code: GUARD @@ -200,7 +199,6 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml index d88fb3e3..42364bd5 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml @@ -45,7 +45,6 @@ ConsentMultipleRelationshipsSinglePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000020' - type: RelatedPerson role: coding: - code: PRN @@ -91,7 +90,6 @@ ConsentMultipleRelationshipsSinglePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000021' - type: RelatedPerson role: coding: - code: GUARD @@ -137,7 +135,6 @@ ConsentMultipleRelationshipsSinglePatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: CHILD diff --git a/specification/examples/responses/GET_Consent/multiple-relationships.yaml b/specification/examples/responses/GET_Consent/multiple-relationships.yaml index 5f866c67..1f8acebe 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships.yaml @@ -45,7 +45,6 @@ ConsentMultipleRelationshipsBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -91,7 +90,6 @@ ConsentMultipleRelationshipsBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN @@ -137,7 +135,6 @@ ConsentMultipleRelationshipsBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000022' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml index d067836e..f652d440 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml @@ -37,10 +37,9 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index 3d13d76c..bcd58b93 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -59,8 +59,7 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - type: Organization - identifier: + - identifier: value: ODS12345 system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: @@ -100,7 +99,6 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000010' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml index df3c7429..a11eb70b 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml @@ -45,7 +45,6 @@ ConsentSingleConsentingAdultRelationshipBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000010' - type: RelatedPerson role: coding: - code: GUARD diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml index 1b31145f..9fdb976b 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml @@ -40,10 +40,9 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index 1438b429..5bdf471c 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -30,6 +30,7 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother @@ -64,10 +65,9 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - type: Organization - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 @@ -105,7 +105,6 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000019' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml index ec3cfabd..8ade3c92 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml @@ -29,6 +29,7 @@ ConsentSingleAdultChildRelationshipIncludePerformerBundle: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: PRN display: parent + - coding: - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code: MTH display: mother diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml index b6afb9c3..3976dce3 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml @@ -45,7 +45,6 @@ ConsentSingleAdultChildRelationshipBundle: identifier: system: https://fhir.nhs.uk/Id/nhs-number value: '9000000019' - type: RelatedPerson role: coding: - code: PRN diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 85dfc18f..49d9ec5f 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -2422,9 +2422,6 @@ components: required: - identifier properties: - type: - type: string - description: The resource type that the reference refers to identifier: $ref: "#/components/schemas/Identifier" From 431a5f3d1004111c8f95371708f1f92ed89c660c Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Mon, 29 Sep 2025 15:12:08 +0100 Subject: [PATCH 03/20] NPA-5608: postman change and spec update and examples update --- ...ip Service Sandbox.postman_collection.json | 430 ++++++++---------- ...onships-status-active-include-details.yaml | 4 +- ...ultiple-relationships-include-patient.yaml | 6 +- ...lationships-include-performer-patient.yaml | 6 +- ...nships-single-patient-include-patient.yaml | 2 +- ...gle-patient-include-performer-patient.yaml | 2 +- ...ng-adult-relationship-include-patient.yaml | 2 +- ...elationship-include-performer-patient.yaml | 2 +- ...er-child-relationship-include-patient.yaml | 2 +- ...elationship-include-performer-patient.yaml | 2 +- .../validated-relationships-service-api.yaml | 2 +- 11 files changed, 215 insertions(+), 245 deletions(-) diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index c5b45e65..46adb5b5 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -2086,7 +2086,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", @@ -2099,14 +2098,20 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ]", + " },", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", " \"display\": \"mother\"", " }", + " ", " ]", - " }", + "", + " },", " ]", " },", " \"search\": {", @@ -2139,7 +2144,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -2161,7 +2165,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -2230,7 +2233,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2269,7 +2271,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000005\"", @@ -2317,7 +2318,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -2335,7 +2335,6 @@ " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -2404,7 +2403,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2440,7 +2438,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } }, { @@ -2450,7 +2449,8 @@ "" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -2575,7 +2575,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2655,7 +2654,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2691,7 +2689,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } }, { @@ -2701,7 +2700,8 @@ "" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -2806,7 +2806,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2886,7 +2885,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -2966,7 +2964,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3046,7 +3043,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3082,7 +3078,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -3195,7 +3192,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3275,7 +3271,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3355,7 +3350,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3391,7 +3385,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -3461,7 +3456,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -3483,7 +3477,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -3552,7 +3545,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3601,7 +3593,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -3619,7 +3610,6 @@ " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -3688,7 +3678,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3737,7 +3726,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -3755,7 +3743,6 @@ " \"birthDate\": \"1991-1-13\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -3824,7 +3811,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -3860,7 +3846,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -3924,7 +3911,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000009\"", @@ -3937,7 +3923,11 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ],", + " },", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -4008,7 +3998,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4047,7 +4036,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000005\"", @@ -4126,7 +4114,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4165,7 +4152,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000006\"", @@ -4244,7 +4230,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4280,7 +4265,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -4344,7 +4330,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000009\"", @@ -4357,7 +4342,11 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ]", + " },", + " { ", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -4397,7 +4386,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -4419,7 +4407,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -4488,7 +4475,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4527,7 +4513,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000005\"", @@ -4575,7 +4560,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -4593,7 +4577,6 @@ " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -4662,7 +4645,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4701,7 +4683,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000006\"", @@ -4749,7 +4730,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -4767,7 +4747,6 @@ " \"birthDate\": \"1991-1-13\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -4836,7 +4815,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -4872,7 +4850,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -4981,7 +4960,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5061,7 +5039,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5141,7 +5118,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5177,7 +5153,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -5247,7 +5224,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -5265,7 +5241,6 @@ " \"birthDate\": \"1963-11-02\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -5293,7 +5268,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -5306,7 +5280,10 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ]", + " },", + " { \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -5377,7 +5354,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5416,7 +5392,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -5495,7 +5470,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5534,7 +5508,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -5613,7 +5586,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5649,7 +5621,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -5717,7 +5690,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -5731,6 +5703,10 @@ " \"code\": \"PRN\",", " \"display\": \"parent\"", " },", + " ]", + " },", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -5801,7 +5777,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5840,7 +5815,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -5919,7 +5893,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -5958,7 +5931,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000100\"", @@ -6037,7 +6009,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6073,7 +6044,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -6147,7 +6119,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -6165,7 +6136,6 @@ " \"birthDate\": \"1963-11-02\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -6234,7 +6204,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6314,7 +6283,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6394,7 +6362,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6430,7 +6397,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -6591,7 +6559,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6627,7 +6594,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -6687,7 +6655,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000005\"", @@ -6735,7 +6702,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -6753,7 +6719,6 @@ " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -6822,7 +6787,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -6858,7 +6822,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -6967,7 +6932,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -7003,7 +6967,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -7063,7 +7028,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000009\"", @@ -7076,7 +7040,11 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ]", + " },", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -7116,7 +7084,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -7138,7 +7105,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -7207,7 +7173,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -7243,7 +7208,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -8190,26 +8156,29 @@ " \"value\": \"ABC1234567\"", " }", " ],", - " \"name\": {", - " \"use\": \"usual\",", - " \"period\": {", - " \"start\": \"2020-01-01\",", - " \"end\": \"2021-12-31\"", - " },", - " \"given\": [", - " \"Sally\"", - " ],", - " \"family\": \"Evans\",", - " \"prefix\": [", - " \"Mrs\"", - " ]", - " },", + " \"name\": [", + " {", + " \"use\": \"usual\",", + " \"period\": {", + " \"start\": \"2020-01-01\",", + " \"end\": \"2021-12-31\"", + " },", + " \"given\": [", + " \"Sally\"", + " ],", + " \"family\": \"Evans\",", + " \"prefix\": [", + " \"Mrs\"", + " ]", + " }", + " ],", " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"identifier\": null,", - " \"value\": \"ODS12345\",", - " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", + " \"identifier\": {", + " \"value\": \"ODS12345\",", + " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", + " }", " }", " ]", " },", @@ -8496,7 +8465,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000005\"", @@ -8544,7 +8512,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -8562,7 +8529,6 @@ " \"birthDate\": \"1995-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -8630,8 +8596,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", - " },", - " \"type\": \"RelatedPerson\"", + " }", " },", " \"role\": {", " \"coding\": [", @@ -8666,7 +8631,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -8771,8 +8737,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", - " },", - " \"type\": \"RelatedPerson\"", + " }", " },", " \"role\": {", " \"coding\": [", @@ -8808,7 +8773,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -8873,7 +8839,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -8895,7 +8860,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -8974,7 +8938,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -9008,109 +8973,112 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"resourceType\": \"Bundle\",", - " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", - " \"total\": 1,", - " \"type\": \"searchset\",", - " \"link\": [", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", + " \"total\": 1,", + " \"type\": \"searchset\",", + " \"link\": [", " {", " \"relation\": \"self\",", " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer\"", " }", " ],", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"resourceType\": \"RelatedPerson\",", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000019\"", - " },", - " {", - " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", - " \"value\": \"ABC0000001\"", - " }", - " ],", - " \"patient\": {", - " \"type\": \"Patient\",", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", - " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", - " \"code\": \"PRN\",", - " \"display\": \"parent\"", - " },", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", - " \"code\": \"MTH\",", - " \"display\": \"mother\"", - " }", - " ]", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"include\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",", - " \"resource\": {", - " \"resourceType\": \"Consent\",", - " \"id\": \"BBCC67E9\",", - " \"status\": \"active\",", - " \"scope\": {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", - " \"code\": \"patient-privacy\",", - " \"display\": \"Privacy Consent\"", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"resourceType\": \"RelatedPerson\",", + " \"id\": \"BE974742\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", + " },", + " {", + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", + " \"value\": \"ABC0000001\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " },", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", + " \"code\": \"PRN\",", + " \"display\": \"parent\"", + " },", + " ]", + " },", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", + " \"code\": \"MTH\",", + " \"display\": \"mother\"", + " }", + " ]", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"include\"", " }", - " ],", - " \"text\": \"Patient Privacy Consent\"", - " },", - " \"category\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", - " \"code\": \"INFA\",", - " \"display\": \"Information Access\"", - " }", - " ],", - " \"text\": \"Information Access Consent\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", " },", - " \"dateTime\": \"2024-07-21T17:32:28Z\",", - " \"performer\": [", - " {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000019\"", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",", + " \"resource\": {", + " \"resourceType\": \"Consent\",", + " \"id\": \"BBCC67E9\",", + " \"status\": \"active\",", + " \"scope\": {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"code\": \"patient-privacy\",", + " \"display\": \"Privacy Consent\"", + " }", + " ],", + " \"text\": \"Patient Privacy Consent\"", + " },", + " \"category\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"code\": \"INFA\",", + " \"display\": \"Information Access\"", + " }", + " ],", + " \"text\": \"Information Access Consent\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " },", + " \"dateTime\": \"2024-07-21T17:32:28Z\",", + " \"performer\": [", + " {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", + " }", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"match\"", " }", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " }", - " ]", + " }", + " ]", "}", "", "pm.test(\"Status code is 200\", function () {", @@ -9123,7 +9091,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -9184,7 +9153,6 @@ " }", " ],", " \"patient\": {", - " \"type\": \"Patient\",", " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000009\"", @@ -9197,7 +9165,11 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", + " ]", + " },", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -9237,7 +9209,6 @@ " ],", " \"name\": [", " {", - " \"id\": \"123456\",", " \"use\": \"usual\",", " \"period\": {", " \"start\": \"2020-01-01\",", @@ -9259,7 +9230,6 @@ " \"birthDate\": \"2022-10-22\",", " \"generalPractitioner\": [", " {", - " \"type\": \"Organization\",", " \"identifier\": {", " \"value\": \"ODS12345\",", " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", @@ -9328,7 +9298,6 @@ " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", " },", - " \"type\": \"RelatedPerson\"", " },", " \"role\": {", " \"coding\": [", @@ -9364,7 +9333,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index b5d04ee0..a724affb 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -51,7 +51,7 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC1234567" name: - use: usual + - use: usual period: start: "2020-01-01" end: "2021-12-31" @@ -150,7 +150,7 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier" value: "ABC9999999" name: - use: usual + - use: usual period: start: "2020-01-01" end: "2021-12-31" diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index a7598838..9494bc28 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -26,7 +26,7 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' @@ -105,7 +105,7 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' @@ -181,7 +181,7 @@ ConsentMultipleRelationshipsIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 6a0a5d99..73690a79 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -51,7 +51,7 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' @@ -151,7 +151,7 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' @@ -248,7 +248,7 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC9999999 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml index ede9c6ad..efedadbc 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml @@ -25,7 +25,7 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index a2d9d731..8d6ca498 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -25,7 +25,7 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml index f652d440..f00b6c03 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml @@ -26,7 +26,7 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index bcd58b93..7db793b1 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -48,7 +48,7 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234567 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml index 9fdb976b..2f1add4b 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml @@ -26,7 +26,7 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234556 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index 5bdf471c..3c0bbbca 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -51,7 +51,7 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier' value: ABC1234556 name: - use: usual + - use: usual period: start: '2020-01-01' end: '2021-12-31' diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 49d9ec5f..ac74b2f4 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://app.getpostman.com/run-collection/44536620-4c6e58e9-dd6b-42fc-b6d7-5beac34fa4ea?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D44536620-4c6e58e9-dd6b-42fc-b6d7-5beac34fa4ea%26entityType%3Dcollection%26workspaceId%3D93b2b54c-673e-49b5-bd23-0e78a02810f3) + [Run In Postman](https://app.getpostman.com/run-collection/48873809-9c6dfa73-ac4f-4497-bca6-c2c4048f7c10?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D48873809-9c6dfa73-ac4f-4497-bca6-c2c4048f7c10%26entityType%3Dcollection%26workspaceId%3Dbb0b04fe-d822-4011-ab93-015fca3f4c01) ### Integration testing From 6765c5d365ba5a01c5ee2223ab211e7c16806be8 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:01:48 +0100 Subject: [PATCH 04/20] Update specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml NPA-5608: Altered generalPractitioner structure Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...mother-child-relationship-include-performer-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index 3c0bbbca..b34f7bba 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -65,9 +65,9 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 From 54a63c1e0cba134c0f7d2bf9df93317da912f9f6 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:02:42 +0100 Subject: [PATCH 05/20] Update specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml NPA-5608: commit structure change for generalPractioner remove spaces Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...iltered-relationships-status-active-include-details.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index a724affb..ecddee10 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -65,9 +65,9 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - PhD birthDate: "2022-10-22" generalPractitioner: - - identifier: - value: "ODS12345" - system: "https://fhir.nhs.uk/Id/ods-organization-code" + - identifier: + value: "ODS12345" + system: "https://fhir.nhs.uk/Id/ods-organization-code" search: mode: include - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9" From 93c63b0b00dbf06a49fd6012df0d7498527f0f74 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:04:09 +0100 Subject: [PATCH 06/20] Update specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml NPA-5608: Remove the spaces for generalPractitioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...iltered-relationships-status-active-include-details.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index ecddee10..9c482b9d 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -161,9 +161,9 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: - Mrs birthDate: "1995-10-22" generalPractitioner: - - identifier: - value: "ODS12345" - system: "https://fhir.nhs.uk/Id/ods-organization-code" + - identifier: + value: "ODS12345" + system: "https://fhir.nhs.uk/Id/ods-organization-code" search: mode: include - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1" From 333808527e60be6bed4eaf7151d7698a12fc0878 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:05:17 +0100 Subject: [PATCH 07/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml NPA-5608: remove spaces from generalPractioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../GET_Consent/multiple-relationships-include-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index 9494bc28..0f623fe6 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -40,9 +40,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 From 5930b1fb7a9fe5454a6335edded9860f5f828504 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:06:51 +0100 Subject: [PATCH 08/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml NPA-5608: remove spacing from generalPractioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../GET_Consent/multiple-relationships-include-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index 0f623fe6..18be7daa 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -116,9 +116,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 From 9b816a9b5832a3359c1aa2bbe03df26fa36b87d5 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:08:49 +0100 Subject: [PATCH 09/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml NPDA-5608: remove spacing from generalPractitioner Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../GET_Consent/multiple-relationships-include-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index 18be7daa..33e0cbe1 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -192,9 +192,9 @@ ConsentMultipleRelationshipsIncludePatientBundle: - Mr birthDate: 1991-1-13 generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 From 14c43fc715a743141c41030757a5f79cbc6f877e Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:10:01 +0100 Subject: [PATCH 10/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml NPA-5608: remove spacing from generalPractitioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../multiple-relationships-include-performer-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 73690a79..13d60a31 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -65,9 +65,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - PhD birthDate: '2022-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 From 5be9d8ba2d50c295100ffb7c28e6a045beb137e1 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:11:38 +0100 Subject: [PATCH 11/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml NPA-5608: remove spacing from generalPractitioner Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../multiple-relationships-include-performer-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 13d60a31..7249cbdd 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -162,9 +162,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 From 99d52efd208e3e9048b65e450a20c2f652a6b6a9 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:13:12 +0100 Subject: [PATCH 12/20] Update specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml NPA-5608: remove spaces from generalPracitioner Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../multiple-relationships-include-performer-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 7249cbdd..79de821d 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -259,9 +259,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: - Mr birthDate: 1991-1-13 generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 From f28a9ebf3c62905a2779a16b02924d94840f7bcd Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:14:20 +0100 Subject: [PATCH 13/20] Update specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml NPA-5608: remove spaces from generalPractitioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...ltiple-relationships-single-patient-include-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml index efedadbc..1059081f 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml @@ -36,9 +36,9 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: - Miss birthDate: '1963-11-02' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 From cc27962142ccafaa3dd94490e680ec30d1e01106 Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:15:14 +0100 Subject: [PATCH 14/20] Update specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml NPA-5608: remove spaces from generalPractitioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...ationships-single-patient-include-performer-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index 8d6ca498..470c4b6f 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -36,9 +36,9 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: - Miss birthDate: '1963-11-02' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 From cb9bc88257c86d3d822e3fa939b77089b1d645ec Mon Sep 17 00:00:00 2001 From: ChristopherBacon <59895399+ChristopherBacon@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:16:03 +0100 Subject: [PATCH 15/20] Update specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml NPA-5608: remove spaces from generalPractitioner object Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...ingle-consenting-adult-relationship-include-patient.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml index f00b6c03..9663c3e7 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml @@ -37,9 +37,9 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: - Mrs birthDate: '1995-10-22' generalPractitioner: - - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + - identifier: + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 From a4855c44b795d7312dcbb1cd58b255d0a68d2561 Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Wed, 1 Oct 2025 11:26:21 +0100 Subject: [PATCH 16/20] NPA-5608: remove spacing from examples data --- ...-relationships-status-active-include-details.yaml | 12 ++++++------ ...iple-relationships-include-performer-patient.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index a724affb..7335872b 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -27,13 +27,13 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: value: "9000000017" relationship: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - code: PRN - display: parent + - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + code: PRN + display: parent - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - code: MTH - display: mother + - system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + code: MTH + display: mother search: mode: include - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2" diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 73690a79..d5dc170f 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -27,13 +27,13 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: value: '9000000009' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2 From 82a2e83f57f69f9151a371c5e0f19a7f8c8e810a Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Wed, 1 Oct 2025 18:02:44 +0100 Subject: [PATCH 17/20] NPA-5608: updated specs from commit recommendations --- ...tiple-relationships-include-performer.yaml | 22 +++++++++---------- ...gle-patient-include-performer-patient.yaml | 12 +++++----- ...hips-single-patient-include-performer.yaml | 12 +++++----- ...elationship-include-performer-patient.yaml | 4 ++-- ...elationship-include-performer-patient.yaml | 12 +++++----- ...-child-relationship-include-performer.yaml | 12 +++++----- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml index f98053e7..988e5e64 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml @@ -27,13 +27,13 @@ ConsentMultipleRelationshipsIncludePerformerBundle: value: '9000000009' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: >- @@ -61,8 +61,8 @@ ConsentMultipleRelationshipsIncludePerformerBundle: dateTime: '2024-07-21T17:32:28Z' performer: - identifier: - system: 'https://fhir.nhs.uk/Id/nhs-number' - value: '9000000022' + system: 'https://fhir.nhs.uk/Id/nhs-number' + value: '9000000022' policy: - authority: https://www.england.nhs.uk uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD @@ -74,9 +74,9 @@ ConsentMultipleRelationshipsIncludePerformerBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: PRN + display: Parent + system: http://terminology.hl7.org/CodeSystem/v3-RoleCode period: end: '2026-02-11' start: '2025-02-11' diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index 470c4b6f..d65d0324 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -56,13 +56,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000100' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml index 715851b2..d8f9455a 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml @@ -25,13 +25,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000100' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index 7db793b1..d733135a 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -60,8 +60,8 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: birthDate: '1995-10-22' generalPractitioner: - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index b34f7bba..1bf25cf5 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -27,13 +27,13 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: value: '9000000009' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2 diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml index 8ade3c92..8b8adbd0 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml @@ -26,13 +26,13 @@ ConsentSingleAdultChildRelationshipIncludePerformerBundle: value: '9000000009' relationship: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: PRN - display: parent + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: PRN + display: parent - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' - code: MTH - display: mother + - system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' + code: MTH + display: mother search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9 From 39bd841d3aa15b9225900a8d93641ac733408b9e Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Wed, 1 Oct 2025 18:09:41 +0100 Subject: [PATCH 18/20] NPA-5608: minor schema tweaks --- .../GET_Consent/multiple-relationships-include-performer.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml index 988e5e64..d0577763 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml @@ -61,8 +61,8 @@ ConsentMultipleRelationshipsIncludePerformerBundle: dateTime: '2024-07-21T17:32:28Z' performer: - identifier: - system: 'https://fhir.nhs.uk/Id/nhs-number' - value: '9000000022' + system: 'https://fhir.nhs.uk/Id/nhs-number' + value: '9000000022' policy: - authority: https://www.england.nhs.uk uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD From c302cf66acfca5c4f9934ed5185474460cb47863 Mon Sep 17 00:00:00 2001 From: ChristopherBacon Date: Wed, 1 Oct 2025 18:19:25 +0100 Subject: [PATCH 19/20] NPA-6508: minor generalPractitioner schema fix --- ...nsenting-adult-relationship-include-performer-patient.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index d733135a..7db793b1 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -60,8 +60,8 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: birthDate: '1995-10-22' generalPractitioner: - identifier: - value: ODS12345 - system: 'https://fhir.nhs.uk/Id/ods-organization-code' + value: ODS12345 + system: 'https://fhir.nhs.uk/Id/ods-organization-code' search: mode: include - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 From 5dc8306dfee70e9939148798dbb9bb89ea187049 Mon Sep 17 00:00:00 2001 From: Ellie Bound <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:03:29 +0000 Subject: [PATCH 20/20] NPA-5608: Update postman collection with latest master --- ...ip Service Sandbox.postman_collection.json | 558 +++++++++--------- .../validated-relationships-service-api.yaml | 2 +- 2 files changed, 266 insertions(+), 294 deletions(-) diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index 369f5f4d..299b58ff 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -1,11 +1,11 @@ { "info": { - "_postman_id": "5c759d0a-d924-44ab-8668-3587dcaf27e1", - "name": "Validated Relationship Service Sandbox 14/10/25", + "_postman_id": "e45a02c2-af60-4d4c-b790-c6708ae0f214", + "name": "Validated Relationship Service Sandbox 03/11/25", "description": "This Postman collection includes example scenarios for each of the Validated Relationship Service (VRS) API endpoints, covering both valid and invalid request scenarios.\n\nThe collection is pointed towards the VRS sandbox environment, which will return a specific example response based on the request sent. All data shown in the requests or responses is test data.\n\nOur sandbox environment only covers the scenarios listed in the Postman collection and is open access. It does not allow you to test authorisation or any scenarios beyond the ones documented.\n\nFull specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "18067099", - "_collection_link": "https://www.postman.com/lunar-crescent-672573/workspace/validated-relationship-service-14-10-2025/collection/18067099-5c759d0a-d924-44ab-8668-3587dcaf27e1?action=share&source=collection_link&creator=18067099" + "_exporter_id": "44536620", + "_collection_link": "https://l44444-2379.postman.co/workspace/aac72fed-09cc-4a02-a0b4-9429fb546dba/collection/44536620-e45a02c2-af60-4d4c-b790-c6708ae0f214?action=share&source=collection_link&creator=44536620" }, "item": [ { @@ -2095,10 +2095,8 @@ " \"code\": \"MTH\",", " \"display\": \"mother\"", " }", - " ", " ]", - "", - " },", + " }", " ]", " },", " \"search\": {", @@ -2219,7 +2217,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2389,7 +2387,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2425,8 +2423,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } }, { @@ -2436,8 +2433,7 @@ "" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -2561,7 +2557,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2640,7 +2636,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2676,8 +2672,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } }, { @@ -2687,8 +2682,7 @@ "" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -2792,7 +2786,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2871,7 +2865,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -2950,7 +2944,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3029,7 +3023,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000017\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3065,8 +3059,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -3178,7 +3171,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3257,7 +3250,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3336,7 +3329,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3372,8 +3365,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -3531,7 +3523,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3664,7 +3656,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3797,7 +3789,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -3833,8 +3825,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -3911,7 +3902,7 @@ " \"code\": \"PRN\",", " \"display\": \"parent\"", " }", - " ],", + " ]", " },", " {", " \"coding\": [", @@ -3984,7 +3975,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4100,7 +4091,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4216,7 +4207,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4252,8 +4243,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -4332,7 +4322,7 @@ " }", " ]", " },", - " { ", + " {", " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", @@ -4461,7 +4451,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4631,7 +4621,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4801,7 +4791,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -4837,8 +4827,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -4946,7 +4935,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5025,7 +5014,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5104,7 +5093,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5140,8 +5129,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -5270,7 +5258,8 @@ " }", " ]", " },", - " { \"coding\": [", + " {", + " \"coding\": [", " {", " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"MTH\",", @@ -5340,7 +5329,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5456,7 +5445,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5572,7 +5561,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5608,8 +5597,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -5689,7 +5677,7 @@ " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", " \"code\": \"PRN\",", " \"display\": \"parent\"", - " },", + " }", " ]", " },", " {", @@ -5763,7 +5751,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5879,7 +5867,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -5995,7 +5983,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6031,8 +6019,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -6190,7 +6177,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000020\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6269,7 +6256,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000021\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6348,7 +6335,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000022\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6384,8 +6371,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -6545,7 +6531,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6581,8 +6567,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -6773,7 +6758,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000010\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6809,8 +6794,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -6918,7 +6902,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -6954,8 +6938,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -7159,7 +7142,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -7195,8 +7178,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8079,8 +8061,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8240,8 +8221,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8275,109 +8255,109 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"resourceType\": \"Bundle\",", - " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", - " \"total\": 1,", - " \"type\": \"searchset\",", - " \"link\": [", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", + " \"total\": 1,", + " \"type\": \"searchset\",", + " \"link\": [", " {", " \"relation\": \"self\",", " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer\"", " }", " ],", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", - " \"resource\": {", - " \"resourceType\": \"RelatedPerson\",", - " \"id\": \"RP974720\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000010\"", - " },", - " {", - " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", - " \"value\": \"ABC0000008\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000005\"", - " }", - " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", - " \"code\": \"Personal\",", - " \"display\": \"Personal relationship with the patient\"", - " }", - " ]", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"include\"", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", + " \"resource\": {", + " \"resourceType\": \"RelatedPerson\",", + " \"id\": \"RP974720\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", + " },", + " {", + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", + " \"value\": \"ABC0000008\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000005\"", + " }", + " },", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", + " \"code\": \"Personal\",", + " \"display\": \"Personal relationship with the patient\"", + " }", + " ]", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"include\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", + " \"resource\": {", + " \"resourceType\": \"Consent\",", + " \"id\": \"WWCC67T1\",", + " \"status\": \"active\",", + " \"scope\": {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"code\": \"patient-privacy\",", + " \"display\": \"Privacy Consent\"", " }", + " ],", + " \"text\": \"Patient Privacy Consent\"", " },", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", - " \"resource\": {", - " \"resourceType\": \"Consent\",", - " \"id\": \"WWCC67T1\",", - " \"status\": \"active\",", - " \"scope\": {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", - " \"code\": \"patient-privacy\",", - " \"display\": \"Privacy Consent\"", - " }", - " ],", - " \"text\": \"Patient Privacy Consent\"", - " },", - " \"category\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", - " \"code\": \"INFA\",", - " \"display\": \"Information Access\"", - " }", - " ],", - " \"text\": \"Information Access Consent\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000005\"", - " }", - " },", - " \"dateTime\": \"2024-07-21T17:32:28Z\",", - " \"performer\": [", - " {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000010\"", - " }", - " }", - " ],", - " \"policy\": [", - " {", - " \"authority\": \"https://www.england.nhs.uk\",", - " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"match\"", + " \"category\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"code\": \"INFA\",", + " \"display\": \"Information Access\"", + " }", + " ],", + " \"text\": \"Information Access Consent\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000005\"", + " }", + " },", + " \"dateTime\": \"2024-07-21T17:32:28Z\",", + " \"performer\": [", + " {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", " }", - " }", - " ]", + " }", + " ],", + " \"policy\": [", + " {", + " \"authority\": \"https://www.england.nhs.uk\",", + " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", + " }", + " ],", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " }", + " ]", "}", "", "pm.test(\"Status code is 200\", function () {", @@ -8390,8 +8370,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8618,8 +8597,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8760,8 +8738,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8925,8 +8902,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -8960,112 +8936,112 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"resourceType\": \"Bundle\",", - " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", - " \"total\": 1,", - " \"type\": \"searchset\",", - " \"link\": [", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", + " \"total\": 1,", + " \"type\": \"searchset\",", + " \"link\": [", " {", " \"relation\": \"self\",", " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer\"", " }", " ],", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"resourceType\": \"RelatedPerson\",", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000019\"", - " },", - " {", - " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", - " \"value\": \"ABC0000001\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", - " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", - " \"code\": \"PRN\",", - " \"display\": \"parent\"", - " },", - " ]", - " },", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", - " \"code\": \"MTH\",", - " \"display\": \"mother\"", - " }", - " ]", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"include\"", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"resourceType\": \"RelatedPerson\",", + " \"id\": \"BE974742\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", + " },", + " {", + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", + " \"value\": \"ABC0000001\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " },", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", + " \"code\": \"PRN\",", + " \"display\": \"parent\"", + " }", + " ]", + " },", + " {", + " \"coding\":[", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",", + " \"code\": \"MTH\",", + " \"display\": \"mother\"", + " }", + " ]", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"include\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",", + " \"resource\": {", + " \"resourceType\": \"Consent\",", + " \"id\": \"BBCC67E9\",", + " \"status\": \"active\",", + " \"scope\": {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"code\": \"patient-privacy\",", + " \"display\": \"Privacy Consent\"", " }", + " ],", + " \"text\": \"Patient Privacy Consent\"", " },", - " {", - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",", - " \"resource\": {", - " \"resourceType\": \"Consent\",", - " \"id\": \"BBCC67E9\",", - " \"status\": \"active\",", - " \"scope\": {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", - " \"code\": \"patient-privacy\",", - " \"display\": \"Privacy Consent\"", - " }", - " ],", - " \"text\": \"Patient Privacy Consent\"", - " },", - " \"category\": [", - " {", - " \"coding\": [", - " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", - " \"code\": \"INFA\",", - " \"display\": \"Information Access\"", - " }", - " ],", - " \"text\": \"Information Access Consent\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", - " },", - " \"dateTime\": \"2024-07-21T17:32:28Z\",", - " \"performer\": [", - " {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000019\"", - " }", - " }", - " ]", - " },", - " \"search\": {", - " \"mode\": \"match\"", + " \"category\": [", + " {", + " \"coding\": [", + " {", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"code\": \"INFA\",", + " \"display\": \"Information Access\"", + " }", + " ],", + " \"text\": \"Information Access Consent\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " },", + " \"dateTime\": \"2024-07-21T17:32:28Z\",", + " \"performer\": [", + " {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", " }", - " }", - " ]", + " }", + " ]", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " }", + " ]", "}", "", "pm.test(\"Status code is 200\", function () {", @@ -9078,8 +9054,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -9284,7 +9259,7 @@ " \"identifier\": {", " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", " \"value\": \"9000000019\"", - " },", + " }", " },", " \"role\": {", " \"coding\": [", @@ -9320,8 +9295,7 @@ "});" ], "type": "text/javascript", - "packages": {}, - "requests": {} + "packages": {} } } ], @@ -10193,7 +10167,6 @@ "script": { "type": "text/javascript", "packages": {}, - "requests": {}, "exec": [ "" ] @@ -10204,7 +10177,6 @@ "script": { "type": "text/javascript", "packages": {}, - "requests": {}, "exec": [ "pm.test(\"Response has FHIR content type\", () => {", " pm.expect(pm.response.headers.get('Content-Type')).to.include('application/fhir+json');", diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index ca354457..e145263d 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://app.getpostman.com/run-collection/18067099-5c759d0a-d924-44ab-8668-3587dcaf27e1?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D18067099-5c759d0a-d924-44ab-8668-3587dcaf27e1%26entityType%3Dcollection%26workspaceId%3D1ee72d72-3355-4213-a165-a79aa2ab1de8) + [Run In Postman](https://app.getpostman.com/run-collection/44536620-e45a02c2-af60-4d4c-b790-c6708ae0f214?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D44536620-e45a02c2-af60-4d4c-b790-c6708ae0f214%26entityType%3Dcollection%26workspaceId%3D65d46c77-2ee2-4fb0-92de-2ec03857a9e6) ### Integration testing