diff --git a/api/consumer/swagger.yaml b/api/consumer/swagger.yaml index 3fff692f9..5354bb550 100644 --- a/api/consumer/swagger.yaml +++ b/api/consumer/swagger.yaml @@ -74,7 +74,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "4409815415" + value: "9000000017" date: "2022-12-20T09:45:41+11:00" author: - identifier: @@ -200,7 +200,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "4409815415" + value: "9000000017" date: "2022-12-21T10:45:41+11:00" author: - identifier: @@ -315,7 +315,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "4409815415" + value: "9000000017" date: "2022-12-22T11:45:41+11:00" author: - identifier: @@ -1308,7 +1308,7 @@ components: RequestQuerySubject: type: string pattern: ^https\:\/\/fhir\.nhs\.uk\/Id\/nhs-number\|(\d+)$ - example: "https://fhir.nhs.uk/Id/nhs-number|4409815415" + example: "https://fhir.nhs.uk/Id/nhs-number|9000000017" RequestQueryCustodian: type: string pattern: ^https\:\/\/fhir\.nhs\.uk\/Id\/ods-organization-code\|(\w+)$ @@ -1362,13 +1362,13 @@ components: value: "" valid_1: summary: "Valid #1" - value: https://fhir.nhs.uk/Id/nhs-number|4409815415 + value: https://fhir.nhs.uk/Id/nhs-number|9000000017 valid_2: summary: "Valid #2" - value: https://fhir.nhs.uk/Id/nhs-number|3495456481 + value: https://fhir.nhs.uk/Id/nhs-number|9999999999 invalid: summary: Unknown - value: https://fhir.nhs.uk/Id/nhs-number|3495456001 + value: https://fhir.nhs.uk/Id/nhs-number|9000000001 custodian: name: custodian:identifier in: query diff --git a/api/producer/swagger.yaml b/api/producer/swagger.yaml index 027d6c375..2858ee5cb 100644 --- a/api/producer/swagger.yaml +++ b/api/producer/swagger.yaml @@ -72,7 +72,7 @@ paths: "subject": { "identifier": { "system": "https://fhir.nhs.uk/Id/nhs-number", - "value": "3495456481" + "value": "9999999999" } }, ``` @@ -231,7 +231,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "3495456481" + value: "9999999999" date: "2022-12-22T11:45:41+11:00" author: - identifier: @@ -308,7 +308,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "3495456481" + value: "9999999999" date: "2022-12-21T10:45:41+11:00" author: - identifier: @@ -513,7 +513,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "3495456481" + value: "9999999999" date: "2022-12-22T11:45:41+11:00" author: - identifier: @@ -590,7 +590,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "3495456481" + value: "9999999999" date: "2022-12-21T10:45:41+11:00" author: - identifier: @@ -708,7 +708,7 @@ paths: subject: identifier: system: https://fhir.nhs.uk/Id/nhs-number - value: "4409815415" + value: "9000000017" date: "2022-12-22T11:45:41+11:00" author: - identifier: @@ -1951,7 +1951,7 @@ components: RequestQuerySubject: type: string pattern: ^https\:\/\/fhir\.nhs\.uk\/Id\/nhs-number\|(\d+)$ - example: "https://fhir.nhs.uk/Id/nhs-number|4409815415" + example: "https://fhir.nhs.uk/Id/nhs-number|9000000017" RequestQueryType: type: string example: "http://snomed.info/sct|736253002" @@ -1997,13 +1997,13 @@ components: value: "" valid_1: summary: "Valid #1" - value: https://fhir.nhs.uk/Id/nhs-number|4409815415 + value: https://fhir.nhs.uk/Id/nhs-number|9000000017 valid_2: summary: "Valid #2" - value: https://fhir.nhs.uk/Id/nhs-number|3495456481 + value: https://fhir.nhs.uk/Id/nhs-number|9999999999 invalid: summary: Unknown - value: https://fhir.nhs.uk/Id/nhs-number|3495456001 + value: https://fhir.nhs.uk/Id/nhs-number|9000000001 type: name: type in: query diff --git a/layer/nrlf/consumer/fhir/r4/model.py b/layer/nrlf/consumer/fhir/r4/model.py index 2f93f1e7f..fd60a7e23 100644 --- a/layer/nrlf/consumer/fhir/r4/model.py +++ b/layer/nrlf/consumer/fhir/r4/model.py @@ -423,7 +423,7 @@ class RequestQuerySubject(RootModel[str]): root: Annotated[ str, Field( - examples=["https://fhir.nhs.uk/Id/nhs-number|4409815415"], + examples=["https://fhir.nhs.uk/Id/nhs-number|9000000017"], pattern="^https\\:\\/\\/fhir\\.nhs\\.uk\\/Id\\/nhs-number\\|(\\d+)$", ), ] diff --git a/layer/nrlf/producer/fhir/r4/model.py b/layer/nrlf/producer/fhir/r4/model.py index dd6a6b09a..2be5655ad 100644 --- a/layer/nrlf/producer/fhir/r4/model.py +++ b/layer/nrlf/producer/fhir/r4/model.py @@ -467,7 +467,7 @@ class RequestQuerySubject(RootModel[str]): root: Annotated[ str, Field( - examples=["https://fhir.nhs.uk/Id/nhs-number|4409815415"], + examples=["https://fhir.nhs.uk/Id/nhs-number|9000000017"], pattern="^https\\:\\/\\/fhir\\.nhs\\.uk\\/Id\\/nhs-number\\|(\\d+)$", ), ] diff --git a/layer/nrlf/producer/fhir/r4/strict_model.py b/layer/nrlf/producer/fhir/r4/strict_model.py index 94603fc7b..16be73fd2 100644 --- a/layer/nrlf/producer/fhir/r4/strict_model.py +++ b/layer/nrlf/producer/fhir/r4/strict_model.py @@ -417,7 +417,7 @@ class RequestPathParams(Parent): class RequestQuerySubject(RootModel[StrictStr]): root: Annotated[ - StrictStr, Field(examples=["https://fhir.nhs.uk/Id/nhs-number|4409815415"]) + StrictStr, Field(examples=["https://fhir.nhs.uk/Id/nhs-number|9000000017"]) ] diff --git a/postman_collection.json b/postman_collection.json index 36c3f49b9..f86203a9c 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -2,7 +2,7 @@ "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.", + "description": "Data:-\n\nCustodian is Y05868, NHS number is 9999999999, 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" @@ -54,7 +54,7 @@ ], "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}", + "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\": \"9999999999\",\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" @@ -119,7 +119,7 @@ ], "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}", + "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\": \"9999999999\",\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" @@ -184,7 +184,7 @@ ], "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}", + "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\": \"9999999999\",\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" @@ -250,7 +250,7 @@ ], "body": { "mode": "raw", - "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|3495456481\",\n\"type\":\"http://snomed.info/sct|736253002\"}", + "raw": "{\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|9999999999\",\n\"type\":\"http://snomed.info/sct|736253002\"}", "options": { "raw": { "language": "json" @@ -315,7 +315,7 @@ } ], "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", + "raw": "https://sandbox.api.service.nhs.uk/record-locator/producer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9999999999&type=http://snomed.info/sct|736253002", "protocol": "https", "host": ["sandbox", "api", "service", "nhs", "uk"], "path": [ @@ -328,7 +328,7 @@ "query": [ { "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + "value": "https://fhir.nhs.uk/Id/nhs-number|9999999999" }, { "key": "type", @@ -500,7 +500,7 @@ } ], "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", + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9999999999&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": [ @@ -513,7 +513,7 @@ "query": [ { "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + "value": "https://fhir.nhs.uk/Id/nhs-number|9999999999" }, { "key": "type", @@ -576,7 +576,7 @@ ], "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\"}", + "raw": "{\"type\":\"http://snomed.info/sct|736253002\",\n\"subject:identifier\":\"https://fhir.nhs.uk/Id/nhs-number|9999999999\",\n\"custodian:identifier\":\"https://fhir.nhs.uk/Id/ods-organization-code|Y05868\"}", "options": { "raw": { "language": "json" @@ -600,7 +600,7 @@ "response": [] }, { - "name": "GET count", + "name": "GET Count", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true @@ -641,7 +641,7 @@ } ], "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", + "raw": "https://sandbox.api.service.nhs.uk/record-locator/consumer/FHIR/R4/DocumentReference/_count?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9999999999", "protocol": "https", "host": ["sandbox", "api", "service", "nhs", "uk"], "path": [ @@ -655,7 +655,7 @@ "query": [ { "key": "subject:identifier", - "value": "https://fhir.nhs.uk/Id/nhs-number|3495456481" + "value": "https://fhir.nhs.uk/Id/nhs-number|9999999999" } ] }