diff --git a/postman_collection.json b/postman_collection.json index 6b7a7989f..8bea56f56 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -1,172 +1,190 @@ { "info": { - "_postman_id": "1ae8e168-3f53-4d02-a720-d88318d368f5", + "_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": "25486977" + "_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": "Search", + "name": "POST Create Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "", - "type": "string" - } - ] - }, - "method": "GET", + "method": "POST", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "value": "Y05868", "type": "text" }, { "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "value": "auth", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "x-request-id", + "value": "create-pointer-test", "type": "text" }, { - "key": "Origin", - "value": "https://example.org", + "key": "accept", + "value": "version=1.0", "type": "text" } ], - "url": { - "raw": "{{APIGEE_PRODUCER_URL}}/DocumentReference?next-page-token=eyJwa18yIjogeyJTIjogIk8jUkoxMSJ9LCAicGsiOiB7IlMiOiAiRCNSSjExI2NkNzQ1NTYxLWVmZjEtMTFlZC05YWY5LTAwNTA1NjI1OTQ0Ny01ODU1NDY0NDM4NDIzNjU1NDM1YSJ9LCAic2siOiB7IlMiOiAiRCNSSjExI2NkNzQ1NTYxLWVmZjEtMTFlZC05YWY5LTAwNTA1NjI1OTQ0Ny01ODU1NDY0NDM4NDIzNjU1NDM1YSJ9LCAic2tfMiI6IHsiUyI6ICJDTyMyMDIzLTA1LTExVDExOjQ4OjU2Ljc4N1ojUkoxMSNjZDc0NTU2MS1lZmYxLTExZWQtOWFmOS0wMDUwNTYyNTk0NDctNTg1NTQ2NDQzODQyMzY1NTQzNWEifX0=", - "host": ["{{APIGEE_PRODUCER_URL}}"], - "path": ["DocumentReference"], - "query": [ - { - "key": "subject", - "value": "https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER_ALT}}", - "disabled": true - }, - { - "key": "next-page-token", - "value": "" + "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": "Get", + "name": "POST Create Supersede Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "", - "type": "string" - } - ] - }, - "method": "GET", + "method": "POST", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "value": "Y05868", "type": "text" }, { "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "value": "auth", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "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": "{{APIGEE_PRODUCER_URL}}/DocumentReference/RJ11-DEMO_1002", - "host": ["{{APIGEE_PRODUCER_URL}}"], - "path": ["DocumentReference", "RJ11-DEMO_1002"] + "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": "Create", + "name": "PUT Update Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "iLVkSlkze7RsoCRbFwq8l9LMdOyO", - "type": "string" - } - ] - }, - "method": "POST", + "method": "PUT", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "value": "Y05868", "type": "text" }, { "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "value": "auth", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "x-request-id", + "value": "update-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\n \"resourceType\": \"DocumentReference\",\n \"id\": \"{{ODS_CODE}}-DEMO_1013\",\n \"custodian\": {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\n \"value\": \"{{ODS_CODE}}\"\n }\n },\n \"subject\": {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"{{NHS_NUMBER}}\"\n }\n },\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"{{DOCUMENT_TYPE}}\"\n }\n ]\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"url\": \"https://example.org/my-doc.pdf\"\n }\n }\n ],\n \"status\": \"current\"\n}", + "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" @@ -174,57 +192,65 @@ } }, "url": { - "raw": "{{APIGEE_PRODUCER_URL}}/DocumentReference", - "host": ["{{APIGEE_PRODUCER_URL}}"], - "path": ["DocumentReference"] + "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": "Update", + "name": "POST Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "epUZAAdeUpgiSCqBH6a4R7peQf52", - "type": "string" - } - ] - }, - "method": "PUT", + "method": "POST", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", + "key": "nhsd-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "x-correlation-id", + "value": "nrl-producer-api-sandbox", "type": "text" }, { "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "value": "Y05868", "type": "text" }, { "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "value": "auth", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "x-request-id", + "value": "search-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", "type": "text" } ], "body": { "mode": "raw", - "raw": " {\n \"resourceType\": \"DocumentReference\",\n \"id\": \"{{ODS_CODE}}-DEMO_1013\",\n \"custodian\": {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\n \"value\": \"{{ODS_CODE}}\"\n }\n },\n \"subject\": {\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"{{NHS_NUMBER}}\"\n }\n },\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"{{DOCUMENT_TYPE}}\"\n }\n ]\n },\n \"content\": [\n {\n \"attachment\": {\n \"contentType\": \"application/pdf\",\n \"url\": \"https://example.org/sample.pdf\"\n }\n }\n ],\n \"status\": \"current\"\n }", + "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", "options": { "raw": { "language": "json" @@ -232,64 +258,196 @@ } }, "url": { - "raw": "{{APIGEE_PRODUCER_URL}}/DocumentReference/RJ11-DEMO_1013", - "host": ["{{APIGEE_PRODUCER_URL}}"], - "path": ["DocumentReference", "RJ11-DEMO_1013"] + "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": "Delete", + "name": "GET Search Pointer", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { - "auth": { - "type": "bearer", - "bearer": [ + "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": "token", - "value": "QhvNkmqPhHKATT9Q5DUhqkGrjcYb", - "type": "string" + "key": "subject:identifier", + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + }, + { + "key": "type", + "value": "http://snomed.info/sct|736253002" } ] - }, - "method": "DELETE", + } + }, + "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": "{{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": "{{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": "{{ODS_CODE}}", + "value": "Y05868", "type": "text" }, { "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "value": "auth", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "x-request-id", + "value": "delete-pointer-test", + "type": "text" + }, + { + "key": "accept", + "value": "version=1.0", "type": "text" } ], "url": { - "raw": "{{APIGEE_PRODUCER_URL}}/DocumentReference/{{ODS_CODE}}-DEMO_1013", - "host": ["{{APIGEE_PRODUCER_URL}}"], - "path": ["DocumentReference", "{{ODS_CODE}}-DEMO_1013"], - "query": [ - { - "key": "subject", - "value": "https%3A%2F%2Fsnomed.info%2Fict%7C736253002", - "disabled": true - } + "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" ] } }, @@ -301,14 +459,19 @@ "name": "Consumer", "item": [ { - "name": "Search", + "name": "GET Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", - "value": "YTSbEXOiCE5KubSO534QJ8uWDF1F", + "value": "SazYuPaGhA1uaWr3HCq7U7cZilhM", "type": "string" } ] @@ -316,39 +479,54 @@ "method": "GET", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", - "type": "text" - }, - { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "Accept", + "value": "version=1.0", "type": "text" }, { - "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "key": "x-correlation-id", + "value": "consumer-get-search", "type": "text" }, { - "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "key": "x-request-id", + "value": "search-pointer", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", "type": "text" } ], "url": { - "raw": "{{APIGEE_CONSUMER_URL}}/DocumentReference?subject:identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", - "host": ["{{APIGEE_CONSUMER_URL}}"], - "path": ["DocumentReference"], + "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%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}" + "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 } ] } @@ -356,54 +534,128 @@ "response": [] }, { - "name": "Count", + "name": "POST Search", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", - "value": "YTSbEXOiCE5KubSO534QJ8uWDF1F", + "value": "gwAJySqy0SySAHwN71GixPSbCLHV", "type": "string" } ] }, - "method": "GET", + "method": "POST", "header": [ + { + "key": "Accept", + "value": "application/json; version=1.0", + "type": "text" + }, { "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", + "value": "consumer-post-search", "type": "text" }, { "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "value": "search-pointer", "type": "text" }, { "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "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": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "key": "x-correlation-id", + "value": "consumer-count", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "x-request-id", + "value": "count-pointer", + "type": "text" + }, + { + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", "type": "text" } ], "url": { - "raw": "{{APIGEE_CONSUMER_URL}}/DocumentReference/_count?subject:identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}", - "host": ["{{APIGEE_CONSUMER_URL}}"], - "path": ["DocumentReference", "_count"], + "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%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C{{NHS_NUMBER}}" + "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" } ] } @@ -411,14 +663,19 @@ "response": [] }, { - "name": "Get", + "name": "GET Read", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", - "value": "FAAW6WAFNHBh96DbifB9u0AI3xnf", + "value": "bpt9fauEItb5fn1xEWJOy7aQsGxn", "type": "string" } ] @@ -426,35 +683,38 @@ "method": "GET", "header": [ { - "key": "x-correlation-id", - "value": "{{X_CORRELATION_ID}}", - "type": "text" - }, - { - "key": "x-request-id", - "value": "{{X_REQUEST_ID}}", + "key": "Accept", + "value": "version=1.0", "type": "text" }, { - "key": "NHSD-End-User-Organisation-ODS", - "value": "{{ODS_CODE}}", + "key": "x-correlation-id", + "value": "consumer-read", "type": "text" }, { - "key": "Authorization", - "value": "Bearer {{ACCESS_TOKEN}}", + "key": "x-request-id", + "value": "read-pointer", "type": "text" }, { - "key": "Accept", - "value": "{{ACCEPT}}", + "key": "NHSD-End-User-Organisation-ODS", + "value": "Y05868", "type": "text" } ], "url": { - "raw": "{{APIGEE_CONSUMER_URL}}/DocumentReference/{{ODS_CODE}}-DEMO_1002", - "host": ["{{APIGEE_CONSUMER_URL}}"], - "path": ["DocumentReference", "{{ODS_CODE}}-DEMO_1002"] + "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": []