Skip to content

Commit 5d73d37

Browse files
NPA-4531: Added provision/extension data
1 parent c18c872 commit 5d73d37

15 files changed

+794
-2
lines changed

specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
22
summary: Multiple active relationships including performer and patient details
33
description:
4-
A Bundle containing multiple active proxy relationships with varying legal basis' including the details
4+
A Bundle containing multiple active proxy relationships with varying legal bases including the details
55
of the performer and patient.
66
value:
77
resourceType: Bundle
@@ -90,6 +90,28 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
9090
- identifier:
9191
system: "https://fhir.nhs.uk/Id/nhs-number"
9292
value: "9000000017"
93+
provision:
94+
actor:
95+
- reference:
96+
identifier:
97+
system: https://fhir.nhs.uk/Id/nhs-number
98+
value: "9000000017"
99+
type: RelatedPerson
100+
role:
101+
coding:
102+
- code: PRN
103+
display: Parent
104+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
105+
period:
106+
end: "2026-02-11"
107+
start: "2025-02-11"
108+
extension:
109+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
110+
valueCodeableConcept:
111+
coding:
112+
- code: TBC
113+
display: TBC
114+
system: http://terminology.hl7.org/CodeSystem/consent-reason
93115
search:
94116
mode: match
95117
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720"
@@ -174,5 +196,27 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
174196
system: "https://fhir.nhs.uk/Id/nhs-number"
175197
value: "9000000005"
176198
verificationDate: "2024-07-21T17:32:28Z"
199+
provision:
200+
actor:
201+
- reference:
202+
identifier:
203+
system: https://fhir.nhs.uk/Id/nhs-number
204+
value: "9000000017"
205+
type: RelatedPerson
206+
role:
207+
coding:
208+
- code: PRN
209+
display: Parent
210+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
211+
period:
212+
end: "2026-02-11"
213+
start: "2025-02-11"
214+
extension:
215+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
216+
valueCodeableConcept:
217+
coding:
218+
- code: TBC
219+
display: TBC
220+
system: http://terminology.hl7.org/CodeSystem/consent-reason
177221
search:
178222
mode: match

specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ConsentMultipleRelationshipsStatusInactiveBundle:
22
summary: Multiple inactive relationships
3-
description: A Bundle containing multiple inactive proxy relationships with varying legal basis'
3+
description: A Bundle containing multiple inactive proxy relationships with varying legal basis
44
value:
55
resourceType: Bundle
66
timestamp: '2020-08-26T14:00:00+00:00'
@@ -40,6 +40,28 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
4040
system: 'https://fhir.nhs.uk/Id/nhs-number'
4141
value: '9000000006'
4242
verificationDate: '2024-07-21T17:32:28Z'
43+
provision:
44+
actor:
45+
- reference:
46+
identifier:
47+
system: https://fhir.nhs.uk/Id/nhs-number
48+
value: '9000000017'
49+
type: RelatedPerson
50+
role:
51+
coding:
52+
- code: PRN
53+
display: Parent
54+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
55+
period:
56+
end: '2026-02-11'
57+
start: '2025-02-11'
58+
extension:
59+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
60+
valueCodeableConcept:
61+
coding:
62+
- code: TBC
63+
display: TBC
64+
system: http://terminology.hl7.org/CodeSystem/consent-reason
4365
search:
4466
mode: match
4567
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ABCD12B3
@@ -75,5 +97,27 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
7597
system: 'https://fhir.nhs.uk/Id/nhs-number'
7698
value: '9000000007'
7799
verificationDate: '2024-07-21T17:32:28Z'
100+
provision:
101+
actor:
102+
- reference:
103+
identifier:
104+
system: https://fhir.nhs.uk/Id/nhs-number
105+
value: '9000000017'
106+
type: RelatedPerson
107+
role:
108+
coding:
109+
- code: PRN
110+
display: Parent
111+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
112+
period:
113+
end: '2026-02-11'
114+
start: '2025-02-11'
115+
extension:
116+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
117+
valueCodeableConcept:
118+
coding:
119+
- code: TBC
120+
display: TBC
121+
system: http://terminology.hl7.org/CodeSystem/consent-reason
78122
search:
79123
mode: match

specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
3333
- identifier:
3434
system: 'https://fhir.nhs.uk/Id/nhs-number'
3535
value: '9000000017'
36+
provision:
37+
actor:
38+
- reference:
39+
identifier:
40+
system: https://fhir.nhs.uk/Id/nhs-number
41+
value: '9000000017'
42+
type: RelatedPerson
43+
role:
44+
coding:
45+
- code: PRN
46+
display: Parent
47+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
48+
period:
49+
end: '2026-02-11'
50+
start: '2025-02-11'
51+
extension:
52+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
53+
valueCodeableConcept:
54+
coding:
55+
- code: TBC
56+
display: TBC
57+
system: http://terminology.hl7.org/CodeSystem/consent-reason
3658
search:
3759
mode: match
3860

