From 12792f46ca4bbbcdcaa6eed2aa8a1b37ad0bc1f7 Mon Sep 17 00:00:00 2001 From: Ellie Bound <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:00:50 +0000 Subject: [PATCH 1/8] NPA-5825: Updated examples and postman to align with Proxy Role Data Model --- ...ip Service Sandbox.postman_collection.json | 1200 +++++++++++++---- .../adult_to_adult_proxy_creation.yaml | 16 +- .../parent_child_proxy_creation.yaml | 16 +- ...onships-status-active-include-details.yaml | 34 +- ...iltered-relationships-status-inactive.yaml | 34 +- ...-relationships-status-proposed-active.yaml | 68 +- ...ultiple-relationships-include-patient.yaml | 51 +- ...lationships-include-performer-patient.yaml | 51 +- ...tiple-relationships-include-performer.yaml | 51 +- ...nships-single-patient-include-patient.yaml | 51 +- ...gle-patient-include-performer-patient.yaml | 51 +- ...hips-single-patient-include-performer.yaml | 51 +- ...multiple-relationships-single-patient.yaml | 51 +- .../GET_Consent/multiple-relationships.yaml | 51 +- ...ng-adult-relationship-include-patient.yaml | 25 +- ...elationship-include-performer-patient.yaml | 17 +- ...-adult-relationship-include-performer.yaml | 25 +- .../single-consenting-adult-relationship.yaml | 17 +- ...er-child-relationship-include-patient.yaml | 22 +- ...elationship-include-performer-patient.yaml | 17 +- ...-child-relationship-include-performer.yaml | 25 +- ...hild-relationship-unknown-legal-basis.yaml | 15 +- .../single-mother-child-relationship.yaml | 17 +- .../POST_Consent/errors/invalid-request.yaml | 31 + .../validated-relationships-service-api.yaml | 7 +- 25 files changed, 1549 insertions(+), 445 deletions(-) create mode 100644 specification/examples/responses/POST_Consent/errors/invalid-request.yaml diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index 55e673a0..ea17f69f 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -1,10 +1,11 @@ { "info": { - "_postman_id": "4fd91043-1337-4f8b-92c9-96c597b343c8", - "name": "Validated Relationship Service Sandbox 04/11/25", + "_postman_id": "12af1681-48d5-410b-8597-78eed58bee68", + "name": "Validated Relationship Service Sandbox 21/11/25", "description": "This Postman collection includes example scenarios for each of the Validated Relationship Service (VRS) API endpoints, covering both valid and invalid request scenarios.\n\nThe collection is pointed towards the VRS sandbox environment, which will return a specific example response based on the request sent. All data shown in the requests or responses is test data.\n\nOur sandbox environment only covers the scenarios listed in the Postman collection and is open access. It does not allow you to test authorisation or any scenarios beyond the ones documented.\n\nFull specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "26376766" + "_exporter_id": "44536620", + "_collection_link": "https://www.postman.com/l44444-2379/workspace/validated-relationship-service-sandbox-21-11-2025/collection/44536620-12af1681-48d5-410b-8597-78eed58bee68?action=share&source=collection_link&creator=44536620" }, "item": [ { @@ -2169,7 +2170,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2180,7 +2181,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2221,9 +2222,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2233,7 +2234,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2339,7 +2354,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2350,7 +2365,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2391,9 +2406,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2403,7 +2418,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2509,7 +2538,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2520,7 +2549,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2561,9 +2590,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2574,6 +2603,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"REnd-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2588,7 +2631,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2599,7 +2642,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2640,9 +2683,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2653,6 +2696,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"REnd-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2738,7 +2795,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2749,7 +2806,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2790,9 +2847,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2803,6 +2860,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2817,7 +2888,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2828,7 +2899,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2869,9 +2940,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2882,6 +2953,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2896,7 +2981,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2907,7 +2992,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -2948,9 +3033,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -2961,6 +3046,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"APPLICATION_SUBMITTED\",", + " \"display\": \"Application submitted online\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -2975,7 +3074,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -2986,7 +3085,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3027,9 +3126,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3040,6 +3139,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"APPLICATION_SUBMITTED\",", + " \"display\": \"Application submitted online\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3123,7 +3236,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3134,7 +3247,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3175,9 +3288,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3188,6 +3301,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3202,7 +3329,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3213,7 +3340,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3254,9 +3381,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3267,6 +3394,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3281,7 +3422,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3292,7 +3433,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3333,9 +3474,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3346,6 +3487,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3475,7 +3630,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3486,7 +3641,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3527,9 +3682,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3539,7 +3694,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3608,7 +3777,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3619,7 +3788,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3660,9 +3829,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3672,7 +3841,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3741,7 +3924,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3752,7 +3935,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3793,9 +3976,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3805,7 +3988,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -3927,7 +4124,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -3938,7 +4135,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -3979,9 +4176,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -3992,6 +4189,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4043,7 +4254,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4054,7 +4265,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4095,9 +4306,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"Personal\",", - " \"display\": \"Personal\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"best-interest\",", + " \"display\": \"Best Interest\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4108,6 +4319,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4159,7 +4384,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4170,7 +4395,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4211,9 +4436,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"Personal\",", - " \"display\": \"Personal\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"best-interest\",", + " \"display\": \"Best Interest\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4224,6 +4449,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4403,7 +4642,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4414,7 +4653,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4455,9 +4694,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4467,7 +4706,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4573,7 +4826,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4584,7 +4837,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4625,9 +4878,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"Personal\",", - " \"display\": \"Personal\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"best-interest\",", + " \"display\": \"Best Interest\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4637,7 +4890,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4743,7 +5010,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4754,7 +5021,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4795,9 +5062,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"Personal\",", - " \"display\": \"Personal\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"best-interest\",", + " \"display\": \"Best Interest\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4807,7 +5074,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4887,7 +5168,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4898,7 +5179,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -4939,9 +5220,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -4952,6 +5233,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -4966,7 +5261,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -4977,7 +5272,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5018,9 +5313,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5031,6 +5326,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5045,7 +5354,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5056,7 +5365,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5097,9 +5406,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"CHILD\",", - " \"display\": \"Child\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5110,6 +5419,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5281,7 +5604,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5292,7 +5615,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5333,9 +5656,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"CHILD\",", - " \"display\": \"Child\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5345,7 +5668,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5397,7 +5734,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5408,7 +5745,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5449,9 +5786,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5461,7 +5798,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5513,7 +5864,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5524,7 +5875,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5565,9 +5916,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5577,7 +5928,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5703,7 +6068,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5714,7 +6079,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5755,9 +6120,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"CHILD\",", - " \"display\": \"Child\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5768,6 +6133,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5819,7 +6198,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5830,7 +6209,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5871,9 +6250,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -5884,6 +6263,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -5935,7 +6328,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -5946,7 +6339,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -5987,9 +6380,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6000,6 +6393,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6129,7 +6536,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6140,7 +6547,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6181,9 +6588,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"CHILD\",", - " \"display\": \"Child\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6193,7 +6600,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6208,7 +6629,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6219,7 +6640,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6260,9 +6681,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6272,7 +6693,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6287,7 +6722,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6298,7 +6733,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6339,9 +6774,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6351,7 +6786,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", + " \"display\": \"End-date reached\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6483,7 +6932,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6494,7 +6943,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6535,9 +6984,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6547,7 +6996,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6710,7 +7173,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6721,7 +7184,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6762,9 +7225,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6774,7 +7237,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -6854,7 +7331,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -6865,7 +7342,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -6906,9 +7383,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -6919,6 +7396,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -7094,7 +7585,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -7105,7 +7596,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -7146,9 +7637,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -7158,7 +7649,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -7378,7 +7883,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -7389,7 +7894,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -7433,9 +7938,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"unknown\",", + " \"code\": \"UNK\",", " \"display\": \"Unknown\",", - " \"system\": \"https://fhir.nhs.uk/CodeSystem/proxy-legal-basis\"", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-NullFlavor\"", " }", " ]", " }", @@ -7445,7 +7950,21 @@ " \"start\": \"2025-02-11\",", " \"end\": \"2026-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -7463,7 +7982,8 @@ " pm.expect(responseJson).to.eql(expectedResponseBody);", "});" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -8115,7 +8635,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8126,7 +8646,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -8167,9 +8687,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"GUARD\",", - " \"display\": \"Guardian\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -8180,6 +8700,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -8300,7 +8834,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8311,7 +8845,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -8339,6 +8873,45 @@ " \"authority\": \"https://www.england.nhs.uk\",", " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", " }", + " ],", + " \"provision\": {", + " \"actor\": [", + " {", + " \"reference\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", + " }", + " },", + " \"role\": {", + " \"coding\": [", + " {", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", + " }", + " ]", + " }", + " }", + " ],", + " \"period\": {", + " \"end\": \"2026-02-11\",", + " \"start\": \"2025-02-11\"", + " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", " ]", " },", " \"search\": {", @@ -8449,7 +9022,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8460,7 +9033,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -8489,6 +9062,45 @@ " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", " }", " ],", + " \"provision\": {", + " \"actor\": [", + " {", + " \"reference\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000010\"", + " }", + " },", + " \"role\": {", + " \"coding\": [", + " {", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", + " }", + " ]", + " }", + " }", + " ],", + " \"period\": {", + " \"end\": \"2026-02-11\",", + " \"start\": \"2025-02-11\"", + " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -8652,7 +9264,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8663,7 +9275,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -8704,9 +9316,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -8716,7 +9328,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -8792,7 +9418,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8803,7 +9429,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -8844,9 +9470,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -8857,6 +9483,20 @@ " \"start\": \"2025-02-11\"", " }", " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", @@ -8981,7 +9621,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -8992,7 +9632,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -9020,6 +9660,41 @@ " \"authority\": \"https://www.england.nhs.uk\",", " \"uri\": \"REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD\"", " }", + " ],", + " \"provision\": {", + " \"actor\": [", + " {", + " \"reference\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", + " }", + " },", + " \"role\": {", + " \"coding\": [", + " {", + " \"code\": \"court-appointed-personal-welfare-deputy\",", + " \"display\": \"Court appointed personal welfare deputy\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", + " }", + " ]", + " }", + " }", + " ]", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", " ]", " },", " \"search\": {", @@ -9139,7 +9814,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -9150,7 +9825,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -9172,6 +9847,45 @@ " \"value\": \"9000000019\"", " }", " }", + " ],", + " \"provision\": {", + " \"actor\": [", + " {", + " \"reference\": {", + " \"identifier\": {", + " \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",", + " \"value\": \"9000000019\"", + " }", + " },", + " \"role\": {", + " \"coding\": [", + " {", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", + " }", + " ]", + " }", + " }", + " ],", + " \"period\": {", + " \"end\": \"2026-02-11\",", + " \"start\": \"2025-02-11\"", + " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", " ]", " },", " \"search\": {", @@ -9349,7 +10063,7 @@ " \"scope\": {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consentscope\",", " \"code\": \"patient-privacy\",", " \"display\": \"Privacy Consent\"", " }", @@ -9360,7 +10074,7 @@ " {", " \"coding\": [", " {", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",", + " \"system\": \"https://terminology.hl7.org/CodeSystem/v3-ActCode\",", " \"code\": \"INFA\",", " \"display\": \"Information Access\"", " }", @@ -9401,9 +10115,9 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"PRN\",", - " \"display\": \"Parent\",", - " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\"", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", + " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", " }", @@ -9413,7 +10127,21 @@ " \"end\": \"2026-02-11\",", " \"start\": \"2025-02-11\"", " }", - " }", + " },", + " \"extension\": [", + " {", + " \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",", + " \"valueCodeableConcept\": {", + " \"coding\": [", + " {", + " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", + " \"code\": \"ROLE_CREATED\",", + " \"display\": \"Role created from scratch by GP\"", + " }", + " ]", + " }", + " }", + " ]", " },", " \"search\": {", " \"mode\": \"match\"", diff --git a/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml b/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml index c26c343a..e23940d0 100644 --- a/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml +++ b/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml @@ -5,13 +5,13 @@ ConsentAdultToAdultGuardianRequest: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: "Privacy Consent" text: "Patient Privacy Consent" category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: "Information Access" text: "Information Access Consent" @@ -32,9 +32,9 @@ ConsentAdultToAdultGuardianRequest: actor: - role: coding: - - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode - code: GUARD - display: Guardian + - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasi + code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy reference: type: RelatedPerson identifier: @@ -44,6 +44,6 @@ ConsentAdultToAdultGuardianRequest: - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason valueCodeableConcept: coding: - - system: http://terminology.hl7.org/CodeSystem/consent-reason - code: TBC - display: TBC \ No newline at end of file + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP \ No newline at end of file diff --git a/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml b/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml index c7374722..92ad719e 100644 --- a/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml +++ b/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml @@ -5,13 +5,13 @@ ConsentParentChildProxyCreationRequest: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: "Privacy Consent" text: "Patient Privacy Consent" category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: "Information Access" text: "Information Access Consent" @@ -33,9 +33,9 @@ ConsentParentChildProxyCreationRequest: actor: - role: coding: - - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode - code: PRN - display: Parent + - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasi + code: parental-responsibility + display: Parental responsibility reference: type: RelatedPerson identifier: @@ -45,6 +45,6 @@ ConsentParentChildProxyCreationRequest: - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason valueCodeableConcept: coding: - - system: http://terminology.hl7.org/CodeSystem/consent-reason - code: TBC - display: TBC \ No newline at end of file + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP \ No newline at end of file diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml index 72aa4281..6a38e78b 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml @@ -77,13 +77,13 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: "Privacy Consent" text: "Patient Privacy Consent" category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: "Information Access" text: "Information Access Consent" @@ -107,12 +107,19 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: value: "9000000017" role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720" @@ -173,13 +180,13 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: "Privacy Consent" text: "Patient Privacy Consent" category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: "Information Access" text: "Information Access Consent" @@ -203,11 +210,18 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle: value: "9000000017" role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml index a0642052..a4988686 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml @@ -17,13 +17,13 @@ ConsentMultipleRelationshipsStatusInactiveBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,12 +47,19 @@ ConsentMultipleRelationshipsStatusInactiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: REnd-date reached search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ABCD12B3 @@ -62,13 +69,13 @@ ConsentMultipleRelationshipsStatusInactiveBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -92,11 +99,18 @@ ConsentMultipleRelationshipsStatusInactiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: REnd-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml index 01f03f50..8c9eb92f 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml @@ -17,13 +17,13 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,12 +47,19 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match @@ -63,13 +70,13 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -93,12 +100,19 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match @@ -109,13 +123,13 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: status: proposed scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -139,12 +153,19 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: APPLICATION_SUBMITTED + display: Application submitted online search: mode: match @@ -155,13 +176,13 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: status: proposed scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -185,11 +206,18 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle: value: '9000000017' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: APPLICATION_SUBMITTED + display: Application submitted online search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml index 89272b73..98d6d938 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml @@ -51,13 +51,13 @@ ConsentMultipleRelationshipsIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -81,12 +81,19 @@ ConsentMultipleRelationshipsIncludePatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5 @@ -127,13 +134,13 @@ ConsentMultipleRelationshipsIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -157,12 +164,19 @@ ConsentMultipleRelationshipsIncludePatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/ZPTT32T3 @@ -203,13 +217,13 @@ ConsentMultipleRelationshipsIncludePatientBundle: status: inactive scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -233,11 +247,18 @@ ConsentMultipleRelationshipsIncludePatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml index 1338d168..f8f2c891 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml @@ -77,13 +77,13 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -107,12 +107,19 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720 @@ -174,13 +181,13 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -204,12 +211,19 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: value: '9000000022' role: coding: - - code: Personal - display: Personal - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: best-interest + display: Best Interest + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/AATD11A1 @@ -271,13 +285,13 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: status: inactive scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -301,11 +315,18 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle: value: '9000000022' role: coding: - - code: Personal - display: Personal - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: best-interest + display: Best Interest + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml index d0577763..9d5c2ff8 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml @@ -44,13 +44,13 @@ ConsentMultipleRelationshipsIncludePerformerBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -74,12 +74,19 @@ ConsentMultipleRelationshipsIncludePerformerBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: >- @@ -112,13 +119,13 @@ ConsentMultipleRelationshipsIncludePerformerBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -142,12 +149,19 @@ ConsentMultipleRelationshipsIncludePerformerBundle: value: '9000000022' role: coding: - - code: Personal - display: Personal - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: best-interest + display: Best Interest + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: >- @@ -180,13 +194,13 @@ ConsentMultipleRelationshipsIncludePerformerBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -210,12 +224,19 @@ ConsentMultipleRelationshipsIncludePerformerBundle: value: '9000000022' role: coding: - - code: Personal - display: Personal - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: best-interest + display: Best Interest + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml index 7556db27..e3afbe4d 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml @@ -48,13 +48,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -78,12 +78,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: value: '9000000020' role: coding: - - code: CHILD - display: Child - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 @@ -93,13 +100,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -123,12 +130,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: value: '9000000021' role: coding: - - code: GUARD - display: Guardian - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 @@ -138,13 +152,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: status: inactive scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -168,11 +182,18 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml index 57f49131..5b24d379 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml @@ -72,13 +72,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -102,12 +102,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000020' role: coding: - - code: CHILD - display: Child - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 @@ -137,13 +144,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -167,12 +174,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000021' role: coding: - - code: GUARD - display: Guardian - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 @@ -202,13 +216,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: inactive scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -232,11 +246,18 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml index d8f9455a..79131320 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml @@ -41,13 +41,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -71,12 +71,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000020' role: coding: - - code: CHILD - display: Child - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 @@ -106,13 +113,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -136,12 +143,19 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000021' role: coding: - - code: GUARD - display: Guardian - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742 @@ -171,13 +185,13 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -201,11 +215,18 @@ ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml index 42364bd5..b4f03359 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml @@ -17,13 +17,13 @@ ConsentMultipleRelationshipsSinglePatientBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,12 +47,19 @@ ConsentMultipleRelationshipsSinglePatientBundle: value: '9000000020' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 @@ -62,13 +69,13 @@ ConsentMultipleRelationshipsSinglePatientBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -92,12 +99,19 @@ ConsentMultipleRelationshipsSinglePatientBundle: value: '9000000021' role: coding: - - code: GUARD - display: Guardian - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 @@ -107,13 +121,13 @@ ConsentMultipleRelationshipsSinglePatientBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -137,11 +151,18 @@ ConsentMultipleRelationshipsSinglePatientBundle: value: '9000000022' role: coding: - - code: CHILD - display: Child - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/multiple-relationships.yaml b/specification/examples/responses/GET_Consent/multiple-relationships.yaml index 1f8acebe..9e005751 100644 --- a/specification/examples/responses/GET_Consent/multiple-relationships.yaml +++ b/specification/examples/responses/GET_Consent/multiple-relationships.yaml @@ -17,13 +17,13 @@ ConsentMultipleRelationshipsBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,12 +47,19 @@ ConsentMultipleRelationshipsBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1 @@ -62,13 +69,13 @@ ConsentMultipleRelationshipsBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -92,12 +99,19 @@ ConsentMultipleRelationshipsBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1 @@ -107,13 +121,13 @@ ConsentMultipleRelationshipsBundle: status: inactive scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -137,11 +151,18 @@ ConsentMultipleRelationshipsBundle: value: '9000000022' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_DEACTIVATED_END_DATE_REACHED + display: End-date reached search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml index fde8f30a..84288285 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml @@ -48,13 +48,13 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -70,5 +70,26 @@ ConsentSingleConsentingAdultRelationshipIncludePatientBundle: policy: - authority: https://www.england.nhs.uk uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD + provision: + actor: + - reference: + identifier: + system: https://fhir.nhs.uk/Id/nhs-number + value: '9000000010' + role: + coding: + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis + period: + end: "2026-02-11" + start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml index db276c9e..71f38f75 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml @@ -71,13 +71,13 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -101,11 +101,18 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerPatientBundle: value: '9000000010' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml index 7456a741..b0582b72 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml @@ -39,13 +39,13 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -61,5 +61,26 @@ ConsentSingleConsentingAdultRelationshipIncludePerformerBundle: policy: - authority: https://www.england.nhs.uk uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD + provision: + actor: + - reference: + identifier: + system: https://fhir.nhs.uk/Id/nhs-number + value: '9000000010' + role: + coding: + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis + period: + end: "2026-02-11" + start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml index a11eb70b..3a04b2f7 100644 --- a/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml +++ b/specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml @@ -17,13 +17,13 @@ ConsentSingleConsentingAdultRelationshipBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,11 +47,18 @@ ConsentSingleConsentingAdultRelationshipBundle: value: '9000000010' role: coding: - - code: GUARD - display: Guardian - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml index dd578e9a..f5253e6f 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml @@ -51,13 +51,13 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -73,5 +73,23 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: policy: - authority: https://www.england.nhs.uk uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD + provision: + actor: + - reference: + identifier: + system: https://fhir.nhs.uk/Id/nhs-number + value: '9000000019' + role: + coding: + - code: court-appointed-personal-welfare-deputy + display: Court appointed personal welfare deputy + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml index 37337d4e..c41c03ba 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml @@ -77,13 +77,13 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: status: active scope: coding: - - system: "http://terminology.hl7.org/CodeSystem/consentscope" + - system: "https://terminology.hl7.org/CodeSystem/consentscope" code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: "http://terminology.hl7.org/CodeSystem/v3-ActCode" + - system: "https://terminology.hl7.org/CodeSystem/v3-ActCode" code: INFA display: Information Access text: Information Access Consent @@ -107,11 +107,18 @@ ConsentSingleAdultChildRelationshipIncludePerformerPatientBundle: value: '9000000019' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: "2026-02-11" start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml index 8b8adbd0..d3e83a2c 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml @@ -42,13 +42,13 @@ ConsentSingleAdultChildRelationshipIncludePerformerBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -61,5 +61,26 @@ ConsentSingleAdultChildRelationshipIncludePerformerBundle: - identifier: system: 'https://fhir.nhs.uk/Id/nhs-number' value: '9000000019' + provision: + actor: + - reference: + identifier: + system: https://fhir.nhs.uk/Id/nhs-number + value: '9000000019' + role: + coding: + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis + period: + end: "2026-02-11" + start: "2025-02-11" + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-unknown-legal-basis.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-unknown-legal-basis.yaml index 94afa36a..f3c1568f 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-unknown-legal-basis.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-unknown-legal-basis.yaml @@ -17,13 +17,13 @@ ConsentSingleAdultChildRelationshipUnknownLegalBasisBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -50,11 +50,18 @@ ConsentSingleAdultChildRelationshipUnknownLegalBasisBundle: type: RelatedPerson role: coding: - - code: unknown + - code: UNK display: Unknown - system: https://fhir.nhs.uk/CodeSystem/proxy-legal-basis + system: https://terminology.hl7.org/CodeSystem/v3-NullFlavor period: start: '2025-02-11' end: '2026-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml index 3976dce3..a735bc53 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml @@ -17,13 +17,13 @@ ConsentSingleAdultChildRelationshipBundle: status: active scope: coding: - - system: 'http://terminology.hl7.org/CodeSystem/consentscope' + - system: 'https://terminology.hl7.org/CodeSystem/consentscope' code: patient-privacy display: Privacy Consent text: Patient Privacy Consent category: - coding: - - system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' + - system: 'https://terminology.hl7.org/CodeSystem/v3-ActCode' code: INFA display: Information Access text: Information Access Consent @@ -47,11 +47,18 @@ ConsentSingleAdultChildRelationshipBundle: value: '9000000019' role: coding: - - code: PRN - display: Parent - system: http://terminology.hl7.org/CodeSystem/v3-RoleCode + - code: parental-responsibility + display: Parental responsibility + system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis period: end: '2026-02-11' start: '2025-02-11' + extension: + - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason + valueCodeableConcept: + coding: + - system: https://terminology.hl7.org/CodeSystem/consent-reason + code: ROLE_CREATED + display: Role created from scratch by GP search: mode: match diff --git a/specification/examples/responses/POST_Consent/errors/invalid-request.yaml b/specification/examples/responses/POST_Consent/errors/invalid-request.yaml new file mode 100644 index 00000000..08ff5d9e --- /dev/null +++ b/specification/examples/responses/POST_Consent/errors/invalid-request.yaml @@ -0,0 +1,31 @@ +PostConsentInvalidRequestError: + summary: Invalid request. For example you cannot create a proxy role for status 'rejected'. + description: Error raised due to a request not being able to be processed. + value: + issue: + - code: invalid + details: + coding: + - code: "BAD_REQUEST" + display: "The request could not be processed." + system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode" + version: '1' + diagnostics: 'The supplied input is not valid.' + severity: error + resourceType: "OperationOutcome" +PostConsentInvalidFHIRRequestError: + summary: Request failed FHIR validation. + description: Error raised due to a request not being a valid FHIR Consent Resource. + value: + issue: + - code: invalid + details: + coding: + - code: "BAD_REQUEST" + display: "The request could not be processed." + system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode" + version: '1' + diagnostics: 'The supplied input is not a valid FHIR Consent.' + severity: error + resourceType: "OperationOutcome" + diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 83dcd84f..7f8cb528 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -141,7 +141,7 @@ info: * only covers a limited set of scenarios * is open access, so does not allow you to test authorisation - [Run In Postman](https://app.getpostman.com/run-collection/26376766-4fd91043-1337-4f8b-92c9-96c597b343c8?action=collection%2Ffork&collection-url=entityId%3D26376766-4fd91043-1337-4f8b-92c9-96c597b343c8%26entityType%3Dcollection%26workspaceId%3D8fc7bffa-055c-43e2-b94b-da0fdce3aa4b) + [Run In Postman](https://app.getpostman.com/run-collection/44536620-12af1681-48d5-410b-8597-78eed58bee68?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D44536620-12af1681-48d5-410b-8597-78eed58bee68%26entityType%3Dcollection%26workspaceId%3D978bc90c-e3e8-4c4e-a472-00bd35cbc4cb) ### Integration testing Our [integration test environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing) @@ -750,6 +750,7 @@ paths: | 400 | `MISSING_CATEGORY` | Missing category. | | 400 | `MISSING_DATETIME` | Missing datetime. | | 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. | + | 400 | `BAD_REQUEST` | Invalid request. For details, see the `diagnostics` field. | | 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. | | 403 | `FORBIDDEN` | Access denied to resource. | | 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved | @@ -786,6 +787,10 @@ paths: $ref: "./examples/responses/POST_Consent/errors/missing_identifier_system.yaml#/PostConsentMissingIdentifierSystemError" postConsentMissingScope: $ref: "./examples/responses/POST_Consent/errors/missing_scope.yaml#/PostConsentMissingScopeError" + postConsentInvalidRequest: + $ref: "./examples/responses/POST_Consent/errors/invalid_request.yaml#/PostConsentInvalidRequestError" + postConsentInvalidFHIRRequest: + $ref: "./examples/responses/POST_Consent/errors/invalid_request.yaml#/PostConsentInvalidFHIRRequestError" "5XX": description: | From f9675f3cfd2593f7dbf99b35fa4f5cf731868898 Mon Sep 17 00:00:00 2001 From: Ellie Bound <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:10:52 +0000 Subject: [PATCH 2/8] NPA-5825: Fixing Schema and reference to new error response example --- .../errors/{invalid-request.yaml => invalid_request.yaml} | 0 specification/validated-relationships-service-api.yaml | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename specification/examples/responses/POST_Consent/errors/{invalid-request.yaml => invalid_request.yaml} (100%) diff --git a/specification/examples/responses/POST_Consent/errors/invalid-request.yaml b/specification/examples/responses/POST_Consent/errors/invalid_request.yaml similarity index 100% rename from specification/examples/responses/POST_Consent/errors/invalid-request.yaml rename to specification/examples/responses/POST_Consent/errors/invalid_request.yaml diff --git a/specification/validated-relationships-service-api.yaml b/specification/validated-relationships-service-api.yaml index 7f8cb528..fd776c03 100644 --- a/specification/validated-relationships-service-api.yaml +++ b/specification/validated-relationships-service-api.yaml @@ -2280,7 +2280,10 @@ components: provision: $ref: "#/components/schemas/Provision" extension: - $ref: "#/components/schemas/Extension" + type: array + items: + $ref: "#/components/schemas/Extension" + description: "Reasons for the status of the consent" Policy: type: object From e5d28a44cbf97e4f0cbdbbeeddf753fa10a253b8 Mon Sep 17 00:00:00 2001 From: ellie-bound1-NHSD <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 08:49:14 +0000 Subject: [PATCH 3/8] Update specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../requests/POST_Consent/adult_to_adult_proxy_creation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml b/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml index e23940d0..7a4abc39 100644 --- a/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml +++ b/specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml @@ -32,7 +32,7 @@ ConsentAdultToAdultGuardianRequest: actor: - role: coding: - - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasi + - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis code: court-appointed-personal-welfare-deputy display: Court appointed personal welfare deputy reference: From b302b9707b1d04795c7b14a5fef6dacbcd9e5db3 Mon Sep 17 00:00:00 2001 From: ellie-bound1-NHSD <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 08:49:21 +0000 Subject: [PATCH 4/8] Update specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../GET_Consent/filtered-relationships-status-inactive.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml index a4988686..c60ce361 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml @@ -59,7 +59,7 @@ ConsentMultipleRelationshipsStatusInactiveBundle: coding: - system: https://terminology.hl7.org/CodeSystem/consent-reason code: ROLE_DEACTIVATED_END_DATE_REACHED - display: REnd-date reached + display: End-date reached search: mode: match - fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ABCD12B3 From d693534a94d4a813c08c1dce74d8bc2b0c4dd075 Mon Sep 17 00:00:00 2001 From: ellie-bound1-NHSD <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 08:49:29 +0000 Subject: [PATCH 5/8] Update specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../requests/POST_Consent/parent_child_proxy_creation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml b/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml index 92ad719e..50e8f448 100644 --- a/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml +++ b/specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml @@ -33,7 +33,7 @@ ConsentParentChildProxyCreationRequest: actor: - role: coding: - - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasi + - system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis code: parental-responsibility display: Parental responsibility reference: From f15fc6c637f1427fdef2755e7ea63ac45315a0b4 Mon Sep 17 00:00:00 2001 From: ellie-bound1-NHSD <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 08:49:41 +0000 Subject: [PATCH 6/8] Update specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../GET_Consent/filtered-relationships-status-inactive.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml index c60ce361..5af93a85 100644 --- a/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml +++ b/specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml @@ -111,6 +111,6 @@ ConsentMultipleRelationshipsStatusInactiveBundle: coding: - system: https://terminology.hl7.org/CodeSystem/consent-reason code: ROLE_DEACTIVATED_END_DATE_REACHED - display: REnd-date reached + display: End-date reached search: mode: match From 311ea63da639356eb3e4427f7239d81c8d292a5c Mon Sep 17 00:00:00 2001 From: Ellie Bound <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:22:21 +0000 Subject: [PATCH 7/8] NPA-5825: Fix Postman collection --- ...dated Relationship Service Sandbox.postman_collection.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index ea17f69f..edce9e25 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -2611,7 +2611,7 @@ " {", " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", - " \"display\": \"REnd-date reached\"", + " \"display\": \"End-date reached\"", " }", " ]", " }", @@ -2704,7 +2704,7 @@ " {", " \"system\": \"https://terminology.hl7.org/CodeSystem/consent-reason\",", " \"code\": \"ROLE_DEACTIVATED_END_DATE_REACHED\",", - " \"display\": \"REnd-date reached\"", + " \"display\": \"End-date reached\"", " }", " ]", " }", From c500bfd55f995240fe65170921546eca81570c2f Mon Sep 17 00:00:00 2001 From: ellie-bound1-NHSD <175816742+ellie-bound1-NHSD@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:24:17 +0000 Subject: [PATCH 8/8] Update specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...dated Relationship Service Sandbox.postman_collection.json | 4 ++-- .../single-mother-child-relationship-include-patient.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/postman/Validated Relationship Service Sandbox.postman_collection.json b/postman/Validated Relationship Service Sandbox.postman_collection.json index edce9e25..00116c35 100644 --- a/postman/Validated Relationship Service Sandbox.postman_collection.json +++ b/postman/Validated Relationship Service Sandbox.postman_collection.json @@ -9673,8 +9673,8 @@ " \"role\": {", " \"coding\": [", " {", - " \"code\": \"court-appointed-personal-welfare-deputy\",", - " \"display\": \"Court appointed personal welfare deputy\",", + " \"code\": \"parental-responsibility\",", + " \"display\": \"Parental responsibility\",", " \"system\": \"https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis\"", " }", " ]", diff --git a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml index f5253e6f..bb86372e 100644 --- a/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml +++ b/specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml @@ -81,8 +81,8 @@ ConsentSingleAdultChildRelationshipIncludePatientBundle: value: '9000000019' role: coding: - - code: court-appointed-personal-welfare-deputy - display: Court appointed personal welfare deputy + - code: parental-responsibility + display: Parental responsibility system: https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis extension: - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason