Skip to content

Commit 86d8ad1

Browse files
Merge pull request #841 from NHSDigital/feature/NRL-1256-Update-API-catalogue-Sandbox-Postman-tests-re-validation-changes
Postman tests now contain new validation
2 parents 5b2d8b2 + 296ac7a commit 86d8ad1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

postman_collection.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
],
5555
"body": {
5656
"mode": "raw",
57-
"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}",
57+
"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}",
5858
"options": {
5959
"raw": {
6060
"language": "json"
@@ -119,7 +119,7 @@
119119
],
120120
"body": {
121121
"mode": "raw",
122-
"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}",
122+
"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}",
123123
"options": {
124124
"raw": {
125125
"language": "json"
@@ -184,15 +184,15 @@
184184
],
185185
"body": {
186186
"mode": "raw",
187-
"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}",
187+
"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}",
188188
"options": {
189189
"raw": {
190190
"language": "json"
191191
}
192192
}
193193
},
194194
"url": {
195-
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8",
195+
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-2341fb51-fa25-4190-802c-858768029765",
196196
"protocol": "https",
197197
"host": ["sandbox", "api", "service", "nhs", "uk"],
198198
"path": [
@@ -201,7 +201,7 @@
201201
"FHIR",
202202
"R4",
203203
"DocumentReference",
204-
"Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8"
204+
"Y05868-2341fb51-fa25-4190-802c-858768029765"
205205
]
206206
}
207207
},
@@ -381,7 +381,7 @@
381381
}
382382
],
383383
"url": {
384-
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8",
384+
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94",
385385
"protocol": "https",
386386
"host": ["sandbox", "api", "service", "nhs", "uk"],
387387
"path": [
@@ -390,7 +390,7 @@
390390
"FHIR",
391391
"R4",
392392
"DocumentReference",
393-
"Y05868-26b5c8bf-864b-4eb1-928f-4bafb6d9b7b8"
393+
"Y05868-8552f0d6-c915-4f6a-810d-9d3da3943c94"
394394
]
395395
}
396396
},
@@ -438,7 +438,7 @@
438438
}
439439
],
440440
"url": {
441-
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-bf392627-31d5-464f-bd34-a47072c9768e",
441+
"raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference/Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe",
442442
"protocol": "https",
443443
"host": ["sandbox", "api", "service", "nhs", "uk"],
444444
"path": [
@@ -447,7 +447,7 @@
447447
"FHIR",
448448
"R4",
449449
"DocumentReference",
450-
"Y05868-bf392627-31d5-464f-bd34-a47072c9768e"
450+
"Y05868-aae5cc20-9074-43d4-babc-94eddf890dfe"
451451
]
452452
}
453453
},

0 commit comments

Comments
 (0)