|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "4c6e58e9-dd6b-42fc-b6d7-5beac34fa4ea", |
4 | | - "name": "Validated Relationship Service Sandbox 18/09/25", |
| 3 | + "_postman_id": "9c6dfa73-ac4f-4497-bca6-c2c4048f7c10", |
| 4 | + "name": "Validated Relationship Service Sandbox 29/09/25", |
5 | 5 | "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)", |
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", |
7 | | - "_exporter_id": "44536620", |
8 | | - "_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" |
| 7 | + "_exporter_id": "48873809", |
| 8 | + "_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" |
9 | 9 | }, |
10 | 10 | "item": [ |
11 | 11 | { |
|
8090 | 8090 | " \"identifier\": {", |
8091 | 8091 | " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
8092 | 8092 | " \"value\": \"9000000010\"", |
8093 | | - " },", |
8094 | | - " \"type\": \"RelatedPerson\"", |
| 8093 | + " }", |
8095 | 8094 | " },", |
8096 | 8095 | " \"role\": {", |
8097 | 8096 | " \"coding\": [", |
|
8127 | 8126 | "});" |
8128 | 8127 | ], |
8129 | 8128 | "type": "text/javascript", |
8130 | | - "packages": {} |
| 8129 | + "packages": {}, |
| 8130 | + "requests": {} |
8131 | 8131 | } |
8132 | 8132 | } |
8133 | 8133 | ], |
|
8190 | 8190 | " \"value\": \"ABC1234567\"", |
8191 | 8191 | " }", |
8192 | 8192 | " ],", |
8193 | | - " \"name\": [", |
8194 | | - " {", |
8195 | | - " \"id\": \"123456\",", |
8196 | | - " \"use\": \"usual\",", |
8197 | | - " \"period\": {", |
8198 | | - " \"start\": \"2020-01-01\",", |
8199 | | - " \"end\": \"2021-12-31\"", |
8200 | | - " },", |
8201 | | - " \"given\": [", |
8202 | | - " \"Sally\"", |
8203 | | - " ],", |
8204 | | - " \"family\": \"Evans\",", |
8205 | | - " \"prefix\": [", |
8206 | | - " \"Mrs\"", |
8207 | | - " ]", |
8208 | | - " }", |
8209 | | - " ],", |
| 8193 | + " \"name\": {", |
| 8194 | + " \"use\": \"usual\",", |
| 8195 | + " \"period\": {", |
| 8196 | + " \"start\": \"2020-01-01\",", |
| 8197 | + " \"end\": \"2021-12-31\"", |
| 8198 | + " },", |
| 8199 | + " \"given\": [", |
| 8200 | + " \"Sally\"", |
| 8201 | + " ],", |
| 8202 | + " \"family\": \"Evans\",", |
| 8203 | + " \"prefix\": [", |
| 8204 | + " \"Mrs\"", |
| 8205 | + " ]", |
| 8206 | + " },", |
8210 | 8207 | " \"birthDate\": \"1995-10-22\",", |
8211 | 8208 | " \"generalPractitioner\": [", |
8212 | 8209 | " {", |
8213 | | - " \"type\": \"Organization\",", |
8214 | | - " \"identifier\": {", |
8215 | | - " \"value\": \"ODS12345\",", |
8216 | | - " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", |
8217 | | - " }", |
| 8210 | + " \"identifier\": null,", |
| 8211 | + " \"value\": \"ODS12345\",", |
| 8212 | + " \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"", |
8218 | 8213 | " }", |
8219 | 8214 | " ]", |
8220 | 8215 | " },", |
|
8289 | 8284 | "});" |
8290 | 8285 | ], |
8291 | 8286 | "type": "text/javascript", |
8292 | | - "packages": {} |
| 8287 | + "packages": {}, |
| 8288 | + "requests": {} |
8293 | 8289 | } |
8294 | 8290 | } |
8295 | 8291 | ], |
@@ -8323,110 +8319,109 @@ |
8323 | 8319 | "script": { |
8324 | 8320 | "exec": [ |
8325 | 8321 | "const expectedResponseBody = {", |
8326 | | - " \"resourceType\": \"Bundle\",", |
8327 | | - " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", |
8328 | | - " \"total\": 1,", |
8329 | | - " \"type\": \"searchset\",", |
8330 | | - " \"link\": [", |
| 8322 | + " \"resourceType\": \"Bundle\",", |
| 8323 | + " \"timestamp\": \"2020-08-26T14:00:00+00:00\",", |
| 8324 | + " \"total\": 1,", |
| 8325 | + " \"type\": \"searchset\",", |
| 8326 | + " \"link\": [", |
8331 | 8327 | " {", |
8332 | 8328 | " \"relation\": \"self\",", |
8333 | 8329 | " \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer\"", |
8334 | 8330 | " }", |
8335 | 8331 | " ],", |
8336 | | - " \"entry\": [", |
8337 | | - " {", |
8338 | | - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", |
8339 | | - " \"resource\": {", |
8340 | | - " \"resourceType\": \"RelatedPerson\",", |
8341 | | - " \"id\": \"RP974720\",", |
8342 | | - " \"identifier\": [", |
8343 | | - " {", |
8344 | | - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
8345 | | - " \"value\": \"9000000010\"", |
8346 | | - " },", |
8347 | | - " {", |
8348 | | - " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
8349 | | - " \"value\": \"ABC0000008\"", |
8350 | | - " }", |
8351 | | - " ],", |
8352 | | - " \"patient\": {", |
8353 | | - " \"type\": \"Patient\",", |
8354 | | - " \"identifier\": {", |
8355 | | - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
8356 | | - " \"value\": \"9000000005\"", |
8357 | | - " }", |
8358 | | - " },", |
8359 | | - " \"relationship\": [", |
8360 | | - " {", |
8361 | | - " \"coding\": [", |
8362 | | - " {", |
8363 | | - " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", |
8364 | | - " \"code\": \"Personal\",", |
8365 | | - " \"display\": \"Personal relationship with the patient\"", |
8366 | | - " }", |
8367 | | - " ]", |
8368 | | - " }", |
8369 | | - " ]", |
8370 | | - " },", |
8371 | | - " \"search\": {", |
8372 | | - " \"mode\": \"include\"", |
8373 | | - " }", |
8374 | | - " },", |
8375 | | - " {", |
8376 | | - " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", |
8377 | | - " \"resource\": {", |
8378 | | - " \"resourceType\": \"Consent\",", |
8379 | | - " \"id\": \"WWCC67T1\",", |
8380 | | - " \"status\": \"active\",", |
8381 | | - " \"scope\": {", |
8382 | | - " \"coding\": [", |
8383 | | - " {", |
8384 | | - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", |
8385 | | - " \"code\": \"patient-privacy\",", |
8386 | | - " \"display\": \"Privacy Consent\"", |
| 8332 | + " \"entry\": [", |
| 8333 | + " {", |
| 8334 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",", |
| 8335 | + " \"resource\": {", |
| 8336 | + " \"resourceType\": \"RelatedPerson\",", |
| 8337 | + " \"id\": \"RP974720\",", |
| 8338 | + " \"identifier\": [", |
| 8339 | + " {", |
| 8340 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 8341 | + " \"value\": \"9000000010\"", |
| 8342 | + " },", |
| 8343 | + " {", |
| 8344 | + " \"system\": \"https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier\",", |
| 8345 | + " \"value\": \"ABC0000008\"", |
| 8346 | + " }", |
| 8347 | + " ],", |
| 8348 | + " \"patient\": {", |
| 8349 | + " \"identifier\": {", |
| 8350 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 8351 | + " \"value\": \"9000000005\"", |
| 8352 | + " }", |
| 8353 | + " },", |
| 8354 | + " \"relationship\": [", |
| 8355 | + " {", |
| 8356 | + " \"coding\": [", |
| 8357 | + " {", |
| 8358 | + " \"system\": \"https://fhir.hl7.org.uk/CodeSystem/UKCore-AdditionalPersonRelationshipRole\",", |
| 8359 | + " \"code\": \"Personal\",", |
| 8360 | + " \"display\": \"Personal relationship with the patient\"", |
| 8361 | + " }", |
| 8362 | + " ]", |
| 8363 | + " }", |
| 8364 | + " ]", |
| 8365 | + " },", |
| 8366 | + " \"search\": {", |
| 8367 | + " \"mode\": \"include\"", |
8387 | 8368 | " }", |
8388 | | - " ],", |
8389 | | - " \"text\": \"Patient Privacy Consent\"", |
8390 | | - " },", |
8391 | | - " \"category\": [", |
8392 | | - " {", |
8393 | | - " \"coding\": [", |
8394 | | - " {", |
8395 | | - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", |
8396 | | - " \"code\": \"INFA\",", |
8397 | | - " \"display\": \"Information Access\"", |
8398 | | - " }", |
8399 | | - " ],", |
8400 | | - " \"text\": \"Information Access Consent\"", |
8401 | | - " }", |
8402 | | - " ],", |
8403 | | - " \"patient\": {", |
8404 | | - " \"identifier\": {", |
8405 | | - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
8406 | | - " \"value\": \"9000000005\"", |
8407 | | - " }", |
8408 | 8369 | " },", |
8409 | | - " \"dateTime\": \"2024-07-21T17:32:28Z\",", |
8410 | | - " \"performer\": [", |
8411 | | - " {", |
8412 | | - " \"identifier\": {", |
8413 | | - " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
8414 | | - " \"value\": \"9000000010\"", |
8415 | | - " }", |
8416 | | - " }", |
8417 | | - " ],", |
8418 | | - " \"policy\": [", |
8419 | | - " {", |
8420 | | - " \"authority\": \"https://www.england.nhs.uk\",", |
8421 | | - " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", |
| 8370 | + " {", |
| 8371 | + " \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",", |
| 8372 | + " \"resource\": {", |
| 8373 | + " \"resourceType\": \"Consent\",", |
| 8374 | + " \"id\": \"WWCC67T1\",", |
| 8375 | + " \"status\": \"active\",", |
| 8376 | + " \"scope\": {", |
| 8377 | + " \"coding\": [", |
| 8378 | + " {", |
| 8379 | + " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", |
| 8380 | + " \"code\": \"patient-privacy\",", |
| 8381 | + " \"display\": \"Privacy Consent\"", |
| 8382 | + " }", |
| 8383 | + " ],", |
| 8384 | + " \"text\": \"Patient Privacy Consent\"", |
| 8385 | + " },", |
| 8386 | + " \"category\": [", |
| 8387 | + " {", |
| 8388 | + " \"coding\": [", |
| 8389 | + " {", |
| 8390 | + " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", |
| 8391 | + " \"code\": \"INFA\",", |
| 8392 | + " \"display\": \"Information Access\"", |
| 8393 | + " }", |
| 8394 | + " ],", |
| 8395 | + " \"text\": \"Information Access Consent\"", |
| 8396 | + " }", |
| 8397 | + " ],", |
| 8398 | + " \"patient\": {", |
| 8399 | + " \"identifier\": {", |
| 8400 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 8401 | + " \"value\": \"9000000005\"", |
| 8402 | + " }", |
| 8403 | + " },", |
| 8404 | + " \"dateTime\": \"2024-07-21T17:32:28Z\",", |
| 8405 | + " \"performer\": [", |
| 8406 | + " {", |
| 8407 | + " \"identifier\": {", |
| 8408 | + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", |
| 8409 | + " \"value\": \"9000000010\"", |
| 8410 | + " }", |
| 8411 | + " }", |
| 8412 | + " ],", |
| 8413 | + " \"policy\": [", |
| 8414 | + " {", |
| 8415 | + " \"authority\": \"https://www.england.nhs.uk\",", |
| 8416 | + " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", |
| 8417 | + " }", |
| 8418 | + " ]", |
| 8419 | + " },", |
| 8420 | + " \"search\": {", |
| 8421 | + " \"mode\": \"match\"", |
8422 | 8422 | " }", |
8423 | | - " ],", |
8424 | | - " },", |
8425 | | - " \"search\": {", |
8426 | | - " \"mode\": \"match\"", |
8427 | | - " }", |
8428 | | - " }", |
8429 | | - " ]", |
| 8423 | + " }", |
| 8424 | + " ]", |
8430 | 8425 | "}", |
8431 | 8426 | "", |
8432 | 8427 | "pm.test(\"Status code is 200\", function () {", |
|
8439 | 8434 | "});" |
8440 | 8435 | ], |
8441 | 8436 | "type": "text/javascript", |
8442 | | - "packages": {} |
| 8437 | + "packages": {}, |
| 8438 | + "requests": {} |
8443 | 8439 | } |
8444 | 8440 | } |
8445 | 8441 | ], |
|
10240 | 10236 | "script": { |
10241 | 10237 | "type": "text/javascript", |
10242 | 10238 | "packages": {}, |
| 10239 | + "requests": {}, |
10243 | 10240 | "exec": [ |
10244 | 10241 | "" |
10245 | 10242 | ] |
|
10250 | 10247 | "script": { |
10251 | 10248 | "type": "text/javascript", |
10252 | 10249 | "packages": {}, |
| 10250 | + "requests": {}, |
10253 | 10251 | "exec": [ |
10254 | 10252 | "pm.test(\"Response has FHIR content type\", () => {", |
10255 | 10253 | " pm.expect(pm.response.headers.get('Content-Type')).to.include('application/fhir+json');", |
|
0 commit comments