Skip to content

Commit 90c629a

Browse files
committed
feat: added json responses for consent
1 parent 740ff01 commit 90c629a

22 files changed

+3217
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"issue": [
3+
{
4+
"code": "invalid",
5+
"details": {
6+
"coding": [
7+
{
8+
"code": "INVALID_VALUE",
9+
"display": "Required parameter(s) are invalid.",
10+
"system": "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode",
11+
"version": "1"
12+
}
13+
]
14+
},
15+
"diagnostics": "Invalid request with error - status parameter is invalid.",
16+
"severity": "error"
17+
}
18+
],
19+
"resourceType": "OperationOutcome"
20+
}
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"resourceType": "Bundle",
3+
"timestamp": "2020-08-26T14:00:00+00:00",
4+
"total": 3,
5+
"type": "searchset",
6+
"entry": [
7+
{
8+
"fullUrl": "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9",
9+
"resource": {
10+
"resourceType": "Consent",
11+
"id": "BBCC67E9",
12+
"status": "active",
13+
"scope": {
14+
"coding": [
15+
{
16+
"system": "http://terminology.hl7.org/CodeSystem/consentscope",
17+
"code": "patient-privacy",
18+
"display": "Privacy Consent"
19+
}
20+
],
21+
"text": "Patient Privacy Consent"
22+
},
23+
"category": [
24+
{
25+
"coding": [
26+
{
27+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
28+
"code": "INFA",
29+
"display": "Information Access"
30+
}
31+
],
32+
"text": "Information Access Consent"
33+
}
34+
],
35+
"patient": {
36+
"identifier": {
37+
"system": "https://fhir.nhs.uk/Id/nhs-number",
38+
"value": "9000000009"
39+
}
40+
},
41+
"dateTime": "2024-07-21T17:32:28Z",
42+
"performer": [
43+
{
44+
"identifier": {
45+
"system": "https://fhir.nhs.uk/Id/nhs-number",
46+
"value": "9000000017"
47+
}
48+
}
49+
],
50+
"policy": [
51+
{
52+
"authority": "https://www.england.nhs.uk",
53+
"uri": "<REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD>"
54+
}
55+
]
56+
},
57+
"search": {
58+
"mode": "match"
59+
}
60+
},
61+
{
62+
"fullUrl": "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1",
63+
"resource": {
64+
"resourceType": "Consent",
65+
"id": "WWCC67T1",
66+
"status": "active",
67+
"scope": {
68+
"coding": [
69+
{
70+
"system": "http://terminology.hl7.org/CodeSystem/consentscope",
71+
"code": "patient-privacy",
72+
"display": "Privacy Consent"
73+
}
74+
],
75+
"text": "Patient Privacy Consent"
76+
},
77+
"category": [
78+
{
79+
"coding": [
80+
{
81+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
82+
"code": "INFA",
83+
"display": "Information Access"
84+
}
85+
],
86+
"text": "Information Access Consent"
87+
}
88+
],
89+
"patient": {
90+
"identifier": {
91+
"system": "https://fhir.nhs.uk/Id/nhs-number",
92+
"value": "9000000005"
93+
}
94+
},
95+
"dateTime": "2024-07-21T17:32:28Z",
96+
"performer": [
97+
{
98+
"identifier": {
99+
"system": "https://fhir.nhs.uk/Id/nhs-number",
100+
"value": "9000000017"
101+
}
102+
}
103+
],
104+
"policy": [
105+
{
106+
"authority": "https://www.england.nhs.uk",
107+
"uri": "<REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD>"
108+
}
109+
],
110+
"verification": [
111+
{
112+
"verified": true,
113+
"verifiedWith": {
114+
"identifier": {
115+
"system": "https://fhir.nhs.uk/Id/nhs-number",
116+
"value": "9000000005"
117+
}
118+
},
119+
"verificationDate": "2024-07-21T17:32:28Z"
120+
}
121+
]
122+
},
123+
"search": {
124+
"mode": "match"
125+
}
126+
},
127+
{
128+
"fullUrl": "https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1",
129+
"resource": {
130+
"resourceType": "Consent",
131+
"id": "AATD11A1",
132+
"status": "inactive",
133+
"scope": {
134+
"coding": [
135+
{
136+
"system": "http://terminology.hl7.org/CodeSystem/consentscope",
137+
"code": "patient-privacy",
138+
"display": "Privacy Consent"
139+
}
140+
],
141+
"text": "Patient Privacy Consent"
142+
},
143+
"category": [
144+
{
145+
"coding": [
146+
{
147+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
148+
"code": "INFA",
149+
"display": "Information Access"
150+
}
151+
],
152+
"text": "Information Access Consent"
153+
}
154+
],
155+
"patient": {
156+
"identifier": {
157+
"system": "https://fhir.nhs.uk/Id/nhs-number",
158+
"value": "9000000006"
159+
}
160+
},
161+
"dateTime": "2024-07-21T17:32:28Z",
162+
"performer": [
163+
{
164+
"identifier": {
165+
"system": "https://fhir.nhs.uk/Id/nhs-number",
166+
"value": "9000000017"
167+
}
168+
}
169+
],
170+
"policy": [
171+
{
172+
"authority": "https://www.england.nhs.uk",
173+
"uri": "<REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD>"
174+
}
175+
],
176+
"verification": [
177+
{
178+
"verified": true,
179+
"verifiedWith": {
180+
"identifier": {
181+
"system": "https://fhir.nhs.uk/Id/nhs-number",
182+
"value": "9000000006"
183+
}
184+
},
185+
"verificationDate": "2024-07-21T17:32:28Z"
186+
}
187+
]
188+
},
189+
"search": {
190+
"mode": "match"
191+
}
192+
}
193+
]
194+
}

0 commit comments

Comments
 (0)