Skip to content

Commit 2dfa87e

Browse files
NPA-4831: Add examples to spec for multiple proxy relationships for patient with includes paramater
1 parent 76d9ab4 commit 2dfa87e

File tree

3 files changed

+360
-22
lines changed

3 files changed

+360
-22
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
ConsentMultipleRelationshipsSinglePatientIncludePatientBundle:
2+
summary: Multiple relationships (multiple proxy relationships with single patient)
3+
description: A Bundle containing multiple proxy relationships with single patient, including patient details.
4+
value:
5+
resourceType: Bundle
6+
timestamp: '2020-08-26T14:00:00+00:00'
7+
total: 3
8+
type: searchset
9+
entry:
10+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2
11+
resource:
12+
resourceType: Patient
13+
id: A3CC67E2
14+
identifier:
15+
- system: 'https://fhir.nhs.uk/Id/nhs-number'
16+
value: '9000000100'
17+
- system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier'
18+
value: ABC1234567
19+
name:
20+
- id: '123456'
21+
use: usual
22+
period:
23+
start: '2020-01-01'
24+
end: '2021-12-31'
25+
given:
26+
- Samantha
27+
family: Adams
28+
prefix:
29+
- Miss
30+
birthDate: '1963-11-02'
31+
generalPractitioner:
32+
- type: Organization
33+
identifier:
34+
value: ODS12345
35+
system: 'https://fhir.nhs.uk/Id/ods-organization-code'
36+
search:
37+
mode: include
38+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9
39+
resource:
40+
resourceType: Consent
41+
id: BBCC67E9
42+
status: active
43+
scope:
44+
coding:
45+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
46+
code: patient-privacy
47+
display: Privacy Consent
48+
text: Patient Privacy Consent
49+
category:
50+
- coding:
51+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
52+
code: INFA
53+
display: Information Access
54+
text: Information Access Consent
55+
patient:
56+
identifier:
57+
system: 'https://fhir.nhs.uk/Id/nhs-number'
58+
value: '9000000100'
59+
dateTime: '2024-07-21T17:32:28Z'
60+
performer:
61+
- identifier:
62+
system: 'https://fhir.nhs.uk/Id/nhs-number'
63+
value: '9000000020'
64+
search:
65+
mode: match
66+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1
67+
resource:
68+
resourceType: Consent
69+
id: WWCC67T1
70+
status: active
71+
scope:
72+
coding:
73+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
74+
code: patient-privacy
75+
display: Privacy Consent
76+
text: Patient Privacy Consent
77+
category:
78+
- coding:
79+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
80+
code: INFA
81+
display: Information Access
82+
text: Information Access Consent
83+
patient:
84+
identifier:
85+
system: 'https://fhir.nhs.uk/Id/nhs-number'
86+
value: '9000000100'
87+
dateTime: '2024-07-21T17:32:28Z'
88+
performer:
89+
- identifier:
90+
system: 'https://fhir.nhs.uk/Id/nhs-number'
91+
value: '9000000021'
92+
verification:
93+
- verified: true
94+
verifiedWith:
95+
identifier:
96+
system: 'https://fhir.nhs.uk/Id/nhs-number'
97+
value: '9000000021'
98+
verificationDate: '2024-07-21T17:32:28Z'
99+
search:
100+
mode: match
101+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1
102+
resource:
103+
resourceType: Consent
104+
id: AATD11A1
105+
status: inactive
106+
scope:
107+
coding:
108+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
109+
code: patient-privacy
110+
display: Privacy Consent
111+
text: Patient Privacy Consent
112+
category:
113+
- coding:
114+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
115+
code: INFA
116+
display: Information Access
117+
text: Information Access Consent
118+
patient:
119+
identifier:
120+
system: 'https://fhir.nhs.uk/Id/nhs-number'
121+
value: '9000000100'
122+
dateTime: '2024-07-21T17:32:28Z'
123+
performer:
124+
- identifier:
125+
system: 'https://fhir.nhs.uk/Id/nhs-number'
126+
value: '9000000022'
127+
verification:
128+
- verified: true
129+
verifiedWith:
130+
identifier:
131+
system: 'https://fhir.nhs.uk/Id/nhs-number'
132+
value: '9000000022'
133+
verificationDate: '2024-07-21T17:32:28Z'
134+
search:
135+
mode: match
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
ConsentMultipleRelationshipsSinglePatientIncludePerformerPatientBundle:
2+
summary: Multiple relationships (multiple proxy relationships with single patient)
3+
description: A Bundle containing multiple proxy relationships with single patient, including patient and proxy details.
4+
value:
5+
resourceType: Bundle
6+
timestamp: '2020-08-26T14:00:00+00:00'
7+
total: 3
8+
type: searchset
9+
entry:
10+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2
11+
resource:
12+
resourceType: Patient
13+
id: A3CC67E2
14+
identifier:
15+
- system: 'https://fhir.nhs.uk/Id/nhs-number'
16+
value: '9000000100'
17+
- system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier'
18+
value: ABC1234567
19+
name:
20+
- id: '123456'
21+
use: usual
22+
period:
23+
start: '2020-01-01'
24+
end: '2021-12-31'
25+
given:
26+
- Samantha
27+
family: Adams
28+
prefix:
29+
- Miss
30+
birthDate: '1963-11-02'
31+
generalPractitioner:
32+
- type: Organization
33+
identifier:
34+
value: ODS12345
35+
system: 'https://fhir.nhs.uk/Id/ods-organization-code'
36+
search:
37+
mode: include
38+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742
39+
resource:
40+
resourceType: RelatedPerson
41+
id: BE974742
42+
identifier:
43+
- system: 'https://fhir.nhs.uk/Id/nhs-number'
44+
value: '9000000020'
45+
- system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier'
46+
value: ABC0000003
47+
patient:
48+
type: Patient
49+
identifier:
50+
system: 'https://fhir.nhs.uk/Id/nhs-number'
51+
value: '9000000100'
52+
relationship:
53+
- coding:
54+
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
55+
code: PRN
56+
display: parent
57+
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
58+
code: MTH
59+
display: mother
60+
search:
61+
mode: include
62+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9
63+
resource:
64+
resourceType: Consent
65+
id: BBCC67E9
66+
status: active
67+
scope:
68+
coding:
69+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
70+
code: patient-privacy
71+
display: Privacy Consent
72+
text: Patient Privacy Consent
73+
category:
74+
- coding:
75+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
76+
code: INFA
77+
display: Information Access
78+
text: Information Access Consent
79+
patient:
80+
identifier:
81+
system: 'https://fhir.nhs.uk/Id/nhs-number'
82+
value: '9000000100'
83+
dateTime: '2024-07-21T17:32:28Z'
84+
performer:
85+
- identifier:
86+
system: 'https://fhir.nhs.uk/Id/nhs-number'
87+
value: '9000000020'
88+
search:
89+
mode: match
90+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742
91+
resource:
92+
resourceType: RelatedPerson
93+
id: BE974742
94+
identifier:
95+
- system: 'https://fhir.nhs.uk/Id/nhs-number'
96+
value: '9000000021'
97+
- system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier'
98+
value: ABC0000003
99+
patient:
100+
type: Patient
101+
identifier:
102+
system: 'https://fhir.nhs.uk/Id/nhs-number'
103+
value: '9000000100'
104+
relationship:
105+
- coding:
106+
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
107+
code: Personal
108+
display: Personal relationship with the patient
109+
search:
110+
mode: include
111+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1
112+
resource:
113+
resourceType: Consent
114+
id: WWCC67T1
115+
status: active
116+
scope:
117+
coding:
118+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
119+
code: patient-privacy
120+
display: Privacy Consent
121+
text: Patient Privacy Consent
122+
category:
123+
- coding:
124+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
125+
code: INFA
126+
display: Information Access
127+
text: Information Access Consent
128+
patient:
129+
identifier:
130+
system: 'https://fhir.nhs.uk/Id/nhs-number'
131+
value: '9000000100'
132+
dateTime: '2024-07-21T17:32:28Z'
133+
performer:
134+
- identifier:
135+
system: 'https://fhir.nhs.uk/Id/nhs-number'
136+
value: '9000000021'
137+
verification:
138+
- verified: true
139+
verifiedWith:
140+
identifier:
141+
system: 'https://fhir.nhs.uk/Id/nhs-number'
142+
value: '9000000021'
143+
verificationDate: '2024-07-21T17:32:28Z'
144+
search:
145+
mode: match
146+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742
147+
resource:
148+
resourceType: RelatedPerson
149+
id: BE974742
150+
identifier:
151+
- system: 'https://fhir.nhs.uk/Id/nhs-number'
152+
value: '9000000022'
153+
- system: 'https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier'
154+
value: ABC0000003
155+
patient:
156+
type: Patient
157+
identifier:
158+
system: 'https://fhir.nhs.uk/Id/nhs-number'
159+
value: '9000000100'
160+
relationship:
161+
- coding:
162+
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
163+
code: Personal
164+
display: Personal relationship with the patient
165+
search:
166+
mode: include
167+
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1
168+
resource:
169+
resourceType: Consent
170+
id: AATD11A1
171+
status: inactive
172+
scope:
173+
coding:
174+
- system: 'http://terminology.hl7.org/CodeSystem/consentscope'
175+
code: patient-privacy
176+
display: Privacy Consent
177+
text: Patient Privacy Consent
178+
category:
179+
- coding:
180+
- system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
181+
code: INFA
182+
display: Information Access
183+
text: Information Access Consent
184+
patient:
185+
identifier:
186+
system: 'https://fhir.nhs.uk/Id/nhs-number'
187+
value: '9000000100'
188+
dateTime: '2024-07-21T17:32:28Z'
189+
performer:
190+
- identifier:
191+
system: 'https://fhir.nhs.uk/Id/nhs-number'
192+
value: '9000000022'
193+
verification:
194+
- verified: true
195+
verifiedWith:
196+
identifier:
197+
system: 'https://fhir.nhs.uk/Id/nhs-number'
198+
value: '9000000022'
199+
verificationDate: '2024-07-21T17:32:28Z'
200+
search:
201+
mode: match

0 commit comments

Comments
 (0)