Skip to content

Commit 45a9ec4

Browse files
[ERSSUP-80429]-[]-[Updating samples]-[AP]
1 parent 88f1716 commit 45a9ec4

File tree

14 files changed

+786
-17
lines changed

14 files changed

+786
-17
lines changed

sandbox/src/mocks/stu3/acceptReferral/responses/ExampleResponse.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,23 @@
249249
"value": "103264992985"
250250
}
251251
}
252+
},
253+
{
254+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AvailabilityStatus-1",
255+
"valueCoding":
256+
{
257+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AvailabilityStatus-1",
258+
"code": "AVAILABLE"
259+
}
260+
},
261+
{
262+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedByOrganisation-1",
263+
"valueReference": {
264+
"identifier": {
265+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
266+
"value": "R69"
267+
}
268+
}
252269
}
253270
],
254271
"contentType": "image/png",
Lines changed: 303 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,303 @@
1+
{
2+
"id": "000000070000",
3+
"meta": {
4+
"versionId": "9",
5+
"profile": [
6+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ReferralRequest-1"
7+
]
8+
},
9+
"resourceType": "ReferralRequest",
10+
"extension": [
11+
{
12+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Appointment-1",
13+
"valueReference": {
14+
"reference": "#appointment"
15+
}
16+
},
17+
{
18+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Appointment-Reference-1",
19+
"valueReference": {
20+
"reference": "Appointment/70009"
21+
}
22+
},
23+
{
24+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ClinicalInfoFirstSubmitted-1",
25+
"valueDateTime": "2021-10-13T12:51:16.848Z"
26+
},
27+
{
28+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-eReferralPathwayStart-1",
29+
"valueInstant": "2024-05-01T09:55:00.000Z"
30+
},
31+
{
32+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralPriority-1",
33+
"valueCodeableConcept": {
34+
"coding": [
35+
{
36+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1",
37+
"code": "ROUTINE",
38+
"display": "Routine"
39+
}
40+
]
41+
}
42+
},
43+
{
44+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralShortlist-1",
45+
"valueReference": {
46+
"reference": "#shortlist"
47+
}
48+
},
49+
{
50+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Commissioning-Rule-Org-1",
51+
"valueIdentifier": {
52+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
53+
"value": "R69"
54+
}
55+
},
56+
{
57+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralState-1",
58+
"extension": [
59+
{
60+
"url": "state",
61+
"valueCoding": {
62+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralState-1",
63+
"code": "BOOKED",
64+
"display": "Booked"
65+
}
66+
}
67+
]
68+
}
69+
],
70+
"contained": [
71+
{
72+
"id": "serviceSearchCriteria",
73+
"meta": {
74+
"profile": [
75+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ServiceSearchCriteria-Parameters-1"
76+
]
77+
},
78+
"resourceType": "Parameters",
79+
"parameter": [
80+
{
81+
"name": "priority",
82+
"valueCoding": {
83+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1",
84+
"code": "ROUTINE"
85+
}
86+
},
87+
{
88+
"name": "specialty",
89+
"valueCoding": {
90+
"system": "_baseUrl_/STU3/CodeSystem/SPECIALTY",
91+
"code": "CARDIOLOGY"
92+
}
93+
},
94+
{
95+
"name": "clinicType",
96+
"valueCoding": {
97+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ClinicType-1",
98+
"code": "HEART_FAILURE"
99+
}
100+
},
101+
{
102+
"name": "postcode",
103+
"valueString": "LS1 2TW"
104+
},
105+
{
106+
"name": "distanceLimit",
107+
"valueUnsignedInt": 123
108+
},
109+
{
110+
"name": "ageAndGenderAppropriate",
111+
"valueBoolean": true
112+
}
113+
]
114+
},
115+
{
116+
"id": "shortlist",
117+
"meta": {
118+
"profile": [
119+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Shortlist-List-1"
120+
]
121+
},
122+
"resourceType": "List",
123+
"extension": [
124+
{
125+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Shortlist-SearchCriteria-1",
126+
"valueReference": {
127+
"reference": "#serviceSearchCriteria"
128+
}
129+
}
130+
],
131+
"status": "current",
132+
"mode": "snapshot",
133+
"entry": [
134+
{
135+
"item": {
136+
"identifier": {
137+
"system": "http://fhir.nhs.net/Id/ers-service",
138+
"value": "11000"
139+
},
140+
"display": "Forthright Cardiology Business Service"
141+
}
142+
},
143+
{
144+
"item": {
145+
"identifier": {
146+
"system": "http://fhir.nhs.net/Id/ers-service",
147+
"value": "11002"
148+
},
149+
"display": "Good Cardiology Business Service"
150+
}
151+
}
152+
]
153+
},
154+
{
155+
"id": "appointment",
156+
"meta": {
157+
"versionId": "0",
158+
"profile": [
159+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Appointment-1",
160+
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Appointment-1"
161+
]
162+
},
163+
"language": "en",
164+
"resourceType": "Appointment",
165+
"status": "booked",
166+
"description": "e-Referral Appointment",
167+
"start": "2021-10-15T12:51:12.625Z",
168+
"end": "2021-10-15T13:51:12.625Z",
169+
"slot": [
170+
{
171+
"reference": "Slot/11002001"
172+
}
173+
],
174+
"created": "2021-10-13T12:51:19.344Z",
175+
"incomingReferral": [
176+
{
177+
"reference": "ReferralRequest/000000070000/_history/9"
178+
}
179+
],
180+
"participant": [
181+
{
182+
"actor": {
183+
"identifier": {
184+
"system": "http://fhir.nhs.net/Id/ers-service",
185+
"value": "11002"
186+
},
187+
"display": "Good Cardiology Business Service"
188+
},
189+
"status": "accepted"
190+
},
191+
{
192+
"actor": {
193+
"identifier": {
194+
"system": "http://fhir.nhs.net/Id/nhs-number",
195+
"value": "1000000001"
196+
}
197+
},
198+
"status": "accepted"
199+
},
200+
{
201+
"type": {
202+
"coding": [
203+
{
204+
"system": "http://hl7.org/fhir/ValueSet/encounter-participant-type",
205+
"code": "CON"
206+
}
207+
]
208+
},
209+
"actor": {
210+
"identifier": {
211+
"system": "http://fhir.nhs.net/Id/sds-user-id",
212+
"value": "021600556514"
213+
}
214+
},
215+
"status": "accepted"
216+
}
217+
]
218+
},
219+
{
220+
"id": "DocumentReference-70000",
221+
"meta": {
222+
"profile": [
223+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-DocumentReference-1"
224+
]
225+
},
226+
"resourceType": "DocumentReference",
227+
"type": {
228+
"coding": [
229+
{
230+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AttachmentType-1",
231+
"code": "REFERRER",
232+
"display": "Referrer"
233+
}
234+
]
235+
},
236+
"status": "current",
237+
"indexed": "2021-10-13T12:51:31.874Z",
238+
"description": "upload png",
239+
"content": [
240+
{
241+
"attachment": {
242+
"id": "70000",
243+
"extension": [
244+
{
245+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedBy-1",
246+
"valueReference": {
247+
"identifier": {
248+
"system": "http://fhir.nhs.net/Id/sds-user-id",
249+
"value": "103264992985"
250+
}
251+
}
252+
},
253+
{
254+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AvailabilityStatus-1",
255+
"valueCoding":
256+
{
257+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AvailabilityStatus-1",
258+
"code": "PENDING"
259+
}
260+
},
261+
{
262+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedByOrganisation-1",
263+
"valueReference": {
264+
"identifier": {
265+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
266+
"value": "R69"
267+
}
268+
}
269+
}
270+
],
271+
"contentType": "image/png",
272+
"url": "Binary/3816ca48-897a-4be0-907d-a4e830b4e213",
273+
"size": 6,
274+
"title": "upload.png",
275+
"creation": "2021-10-13"
276+
}
277+
}
278+
]
279+
}
280+
],
281+
"status": "active",
282+
"specialty": {
283+
"coding": [
284+
{
285+
"system": "_baseUrl_/STU3/CodeSystem/SPECIALTY",
286+
"code": "CARDIOLOGY",
287+
"display": "Cardiology"
288+
}
289+
]
290+
},
291+
"subject": {
292+
"identifier": {
293+
"system": "http://fhir.nhs.net/Id/nhs-number",
294+
"value": "1000000001"
295+
}
296+
},
297+
"supportingInfo": [
298+
{
299+
"reference": "#DocumentReference-70000"
300+
}
301+
],
302+
"intent": "plan"
303+
}