@@ -69,6 +91,28 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
6991
system: 'https://fhir.nhs.uk/Id/nhs-number'
7092
value: '9000000005'
7193
verificationDate: '2024-07-21T17:32:28Z'
94+
provision:
95+
actor:
96+
- reference:
97+
identifier:
98+
system: https://fhir.nhs.uk/Id/nhs-number
99+
value: '9000000017'
100+
type: RelatedPerson
101+
role:
102+
coding:
103+
- code: PRN
104+
display: Parent
105+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
106+
period:
107+
end: '2026-02-11'
108+
start: '2025-02-11'
109+
extension:
110+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
111+
valueCodeableConcept:
112+
coding:
113+
- code: TBC
114+
display: TBC
115+
system: http://terminology.hl7.org/CodeSystem/consent-reason
72116
search:
73117
mode: match
74118

@@ -105,6 +149,28 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
105149
system: 'https://fhir.nhs.uk/Id/nhs-number'
106150
value: '9000000020'
107151
verificationDate: '2024-07-21T17:32:28Z'
152+
provision:
153+
actor:
154+
- reference:
155+
identifier:
156+
system: https://fhir.nhs.uk/Id/nhs-number
157+
value: '9000000017'
158+
type: RelatedPerson
159+
role:
160+
coding:
161+
- code: PRN
162+
display: Parent
163+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
164+
period:
165+
end: '2026-02-11'
166+
start: '2025-02-11'
167+
extension:
168+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
169+
valueCodeableConcept:
170+
coding:
171+
- code: TBC
172+
display: TBC
173+
system: http://terminology.hl7.org/CodeSystem/consent-reason
108174
search:
109175
mode: match
110176

@@ -141,5 +207,27 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
141207
system: 'https://fhir.nhs.uk/Id/nhs-number'
142208
value: '9000000021'
143209
verificationDate: '2024-07-21T17:32:28Z'
210+
provision:
211+
actor:
212+
- reference:
213+
identifier:
214+
system: https://fhir.nhs.uk/Id/nhs-number
215+
value: '9000000017'
216+
type: RelatedPerson
217+
role:
218+
coding:
219+
- code: PRN
220+
display: Parent
221+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
222+
period:
223+
end: '2026-02-11'
224+
start: '2025-02-11'
225+
extension:
226+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
227+
valueCodeableConcept:
228+
coding:
229+
- code: TBC
230+
display: TBC
231+
system: http://terminology.hl7.org/CodeSystem/consent-reason
144232
search:
145233
mode: match

specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@ ConsentMultipleRelationshipsIncludePatientBundle:
6565
- identifier:
6666
system: 'https://fhir.nhs.uk/Id/nhs-number'
6767
value: '9000000022'
68+
provision:
69+
actor:
70+
- reference:
71+
identifier:
72+
system: https://fhir.nhs.uk/Id/nhs-number
73+
value: '9000000022'
74+
type: RelatedPerson
75+
role:
76+
coding:
77+
- code: PRN
78+
display: Parent
79+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
80+
period:
81+
end: '2026-02-11'
82+
start: '2025-02-11'
83+
extension:
84+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
85+
valueCodeableConcept:
86+
coding:
87+
- code: TBC
88+
display: TBC
89+
system: http://terminology.hl7.org/CodeSystem/consent-reason
6890
search:
6991
mode: match
7092
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5
@@ -128,6 +150,28 @@ ConsentMultipleRelationshipsIncludePatientBundle:
128150
system: 'https://fhir.nhs.uk/Id/nhs-number'
129151
value: '9000000005'
130152
verificationDate: '2024-07-21T17:32:28Z'
153+
provision:
154+
actor:
155+
- reference:
156+
identifier:
157+
system: https://fhir.nhs.uk/Id/nhs-number
158+
value: '9000000022'
159+
type: RelatedPerson
160+
role:
161+
coding:
162+
- code: PRN
163+
display: Parent
164+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
165+
period:
166+
end: '2026-02-11'
167+
start: '2025-02-11'
168+
extension:
169+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
170+
valueCodeableConcept:
171+
coding:
172+
- code: TBC
173+
display: TBC
174+
system: http://terminology.hl7.org/CodeSystem/consent-reason
131175
search:
132176
mode: match
133177
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/ZPTT32T3
@@ -191,6 +235,28 @@ ConsentMultipleRelationshipsIncludePatientBundle:
191235
system: 'https://fhir.nhs.uk/Id/nhs-number'
192236
value: '9000000006'
193237
verificationDate: '2024-07-21T17:32:28Z'
238+
provision:
239+
actor:
240+
- reference:
241+
identifier:
242+
system: https://fhir.nhs.uk/Id/nhs-number
243+
value: '9000000022'
244+
type: RelatedPerson
245+
role:
246+
coding:
247+
- code: PRN
248+
display: Parent
249+
system: http://terminology.hl7.org/CodeSystem/v3-RoleCode
250+
period:
251+
end: '2026-02-11'
252+
start: '2025-02-11'
253+
extension:
254+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
255+
valueCodeableConcept:
256+
coding:
257+
- code: TBC
258+
display: TBC
259+
system: http://terminology.hl7.org/CodeSystem/consent-reason
194260
search:
195261
mode: match
196262

0 commit comments

Comments
 (0)