diff --git a/resources/fhir/NRLF-Retrieval-CodeSystem.json b/resources/fhir/NRLF-Retrieval-CodeSystem.json index 7f58167a9..46d5b8699 100644 --- a/resources/fhir/NRLF-Retrieval-CodeSystem.json +++ b/resources/fhir/NRLF-Retrieval-CodeSystem.json @@ -58,6 +58,11 @@ "definition": "This document can be retrieved via the National Document Repository proxy service." } ] + }, + { + "code": "Direct_InContext", + "display": "Direct using In-Context", + "definition": "This document can be retrieved in-context via the In-Context launch mechanism." } ] } diff --git a/resources/fhir/NRLF-RetrievalMechanism-ValueSet.json b/resources/fhir/NRLF-RetrievalMechanism-ValueSet.json index 4956351c1..0fc2d8797 100644 --- a/resources/fhir/NRLF-RetrievalMechanism-ValueSet.json +++ b/resources/fhir/NRLF-RetrievalMechanism-ValueSet.json @@ -33,6 +33,10 @@ { "code": "NDR", "display": "National Document Repository" + }, + { + "code": "Direct_InContext", + "display": "Direct using In-Context" } ] } diff --git a/tests/data/samples/INCTX_IN_CONTEXT_LAUNCH_EXAMPLE.json b/tests/data/samples/INCTX_IN_CONTEXT_LAUNCH_EXAMPLE.json new file mode 100644 index 000000000..410f8bba2 --- /dev/null +++ b/tests/data/samples/INCTX_IN_CONTEXT_LAUNCH_EXAMPLE.json @@ -0,0 +1,105 @@ +{ + "resourceType": "DocumentReference", + "id": "INCTX-197ca0ca-f547-42b6-a68c-99b75a3a2df5", + "meta": { + "lastUpdated": "2025-02-10T16:48:27.326Z" + }, + "masterIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "mid_197ca0ca-f547-42b6-a68c-99b75a3a2df5" + }, + "status": "current", + "type": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "736253002", + "display": "Mental health crisis plan" + } + ] + }, + "category": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "734163000", + "display": "Care plan" + } + ] + } + ], + "subject": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9999999999" + } + }, + "date": "2025-02-10T16:48:27.326Z", + "author": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "L85012" + } + } + ], + "custodian": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "INCTX" + } + }, + "content": [ + { + "attachment": { + "contentType": "text/html", + "url": "https://supplier.inctxlaunch.example/content", + "creation": "2025-02-10T16:48:27.326Z" + }, + "format": { + "system": "https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode", + "code": "urn:nhs-ic:structured", + "display": "Structured Document" + }, + "extension": [ + { + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability", + "code": "dynamic", + "display": "Dynamic" + } + ] + }, + "url": "https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability" + }, + { + "url": "https://fhir.nhs.uk/England/StructureDefinition/Extension-England-RetrievalMechanism", + "valueCodeableConcept": [ + { + "system": "https://fhir.nhs.uk/England/CodeSystem/England-RetrievalMechanism", + "code": "Direct_InContext", + "display": "Direct using In-Context" + } + ] + } + ] + } + ], + "context": { + "period": { + "start": "2025-02-10T16:48:27.326Z" + }, + "practiceSetting": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "1060971000000108", + "display": "General practice service" + } + ] + } + } +}