sandbox/src/mocks/stu3/cancelAppointmentActionLater/responses/MinimalExampleDBS.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,24 @@
249249
"value": "103264992985"
250250
}
251251
}
252-
}
252+
},
253+
{
254+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AvailabilityStatus-1",
255+
"valueCoding":
256+
{
257+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AvailabilityStatus-1",
258+
"code": "AVAILABLE"
259+
}
260+
},
261+
{
262+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedByOrganisation-1",
263+
"valueReference": {
264+
"identifier": {
265+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
266+
"value": "R69"
267+
}
268+
}
269+
}
253270
],
254271
"contentType": "image/png",
255272
"url": "Binary/857b901d-1491-47d3-90e2-6c9f13f744dc",

sandbox/src/mocks/stu3/cancelAppointmentActionLater/responses/MinimalExampleIBS.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,24 @@
240240
"value": "021600556514"
241241
}
242242
}
243-
}
243+
},
244+
{
245+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AvailabilityStatus-1",
246+
"valueCoding":
247+
{
248+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AvailabilityStatus-1",
249+
"code": "AVAILABLE"
250+
}
251+
},
252+
{
253+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedByOrganisation-1",
254+
"valueReference": {
255+
"identifier": {
256+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
257+
"value": "R69"
258+
}
259+
}
260+
}
244261
],
245262
"contentType": "image/png",
246263
"url": "Binary/857b901d-1491-47d3-90e2-6c9f13f744dc",

0 commit comments

Comments
 (0)