From 4bf89dfbcafad8d394fa1992bf9589bd25bfddf9 Mon Sep 17 00:00:00 2001 From: Audrey Gunson Date: Wed, 19 Feb 2025 11:38:42 +0000 Subject: [PATCH 1/2] Postman tests now contain new validation --- postman_collection.json | 1778 ++++++++++++++++++++------------------- 1 file changed, 923 insertions(+), 855 deletions(-) diff --git a/postman_collection.json b/postman_collection.json index 8bea56f56..9c44a5c50 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -1,856 +1,924 @@ { - "info": { - "_postman_id": "b5669e36-79c3-417d-b459-a71cd54a3009", - "name": "NRLF", - "description": "Data:-\n\nCustodian is Y05868, NHS number is 3495456481, Pointer type 736253002 (Mental Health Crisis Plan)\n\nInstructions:-\n\nThere are 2 sets of tests Producer, with all the Producer interactions and Consumer, with all the Consumer interactions.\n\nUse POST Create to create some pointers so you can then search, read, update and delete them. Over time pointers may be deleted so its best to use a Search command to see what pointers are available and note down their 'id' so they can be used within other interactions.\n\nFor POST Create Supersede then a pointer to supersede should be identified and updated within the 'relatesTo' segment within the request. The supersede must be for the same patient and pointer type.\n\nThe document attachment is purely a test website. The postman collection will not retrieve documents as SSP is required for retrieval.\n\nNo token is needed when sending the request as the Sandbox does not require this.", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "33474807", - "_collection_link": "https://cellsigma.postman.co/workspace/My-Workspace~a0c5ee7e-14ee-44f6-8976-a715e9e3c391/collection/33474807-b5669e36-79c3-417d-b459-a71cd54a3009?action=share&source=collection_link&creator=33474807" - }, - "item": [ - { - "name": "Producer", - "item": [ - { - "name": "POST Create Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "create-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/NRL-FormatCode-1\"\n }\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"code\": \"708168004\",\n \"display\": \"Mental health service (qualifier value)\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ] - } - }, - "response": [] - }, - { - "name": "POST Create Supersede Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "create-supersede-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/NRL-FormatCode-1\"\n }\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"code\": \"708168004\",\n \"display\": \"Mental health service (qualifier value)\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ] - } - }, - "response": [] - }, - { - "name": "PUT Update Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "update-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"id\":\"Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/NRL-FormatCode-1\"\n }\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"code\": \"708168004\",\n \"display\": \"Mental health service (qualifier value)\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" - ] - } - }, - "response": [] - }, - { - "name": "POST Search Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/_search", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "_search" - ] - } - }, - "response": [] - }, - { - "name": "GET Search Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "GET", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - }, - { - "key": "type", - "value": "http://snomed.info/sct|736253002" - } - ] - } - }, - "response": [] - }, - { - "name": "GET Read Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "GET", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "read-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" - ] - } - }, - "response": [] - }, - { - "name": "DEL Delete Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "DELETE", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "delete-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-bf392627-31d5-464f-bd34-a47072c9768e", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-bf392627-31d5-464f-bd34-a47072c9768e" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Consumer", - "item": [ - { - "name": "GET Search", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "SazYuPaGhA1uaWr3HCq7U7cZilhM", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-get-search", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002&custodian:identifier=https://fhir.nhs.uk/Id/ods-organization-code|Y05868", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - }, - { - "key": "type", - "value": "http://snomed.info/sct|736253002" - }, - { - "key": "custodian:identifier", - "value": "https://fhir.nhs.uk/Id/ods-organization-code|Y05868" - }, - { - "key": "next-page-token", - "value": "", - "disabled": true - } - ] - } - }, - "response": [] - }, - { - "name": "POST Search", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "gwAJySqy0SySAHwN71GixPSbCLHV", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json; version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-post-search", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"type\":\"http://snomed.info/sct|736253002\",\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|Y05868\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_search", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "_search" - ] - } - }, - "response": [] - }, - { - "name": "GET count", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-count", - "type": "text" - }, - { - "key": "x-request-id", - "value": "count-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_count?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "_count" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - } - ] - } - }, - "response": [] - }, - { - "name": "GET Read", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-read", - "type": "text" - }, - { - "key": "x-request-id", - "value": "read-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", - "protocol": "https", - "host": ["sandbox", "api", "service", "nhs", "uk"], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" - ] - } - }, - "response": [] - } - ] - } - ], - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "pm.globals.set('now', new Date().toISOString().substr(0, 19));", - "pm.globals.set('randomNumber', Math.floor(Math.random() * 100));", - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [""] - } - } - ], - "variable": [ - { - "key": "APIGEE_BASE_URL", - "value": "https://int.api.service.nhs.uk", - "type": "string" - }, - { - "key": "APIGEE_PRODUCER_URL", - "value": "{{APIGEE_BASE_URL}}/nrl-producer-api/FHIR/R4", - "type": "string" - }, - { - "key": "APIGEE_CONSUMER_URL", - "value": "{{APIGEE_BASE_URL}}/nrl-consumer-api/FHIR/R4", - "type": "string" - }, - { - "key": "ODS_CODE", - "value": "!! CHANGE THIS VALUE !!", - "type": "string" - }, - { - "key": "ACCESS_TOKEN", - "value": "!! CHANGE THIS VALUE !!" - }, - { - "key": "DOCUMENT_TYPE", - "value": "{{SNOMED_MENTAL_HEALTH_CRISIS_PLAN}}", - "type": "string" - }, - { - "key": "DOCUMENT_TYPE_SET", - "value": "https%3A%2F%2Fsnomed.info%2Fict%7C{{DOCUMENT_TYPE}}", - "type": "string" - }, - { - "key": "VERSION", - "value": "1", - "type": "string" - }, - { - "key": "X_REQUEST_ID", - "value": "DEMO", - "type": "string" - }, - { - "key": "X_CORRELATION_ID", - "value": "DEMO", - "type": "string" - }, - { - "key": "NHSD_CORRELATION_ID", - "value": "{{X_CORRELATION_ID}}", - "type": "string" - }, - { - "key": "NHS_NUMBER", - "value": "9278693472", - "type": "string" - }, - { - "key": "NHS_NUMBER_ALT", - "value": "9448646348", - "type": "string" - }, - { - "key": "NHS_NUMBER_MISSING", - "value": "9000000033", - "type": "string" - }, - { - "key": "SUBJECT", - "value": "https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", - "type": "string" - }, - { - "key": "LOCAL_DOCUMENT_ID", - "value": "DEMO_0000000001", - "type": "string" - }, - { - "key": "DOCUMENT_ID", - "value": "{{ODS_CODE}}-{{LOCAL_DOCUMENT_ID}}", - "type": "string" - }, - { - "key": "SNOMED_CODE_APPOINTMENT", - "value": "749001000000101", - "type": "string" - }, - { - "key": "SNOMED_EMERGENCY_HEALTH_CARE_PLAN", - "value": "887701000000100", - "type": "string" - }, - { - "key": "SNOMED_MENTAL_HEALTH_CRISIS_PLAN", - "value": "736253002", - "type": "string" - }, - { - "key": "SNOMED_END_OF_LIFE_CARE_COORDINATION_SUMMARY", - "value": "861421000000109", - "type": "string" - }, - { - "key": "ACCEPT", - "value": "application/json; version={{VERSION}}", - "type": "string" - } - ] -} + "info": { + "_postman_id": "b5669e36-79c3-417d-b459-a71cd54a3009", + "name": "NRLF", + "description": "Data:-\n\nCustodian is Y05868, NHS number is 3495456481, Pointer type 736253002 (Mental Health Crisis Plan)\n\nInstructions:-\n\nThere are 2 sets of tests Producer, with all the Producer interactions and Consumer, with all the Consumer interactions.\n\nUse POST Create to create some pointers so you can then search, read, update and delete them. Over time pointers may be deleted so its best to use a Search command to see what pointers are available and note down their 'id' so they can be used within other interactions.\n\nFor POST Create Supersede then a pointer to supersede should be identified and updated within the 'relatesTo' segment within the request. The supersede must be for the same patient and pointer type.\n\nThe document attachment is purely a test website. The postman collection will not retrieve documents as SSP is required for retrieval.\n\nNo token is needed when sending the request as the Sandbox does not require this.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "33474807", + "_collection_link": "https://cellsigma.postman.co/workspace/My-Workspace~a0c5ee7e-14ee-44f6-8976-a715e9e3c391/collection/33474807-b5669e36-79c3-417d-b459-a71cd54a3009?action=share&source=collection_link&creator=33474807" + }, + "item": [ + { + "name": "Producer", + "item": [ + { + "name": "POST Create Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "create-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ] + } + }, + "response": [] + }, + { + "name": "POST Create Supersede Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "create-supersede-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-98dbebaf-c32d-4771-b5ac-f0610a024c31\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ] + } + }, + "response": [] + }, + { + "name": "PUT Update Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "PUT", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "update-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"id\": \"Y05868-2341fb51-fa25-4190-802c-858768029765\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"masterIdentifier\": {\n \"system\": \"urn:ietf:rfc:3986\",\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-df3f632a-94a5-4f9b-81dd-b76df52273b3\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2025-01-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"RJ11\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc-updated.pdf\",\n \"creation\": \"2025-01-27T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2025-03-06T13:34:00+01:00\",\n \"end\":\"2026-04-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-2341fb51-fa25-4190-802c-858768029765", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-2341fb51-fa25-4190-802c-858768029765" + ] + } + }, + "response": [] + }, + { + "name": "POST Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/_search", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "_search" + ] + } + }, + "response": [] + }, + { + "name": "GET Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + }, + { + "key": "type", + "value": "http://snomed.info/sct|736253002" + } + ] + } + }, + "response": [] + }, + { + "name": "GET Read Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "read-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94" + ] + } + }, + "response": [] + }, + { + "name": "DEL Delete Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "DELETE", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "delete-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Consumer", + "item": [ + { + "name": "GET Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "SazYuPaGhA1uaWr3HCq7U7cZilhM", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-get-search", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002&custodian:identifier=https://fhir.nhs.uk/Id/ods-organization-code|Y05868", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + }, + { + "key": "type", + "value": "http://snomed.info/sct|736253002" + }, + { + "key": "custodian:identifier", + "value": "https://fhir.nhs.uk/Id/ods-organization-code|Y05868" + }, + { + "key": "next-page-token", + "value": "", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "POST Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "gwAJySqy0SySAHwN71GixPSbCLHV", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json; version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-post-search", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\"type\":\"http://snomed.info/sct|736253002\",\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|Y05868\"}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_search", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "_search" + ] + } + }, + "response": [] + }, + { + "name": "GET count", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-count", + "type": "text" + }, + { + "key": "x-request-id", + "value": "count-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_count?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "_count" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + } + ] + } + }, + "response": [] + }, + { + "name": "GET Read", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-read", + "type": "text" + }, + { + "key": "x-request-id", + "value": "read-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", + "protocol": "https", + "host": [ + "sandbox", + "api", + "service", + "nhs", + "uk" + ], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" + ] + } + }, + "response": [] + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "pm.globals.set('now', new Date().toISOString().substr(0, 19));", + "pm.globals.set('randomNumber', Math.floor(Math.random() * 100));", + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "APIGEE_BASE_URL", + "value": "https://int.api.service.nhs.uk", + "type": "string" + }, + { + "key": "APIGEE_PRODUCER_URL", + "value": "{{APIGEE_BASE_URL}}/nrl-producer-api/FHIR/R4", + "type": "string" + }, + { + "key": "APIGEE_CONSUMER_URL", + "value": "{{APIGEE_BASE_URL}}/nrl-consumer-api/FHIR/R4", + "type": "string" + }, + { + "key": "ODS_CODE", + "value": "!! CHANGE THIS VALUE !!", + "type": "string" + }, + { + "key": "ACCESS_TOKEN", + "value": "!! CHANGE THIS VALUE !!" + }, + { + "key": "DOCUMENT_TYPE", + "value": "{{SNOMED_MENTAL_HEALTH_CRISIS_PLAN}}", + "type": "string" + }, + { + "key": "DOCUMENT_TYPE_SET", + "value": "https%3A%2F%2Fsnomed.info%2Fict%7C{{DOCUMENT_TYPE}}", + "type": "string" + }, + { + "key": "VERSION", + "value": "1", + "type": "string" + }, + { + "key": "X_REQUEST_ID", + "value": "DEMO", + "type": "string" + }, + { + "key": "X_CORRELATION_ID", + "value": "DEMO", + "type": "string" + }, + { + "key": "NHSD_CORRELATION_ID", + "value": "{{X_CORRELATION_ID}}", + "type": "string" + }, + { + "key": "NHS_NUMBER", + "value": "9278693472", + "type": "string" + }, + { + "key": "NHS_NUMBER_ALT", + "value": "9448646348", + "type": "string" + }, + { + "key": "NHS_NUMBER_MISSING", + "value": "9000000033", + "type": "string" + }, + { + "key": "SUBJECT", + "value": "https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", + "type": "string" + }, + { + "key": "LOCAL_DOCUMENT_ID", + "value": "DEMO_0000000001", + "type": "string" + }, + { + "key": "DOCUMENT_ID", + "value": "{{ODS_CODE}}-{{LOCAL_DOCUMENT_ID}}", + "type": "string" + }, + { + "key": "SNOMED_CODE_APPOINTMENT", + "value": "749001000000101", + "type": "string" + }, + { + "key": "SNOMED_EMERGENCY_HEALTH_CARE_PLAN", + "value": "887701000000100", + "type": "string" + }, + { + "key": "SNOMED_MENTAL_HEALTH_CRISIS_PLAN", + "value": "736253002", + "type": "string" + }, + { + "key": "SNOMED_END_OF_LIFE_CARE_COORDINATION_SUMMARY", + "value": "861421000000109", + "type": "string" + }, + { + "key": "ACCEPT", + "value": "application/json; version={{VERSION}}", + "type": "string" + } + ] +} \ No newline at end of file From 296ac7abd132095f043a83898edf8a8c9db16263 Mon Sep 17 00:00:00 2001 From: Audrey Gunson Date: Wed, 19 Feb 2025 14:18:53 +0000 Subject: [PATCH 2/2] Postman tests now contain new validation after linting --- postman_collection.json | 1778 +++++++++++++++++++-------------------- 1 file changed, 855 insertions(+), 923 deletions(-) diff --git a/postman_collection.json b/postman_collection.json index 9c44a5c50..36c3f49b9 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -1,924 +1,856 @@ { - "info": { - "_postman_id": "b5669e36-79c3-417d-b459-a71cd54a3009", - "name": "NRLF", - "description": "Data:-\n\nCustodian is Y05868, NHS number is 3495456481, Pointer type 736253002 (Mental Health Crisis Plan)\n\nInstructions:-\n\nThere are 2 sets of tests Producer, with all the Producer interactions and Consumer, with all the Consumer interactions.\n\nUse POST Create to create some pointers so you can then search, read, update and delete them. Over time pointers may be deleted so its best to use a Search command to see what pointers are available and note down their 'id' so they can be used within other interactions.\n\nFor POST Create Supersede then a pointer to supersede should be identified and updated within the 'relatesTo' segment within the request. The supersede must be for the same patient and pointer type.\n\nThe document attachment is purely a test website. The postman collection will not retrieve documents as SSP is required for retrieval.\n\nNo token is needed when sending the request as the Sandbox does not require this.", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "33474807", - "_collection_link": "https://cellsigma.postman.co/workspace/My-Workspace~a0c5ee7e-14ee-44f6-8976-a715e9e3c391/collection/33474807-b5669e36-79c3-417d-b459-a71cd54a3009?action=share&source=collection_link&creator=33474807" - }, - "item": [ - { - "name": "Producer", - "item": [ - { - "name": "POST Create Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "create-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ] - } - }, - "response": [] - }, - { - "name": "POST Create Supersede Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "create-supersede-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-98dbebaf-c32d-4771-b5ac-f0610a024c31\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ] - } - }, - "response": [] - }, - { - "name": "PUT Update Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "update-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"status\": \"current\",\n \"id\": \"Y05868-2341fb51-fa25-4190-802c-858768029765\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"masterIdentifier\": {\n \"system\": \"urn:ietf:rfc:3986\",\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-df3f632a-94a5-4f9b-81dd-b76df52273b3\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2025-01-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"RJ11\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc-updated.pdf\",\n \"creation\": \"2025-01-27T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2025-03-06T13:34:00+01:00\",\n \"end\":\"2026-04-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-2341fb51-fa25-4190-802c-858768029765", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-2341fb51-fa25-4190-802c-858768029765" - ] - } - }, - "response": [] - }, - { - "name": "POST Search Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "POST", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/_search", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "_search" - ] - } - }, - "response": [] - }, - { - "name": "GET Search Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "GET", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - }, - { - "key": "type", - "value": "http://snomed.info/sct|736253002" - } - ] - } - }, - "response": [] - }, - { - "name": "GET Read Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "GET", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "read-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94" - ] - } - }, - "response": [] - }, - { - "name": "DEL Delete Pointer", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "method": "DELETE", - "header": [ - { - "key": "nhsd-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "nrl-producer-api-sandbox", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - }, - { - "key": "Authorization", - "value": "auth", - "type": "text" - }, - { - "key": "x-request-id", - "value": "delete-pointer-test", - "type": "text" - }, - { - "key": "accept", - "value": "version=1.0", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "producer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Consumer", - "item": [ - { - "name": "GET Search", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "SazYuPaGhA1uaWr3HCq7U7cZilhM", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-get-search", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002&custodian:identifier=https://fhir.nhs.uk/Id/ods-organization-code|Y05868", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - }, - { - "key": "type", - "value": "http://snomed.info/sct|736253002" - }, - { - "key": "custodian:identifier", - "value": "https://fhir.nhs.uk/Id/ods-organization-code|Y05868" - }, - { - "key": "next-page-token", - "value": "", - "disabled": true - } - ] - } - }, - "response": [] - }, - { - "name": "POST Search", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "gwAJySqy0SySAHwN71GixPSbCLHV", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json; version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-post-search", - "type": "text" - }, - { - "key": "x-request-id", - "value": "search-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"type\":\"http://snomed.info/sct|736253002\",\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|Y05868\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_search", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "_search" - ] - } - }, - "response": [] - }, - { - "name": "GET count", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-count", - "type": "text" - }, - { - "key": "x-request-id", - "value": "count-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_count?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "_count" - ], - "query": [ - { - "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" - } - ] - } - }, - "response": [] - }, - { - "name": "GET Read", - "protocolProfileBehavior": { - "disabledSystemHeaders": { - "accept": true - } - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "version=1.0", - "type": "text" - }, - { - "key": "x-correlation-id", - "value": "consumer-read", - "type": "text" - }, - { - "key": "x-request-id", - "value": "read-pointer", - "type": "text" - }, - { - "key": "NHSD-End-User-Organisation-ODS", - "value": "Y05868", - "type": "text" - } - ], - "url": { - "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", - "protocol": "https", - "host": [ - "sandbox", - "api", - "service", - "nhs", - "uk" - ], - "path": [ - "record-locator", - "consumer", - "FHIR", - "R4", - "DocumentReference", - "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" - ] - } - }, - "response": [] - } - ] - } - ], - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "pm.globals.set('now', new Date().toISOString().substr(0, 19));", - "pm.globals.set('randomNumber', Math.floor(Math.random() * 100));", - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "variable": [ - { - "key": "APIGEE_BASE_URL", - "value": "https://int.api.service.nhs.uk", - "type": "string" - }, - { - "key": "APIGEE_PRODUCER_URL", - "value": "{{APIGEE_BASE_URL}}/nrl-producer-api/FHIR/R4", - "type": "string" - }, - { - "key": "APIGEE_CONSUMER_URL", - "value": "{{APIGEE_BASE_URL}}/nrl-consumer-api/FHIR/R4", - "type": "string" - }, - { - "key": "ODS_CODE", - "value": "!! CHANGE THIS VALUE !!", - "type": "string" - }, - { - "key": "ACCESS_TOKEN", - "value": "!! CHANGE THIS VALUE !!" - }, - { - "key": "DOCUMENT_TYPE", - "value": "{{SNOMED_MENTAL_HEALTH_CRISIS_PLAN}}", - "type": "string" - }, - { - "key": "DOCUMENT_TYPE_SET", - "value": "https%3A%2F%2Fsnomed.info%2Fict%7C{{DOCUMENT_TYPE}}", - "type": "string" - }, - { - "key": "VERSION", - "value": "1", - "type": "string" - }, - { - "key": "X_REQUEST_ID", - "value": "DEMO", - "type": "string" - }, - { - "key": "X_CORRELATION_ID", - "value": "DEMO", - "type": "string" - }, - { - "key": "NHSD_CORRELATION_ID", - "value": "{{X_CORRELATION_ID}}", - "type": "string" - }, - { - "key": "NHS_NUMBER", - "value": "9278693472", - "type": "string" - }, - { - "key": "NHS_NUMBER_ALT", - "value": "9448646348", - "type": "string" - }, - { - "key": "NHS_NUMBER_MISSING", - "value": "9000000033", - "type": "string" - }, - { - "key": "SUBJECT", - "value": "https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", - "type": "string" - }, - { - "key": "LOCAL_DOCUMENT_ID", - "value": "DEMO_0000000001", - "type": "string" - }, - { - "key": "DOCUMENT_ID", - "value": "{{ODS_CODE}}-{{LOCAL_DOCUMENT_ID}}", - "type": "string" - }, - { - "key": "SNOMED_CODE_APPOINTMENT", - "value": "749001000000101", - "type": "string" - }, - { - "key": "SNOMED_EMERGENCY_HEALTH_CARE_PLAN", - "value": "887701000000100", - "type": "string" - }, - { - "key": "SNOMED_MENTAL_HEALTH_CRISIS_PLAN", - "value": "736253002", - "type": "string" - }, - { - "key": "SNOMED_END_OF_LIFE_CARE_COORDINATION_SUMMARY", - "value": "861421000000109", - "type": "string" - }, - { - "key": "ACCEPT", - "value": "application/json; version={{VERSION}}", - "type": "string" - } - ] -} \ No newline at end of file + "info": { + "_postman_id": "b5669e36-79c3-417d-b459-a71cd54a3009", + "name": "NRLF", + "description": "Data:-\n\nCustodian is Y05868, NHS number is 3495456481, Pointer type 736253002 (Mental Health Crisis Plan)\n\nInstructions:-\n\nThere are 2 sets of tests Producer, with all the Producer interactions and Consumer, with all the Consumer interactions.\n\nUse POST Create to create some pointers so you can then search, read, update and delete them. Over time pointers may be deleted so its best to use a Search command to see what pointers are available and note down their 'id' so they can be used within other interactions.\n\nFor POST Create Supersede then a pointer to supersede should be identified and updated within the 'relatesTo' segment within the request. The supersede must be for the same patient and pointer type.\n\nThe document attachment is purely a test website. The postman collection will not retrieve documents as SSP is required for retrieval.\n\nNo token is needed when sending the request as the Sandbox does not require this.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "33474807", + "_collection_link": "https://cellsigma.postman.co/workspace/My-Workspace~a0c5ee7e-14ee-44f6-8976-a715e9e3c391/collection/33474807-b5669e36-79c3-417d-b459-a71cd54a3009?action=share&source=collection_link&creator=33474807" + }, + "item": [ + { + "name": "Producer", + "item": [ + { + "name": "POST Create Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "create-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ] + } + }, + "response": [] + }, + { + "name": "POST Create Supersede Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "create-supersede-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-98dbebaf-c32d-4771-b5ac-f0610a024c31\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2024-10-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc.pdf\",\n \"creation\": \"2024-10-28T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2024-03-06T13:34:00+01:00\",\n \"end\":\"2026-03-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ] + } + }, + "response": [] + }, + { + "name": "PUT Update Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "PUT", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "update-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"current\",\n \"id\": \"Y05868-2341fb51-fa25-4190-802c-858768029765\",\n \"type\": {\n \"coding\": [\n {\n \"code\": \"736253002\",\n \"display\": \"Mental health crisis plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n },\n \"masterIdentifier\": {\n \"system\": \"urn:ietf:rfc:3986\",\n \"value\": \"urn:oid:1.3.6.1.4.1.21367.2005.4.1\"\n },\n \"relatesTo\": [\n {\n \"code\": \"replaces\",\n \"target\": {\n \"type\": \"DocumentReference\",\n \"identifier\": {\n \"value\": \"Y05868-df3f632a-94a5-4f9b-81dd-b76df52273b3\"\n }\n }\n }\n ],\n \"category\": [\n {\n \"coding\": [\n {\n \"code\": \"734163000\",\n \"display\": \"Care plan\",\n \"system\": \"http://snomed.info/sct\"\n }\n ]\n }\n ],\n \"subject\": {\n \"identifier\": {\n \"value\": \"3495456481\",\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\"\n }\n },\n \"date\": \"2025-01-29T13:23:28+00:00\",\n \"author\": [\n {\n \"identifier\": {\n \"value\": \"RJ11\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n }\n ],\n \"custodian\": {\n \"identifier\": {\n \"value\": \"Y05868\",\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\"\n }\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"language\": \"en-US\",\n \"url\": \"https://example.org/my-doc-updated.pdf\",\n \"creation\": \"2025-01-27T15:26:00+01:00\",\n \"hash\": \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\",\n \"title\": \"Physical\",\n \"size\":\"1000\"\n },\n \"format\": {\n \"code\": \"urn:nhs-ic:unstructured\",\n \"display\": \"Unstructured Document\",\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode\"\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability\",\n \"code\": \"static\",\n \"display\": \"Static\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"context\": {\n \"period\": {\n \"start\": \"2025-03-06T13:34:00+01:00\",\n \"end\":\"2026-04-06T13:34:00+01:00\"\n },\n \"practiceSetting\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"788002001\",\n \"display\": \"Adult mental health service\"\n }\n ]\n },\n \"related\": [\n {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhsSpineASID\",\n \"value\": \"200000001991\"\n }\n }\n ]\n },\n \"resourceType\": \"DocumentReference\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-2341fb51-fa25-4190-802c-858768029765", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-2341fb51-fa25-4190-802c-858768029765" + ] + } + }, + "response": [] + }, + { + "name": "POST Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/_search", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "_search" + ] + } + }, + "response": [] + }, + { + "name": "GET Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + }, + { + "key": "type", + "value": "http://snomed.info/sct|736253002" + } + ] + } + }, + "response": [] + }, + { + "name": "GET Read Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "read-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94" + ] + } + }, + "response": [] + }, + { + "name": "DEL Delete Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "DELETE", + "header": [ + { + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + }, + { + "key": "Authorization", + "value": "auth", + "type": "text" + }, + { + "key": "x-request-id", + "value": "delete-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "producer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Consumer", + "item": [ + { + "name": "GET Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "SazYuPaGhA1uaWr3HCq7U7cZilhM", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-get-search", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481&type=http://snomed.info/sct|736253002&custodian:identifier=https://fhir.nhs.uk/Id/ods-organization-code|Y05868", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + }, + { + "key": "type", + "value": "http://snomed.info/sct|736253002" + }, + { + "key": "custodian:identifier", + "value": "https://fhir.nhs.uk/Id/ods-organization-code|Y05868" + }, + { + "key": "next-page-token", + "value": "", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "POST Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "gwAJySqy0SySAHwN71GixPSbCLHV", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json; version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-post-search", + "type": "text" + }, + { + "key": "x-request-id", + "value": "search-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\"type\":\"http://snomed.info/sct|736253002\",\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|Y05868\"}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_search", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "_search" + ] + } + }, + "response": [] + }, + { + "name": "GET count", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-count", + "type": "text" + }, + { + "key": "x-request-id", + "value": "count-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_count?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|3495456481", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "_count" + ], + "query": [ + { + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + } + ] + } + }, + "response": [] + }, + { + "name": "GET Read", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "version=1.0", + "type": "text" + }, + { + "key": "x-correlation-id", + "value": "consumer-read", + "type": "text" + }, + { + "key": "x-request-id", + "value": "read-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", + "type": "text" + } + ], + "url": { + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8", + "protocol": "https", + "host": ["sandbox", "api", "service", "nhs", "uk"], + "path": [ + "record-locator", + "consumer", + "FHIR", + "R4", + "DocumentReference", + "Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8" + ] + } + }, + "response": [] + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "pm.globals.set('now', new Date().toISOString().substr(0, 19));", + "pm.globals.set('randomNumber', Math.floor(Math.random() * 100));", + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [""] + } + } + ], + "variable": [ + { + "key": "APIGEE_BASE_URL", + "value": "https://int.api.service.nhs.uk", + "type": "string" + }, + { + "key": "APIGEE_PRODUCER_URL", + "value": "{{APIGEE_BASE_URL}}/nrl-producer-api/FHIR/R4", + "type": "string" + }, + { + "key": "APIGEE_CONSUMER_URL", + "value": "{{APIGEE_BASE_URL}}/nrl-consumer-api/FHIR/R4", + "type": "string" + }, + { + "key": "ODS_CODE", + "value": "!! CHANGE THIS VALUE !!", + "type": "string" + }, + { + "key": "ACCESS_TOKEN", + "value": "!! CHANGE THIS VALUE !!" + }, + { + "key": "DOCUMENT_TYPE", + "value": "{{SNOMED_MENTAL_HEALTH_CRISIS_PLAN}}", + "type": "string" + }, + { + "key": "DOCUMENT_TYPE_SET", + "value": "https%3A%2F%2Fsnomed.info%2Fict%7C{{DOCUMENT_TYPE}}", + "type": "string" + }, + { + "key": "VERSION", + "value": "1", + "type": "string" + }, + { + "key": "X_REQUEST_ID", + "value": "DEMO", + "type": "string" + }, + { + "key": "X_CORRELATION_ID", + "value": "DEMO", + "type": "string" + }, + { + "key": "NHSD_CORRELATION_ID", + "value": "{{X_CORRELATION_ID}}", + "type": "string" + }, + { + "key": "NHS_NUMBER", + "value": "9278693472", + "type": "string" + }, + { + "key": "NHS_NUMBER_ALT", + "value": "9448646348", + "type": "string" + }, + { + "key": "NHS_NUMBER_MISSING", + "value": "9000000033", + "type": "string" + }, + { + "key": "SUBJECT", + "value": "https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", + "type": "string" + }, + { + "key": "LOCAL_DOCUMENT_ID", + "value": "DEMO_0000000001", + "type": "string" + }, + { + "key": "DOCUMENT_ID", + "value": "{{ODS_CODE}}-{{LOCAL_DOCUMENT_ID}}", + "type": "string" + }, + { + "key": "SNOMED_CODE_APPOINTMENT", + "value": "749001000000101", + "type": "string" + }, + { + "key": "SNOMED_EMERGENCY_HEALTH_CARE_PLAN", + "value": "887701000000100", + "type": "string" + }, + { + "key": "SNOMED_MENTAL_HEALTH_CRISIS_PLAN", + "value": "736253002", + "type": "string" + }, + { + "key": "SNOMED_END_OF_LIFE_CARE_COORDINATION_SUMMARY", + "value": "861421000000109", + "type": "string" + }, + { + "key": "ACCEPT", + "value": "application/json; version={{VERSION}}", + "type": "string" + } + ] +}