From 9ae413f78de185590aaf1e7278dfdcf5f2df121b Mon Sep 17 00:00:00 2001 From: github-actions <62281988+JackPlowman@users.noreply.github.com> Date: Thu, 29 May 2025 15:51:19 +0100 Subject: [PATCH] NPA-5063 Update Postman Collection --- ...ip Service Sandbox.postman_collection.json | 770 ++++++++++-------- .../validated-relationships-service-api.yaml | 2 +- 2 files changed, 437 insertions(+), 335 deletions(-) diff --git a/postman/Validate Relationship Service Sandbox.postman_collection.json b/postman/Validate Relationship Service Sandbox.postman_collection.json index cf5cab56..5c3d4a6f 100644 --- a/postman/Validate Relationship Service Sandbox.postman_collection.json +++ b/postman/Validate Relationship Service Sandbox.postman_collection.json @@ -1,10 +1,10 @@ { "info": { - "_postman_id": "6d920a18-f5fd-4ab5-8529-f32c1d8edfd4", - "name": "Validate Relationship Service Sandbox 02/05/25", + "_postman_id": "e3d42c87-bf68-4cae-b08d-e1fd0dba1f80", + "name": "Validate Relationship Service Sandbox 29/05/25", "description": "Example usage of the Validate Relationship Service (VRS) sandbox.\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" + "_exporter_id": "34042403" }, "item": [ { @@ -283,84 +283,118 @@ "const expectedResponseBody = {", " \"entry\": [", " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " },", - " \"type\": \"Patient\"", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"id\": \"BE974742\",", + " \"birthDate\": \"2017-09-23\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " },", + " \"type\": \"Patient\"", + " },", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", + " \"search\": {", + " \"mode\": \"match\"", " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", " },", " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/A3CC67E2\",", - " \"resource\": {", - " \"id\": \"A3CC67E2\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000025\"", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/A3CC67E2\",", + " \"resource\": {", + " \"id\": \"A3CC67E2\",", + " \"birthDate\": \"2018-04-27\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000025\"", + " },", + " \"type\": \"Patient\"", " },", - " \"type\": \"Patient\"", - " },", - " \"relationship\": [", - " {", + " \"name\": [", + " {", + " \"family\": \"FEARON\",", + " \"given\": [", + " \"Daren\"", + " ],", + " \"id\": \"vitjN\",", + " \"period\": {", + " \"start\": \"2018-09-21\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", - " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", " }", " ],", " \"link\": [", " {", - " \"relation\": \"self\",", - " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?identifier=9000000017\"", + " \"relation\": \"self\",", + " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?identifier=9000000017\"", " }", " ],", + " \"resourceType\": \"Bundle\",", " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", " \"total\": 2,", - " \"type\": \"searchset\",", - " \"resourceType\": \"Bundle\"", + " \"type\": \"searchset\"", "};", "", "pm.test(\"Status code is 200\", function () {", @@ -419,151 +453,185 @@ "exec": [ "const expectedResponseBody = {", " \"entry\": [", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000009\",", - " \"resource\": {", - " \"id\": \"9000000009\",", - " \"birthDate\": \"2017-09-23\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", - " ],", - " \"name\": [", - " {", - " \"id\": \"BLnbA\",", - " \"family\": \"MOGAJI\",", - " \"given\": [", - " \"GADIL\"", - " ],", - " \"period\": {", - " \"start\": \"2021-07-08\"", - " },", - " \"prefix\": [", - " \"MR\"", - " ],", - " \"use\": \"usual\"", - " }", - " ],", - " \"resourceType\": \"Patient\"", - " },", - " \"search\": {", - " \"mode\": \"include\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " },", - " \"type\": \"Patient\"", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000009\",", + " \"resource\": {", + " \"birthDate\": \"2017-09-23\",", + " \"id\": \"9000000009\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " ],", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"resourceType\": \"Patient\"", + " },", + " \"search\": {", + " \"mode\": \"include\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"id\": \"BE974742\",", + " \"birthDate\": \"2017-09-23\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", - " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000025\",", - " \"resource\": {", - " \"id\": \"9000000025\",", - " \"birthDate\": \"2018-04-27\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000025\"", - " }", - " ],", - " \"name\": [", - " {", - " \"id\": \"vitjN\",", - " \"family\": \"FEARON\",", - " \"given\": [", - " \"Daren\"", - " ],", - " \"period\": {", - " \"start\": \"2018-09-21\"", - " },", - " \"prefix\": [", - " \"MR\"", - " ],", - " \"use\": \"usual\"", - " }", - " ],", - " \"resourceType\": \"Patient\"", - " },", - " \"search\": {", - " \"mode\": \"include\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/A3CC67E2\",", - " \"resource\": {", - " \"id\": \"A3CC67E2\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000025\"", - " },", - " \"type\": \"Patient\"", + " \"type\": \"Patient\"", + " },", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000025\",", + " \"resource\": {", + " \"birthDate\": \"2018-04-27\",", + " \"id\": \"9000000025\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000025\"", + " }", + " ],", + " \"name\": [", + " {", + " \"family\": \"FEARON\",", + " \"given\": [", + " \"Daren\"", + " ],", + " \"id\": \"vitjN\",", + " \"period\": {", + " \"start\": \"2018-09-21\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"resourceType\": \"Patient\"", + " },", + " \"search\": {", + " \"mode\": \"include\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/A3CC67E2\",", + " \"resource\": {", + " \"id\": \"A3CC67E2\",", + " \"birthDate\": \"2018-04-27\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000025\"", " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", - " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " }", - " ],", - " \"link\": [", - " {", - " \"relation\": \"self\",", - " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?identifier=9000000017&_include=RelatedPerson:patient\"", - " }", - " ],", - " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", - " \"total\": 4,", - " \"type\": \"searchset\",", - " \"resourceType\": \"Bundle\"", + " \"type\": \"Patient\"", + " },", + " \"name\": [", + " {", + " \"family\": \"FEARON\",", + " \"given\": [", + " \"Daren\"", + " ],", + " \"id\": \"vitjN\",", + " \"period\": {", + " \"start\": \"2018-09-21\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " }", + " ],", + " \"link\": [", + " {", + " \"relation\": \"self\",", + " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?identifier=9000000017&_include=RelatedPerson:patient\"", + " }", + " ],", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", + " \"total\": 4,", + " \"type\": \"searchset\"", "};", "", "pm.test(\"Status code is 200\", function () {", @@ -691,52 +759,69 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " },", - " \"type\": \"Patient\"", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", + " \"total\": 1,", + " \"type\": \"searchset\",", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"id\": \"BE974742\",", + " \"birthDate\": \"2017-09-23\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", - " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " }", - " ],", - " \"link\": [", - " {", - " \"relation\": \"self\",", - " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?patient:identifier=9000000009&identifier=9000000017\"", - " }", - " ],", - " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", - " \"total\": 1,", - " \"type\": \"searchset\",", - " \"resourceType\": \"Bundle\"", + " \"type\": \"Patient\"", + " },", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " }", + " ],", + " \"link\": [", + " {", + " \"relation\": \"self\",", + " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?patient:identifier=9000000009&identifier=9000000017\"", + " }", + " ]", "};", "", "pm.test(\"Status code is 200\", function () {", @@ -798,85 +883,102 @@ "script": { "exec": [ "const expectedResponseBody = {", - " \"entry\": [", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000009\",", - " \"resource\": {", - " \"id\": \"9000000009\",", - " \"birthDate\": \"2017-09-23\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " }", - " ],", - " \"name\": [", - " {", - " \"id\": \"BLnbA\",", - " \"family\": \"MOGAJI\",", - " \"given\": [", - " \"GADIL\"", - " ],", - " \"period\": {", - " \"start\": \"2021-07-08\"", - " },", - " \"prefix\": [", - " \"MR\"", - " ],", - " \"use\": \"usual\"", - " }", - " ],", - " \"resourceType\": \"Patient\"", - " },", - " \"search\": {", - " \"mode\": \"include\"", - " }", - " },", - " {", - " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", - " \"resource\": {", - " \"id\": \"BE974742\",", - " \"identifier\": [", - " {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000017\"", - " }", - " ],", - " \"patient\": {", - " \"identifier\": {", - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", - " \"value\": \"9000000009\"", - " },", - " \"type\": \"Patient\"", + " \"resourceType\": \"Bundle\",", + " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", + " \"total\": 2,", + " \"type\": \"searchset\",", + " \"link\": [", + " {", + " \"relation\": \"self\",", + " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?patient:identifier=9000000009&identifier=9000000017&_include=RelatedPerson:patient\"", + " }", + " ],", + " \"entry\": [", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/9000000009\",", + " \"resource\": {", + " \"birthDate\": \"2017-09-23\",", + " \"id\": \"9000000009\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " ],", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"resourceType\": \"Patient\"", + " },", + " \"search\": {", + " \"mode\": \"include\"", + " }", + " },", + " {", + " \"fullUrl\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",", + " \"resource\": {", + " \"id\": \"BE974742\",", + " \"birthDate\": \"2017-09-23\",", + " \"identifier\": [", + " {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000009\"", + " }", + " ],", + " \"patient\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000017\"", " },", - " \"relationship\": [", - " {", - " \"coding\": [", - " {", - " \"code\": \"MTH\",", - " \"display\": \"mother\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", - " }", - " ]", - " }", - " ],", - " \"resourceType\": \"RelatedPerson\"", - " },", - " \"search\": {", - " \"mode\": \"match\"", - " }", - " }", - " ],", - " \"link\": [", - " {", - " \"relation\": \"self\",", - " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson?patient:identifier=9000000009&identifier=9000000017&_include=RelatedPerson:patient\"", - " }", - " ],", - " \"timestamp\": \"2024-01-01T00:00:00+00:00\",", - " \"total\": 2,", - " \"type\": \"searchset\",", - " \"resourceType\": \"Bundle\"", + " \"type\": \"Patient\"", + " },", + " \"name\": [", + " {", + " \"family\": \"MOGAJI\",", + " \"given\": [", + " \"GADIL\"", + " ],", + " \"id\": \"BLnbA\",", + " \"period\": {", + " \"start\": \"2021-07-08\"", + " },", + " \"prefix\": [", + " \"MR\"", + " ],", + " \"use\": \"usual\"", + " }", + " ],", + " \"relationship\": [", + " {", + " \"coding\": [", + " {", + " \"code\": \"MTH\",", + " \"display\": \"mother\",", + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " }", + " ]", + " }", + " ],", + " \"resourceType\": \"RelatedPerson\"", + " },", + " \"search\": {", + " \"mode\": \"match\"", + " }", + " }", + " ]", "};", "", "pm.test(\"Status code is 200\", function () {", @@ -7187,4 +7289,4 @@ "type": "string" } ] -} \ No newline at end of file +} diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 8151955a..c9341cb3 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -126,7 +126,7 @@ info: * only covers a limited set of scenarios * is open access, so does not allow you to test authorisation - [Run In Postman](https://god.gw.postman.com/run-collection/44536620-6d920a18-f5fd-4ab5-8529-f32c1d8edfd4?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D44536620-6d920a18-f5fd-4ab5-8529-f32c1d8edfd4%26entityType%3Dcollection%26workspaceId%3D9dd1ec4b-294c-4bdb-bb88-499823c7282d) + [Run In Postman](https://god.gw.postman.com/run-collection/34042403-e3d42c87-bf68-4cae-b08d-e1fd0dba1f80?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D34042403-e3d42c87-bf68-4cae-b08d-e1fd0dba1f80%26entityType%3Dcollection%26workspaceId%3Deb44f07f-093a-4e15-8899-2ecefa9775a5) ### Integration testing