Skip to content

Commit 35acc3a

Browse files
test: DTOSS-3883 4c Initial test Framework (#1491)
* Partial 4c test Framework * remove comments etc * inital 4c e2e tests * remove unused file from csproj * fixing unit tests
1 parent 4e21e4c commit 35acc3a

File tree

11 files changed

+907
-280
lines changed

11 files changed

+907
-280
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,377 @@
1+
{
2+
"resourceType": "Patient",
3+
"id": "9998380197",
4+
"identifier": [
5+
{
6+
"system": "https://fhir.nhs.uk/Id/nhs-number",
7+
"value": "9998380197",
8+
"extension": [
9+
{
10+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
11+
"valueCodeableConcept": {
12+
"coding": [
13+
{
14+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
15+
"version": "1.0.0",
16+
"code": "01",
17+
"display": "Number present and verified"
18+
}
19+
]
20+
}
21+
}
22+
]
23+
}
24+
],
25+
"meta": {
26+
"versionId": "2",
27+
"security": [
28+
{
29+
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
30+
"code": "U",
31+
"display": "unrestricted"
32+
}
33+
]
34+
},
35+
"name": [
36+
{
37+
"id": "123",
38+
"use": "usual",
39+
"period": {
40+
"start": "2020-01-01",
41+
"end": "2021-12-31"
42+
},
43+
"given": [
44+
"Jane"
45+
],
46+
"family": "Doe",
47+
"prefix": [
48+
"Mrs"
49+
]
50+
}
51+
],
52+
"gender": "female",
53+
"birthDate": "2010-10-22",
54+
"multipleBirthInteger": 1,
55+
"generalPractitioner": [
56+
],
57+
"managingOrganization": {
58+
"type": "Organization",
59+
"identifier": {
60+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
61+
"value": "Y12345",
62+
"period": {
63+
"start": "2020-01-01",
64+
"end": "2021-12-31"
65+
}
66+
}
67+
},
68+
"extension": [
69+
{
70+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy",
71+
"valueReference": {
72+
"identifier": {
73+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
74+
"value": "Y12345"
75+
}
76+
}
77+
},
78+
{
79+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization",
80+
"valueReference": {
81+
"identifier": {
82+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
83+
"value": "Y23456"
84+
}
85+
}
86+
},
87+
{
88+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier",
89+
"valueReference": {
90+
"identifier": {
91+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
92+
"value": "Y34567"
93+
}
94+
}
95+
},
96+
{
97+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus",
98+
"extension": [
99+
{
100+
"url": "deathNotificationStatus",
101+
"valueCodeableConcept": {
102+
"coding": [
103+
{
104+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeathNotificationStatus",
105+
"version": "1.0.0",
106+
"code": "2",
107+
"display": "Formal - death notice received from Registrar of Deaths"
108+
}
109+
]
110+
}
111+
},
112+
{
113+
"url": "systemEffectiveDate",
114+
"valueDateTime": "2010-10-22T00:00:00+00:00"
115+
}
116+
]
117+
},
118+
{
119+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication",
120+
"extension": [
121+
{
122+
"url": "language",
123+
"valueCodeableConcept": {
124+
"coding": [
125+
{
126+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-HumanLanguage",
127+
"version": "1.0.0",
128+
"code": "en",
129+
"display": "English"
130+
}
131+
]
132+
}
133+
},
134+
{
135+
"url": "interpreterRequired",
136+
"valueBoolean": false
137+
}
138+
]
139+
},
140+
{
141+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference",
142+
"extension": [
143+
{
144+
"url": "PreferredWrittenCommunicationFormat",
145+
"valueCodeableConcept": {
146+
"coding": [
147+
{
148+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat",
149+
"code": "12",
150+
"display": "Braille"
151+
}
152+
]
153+
}
154+
},
155+
{
156+
"url": "PreferredContactMethod",
157+
"valueCodeableConcept": {
158+
"coding": [
159+
{
160+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod",
161+
"code": "1",
162+
"display": "Letter"
163+
}
164+
]
165+
}
166+
},
167+
{
168+
"url": "PreferredContactTimes",
169+
"valueString": "Not after 7pm"
170+
}
171+
]
172+
},
173+
{
174+
"url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
175+
"valueAddress": {
176+
"city": "Manchester",
177+
"district": "Greater Manchester",
178+
"country": "GBR"
179+
}
180+
},
181+
{
182+
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-PDS-RemovalFromRegistration",
183+
"extension": [
184+
{
185+
"url": "removalFromRegistrationCode",
186+
"valueCodeableConcept": {
187+
"coding": [
188+
{
189+
"system": "https://fhir.nhs.uk/CodeSystem/PDS-RemovalReasonExitCode",
190+
"code": "SCT",
191+
"display": "Transferred to Scotland"
192+
}
193+
]
194+
}
195+
},
196+
{
197+
"url": "effectiveTime",
198+
"valuePeriod": {
199+
"start": "2020-01-01T00:00:00+00:00",
200+
"end": "2021-12-31T00:00:00+00:00"
201+
}
202+
}
203+
]
204+
}
205+
],
206+
"telecom": [
207+
{
208+
"id": "789",
209+
"period": {
210+
"start": "2020-01-01",
211+
"end": "2021-12-31"
212+
},
213+
"system": "phone",
214+
"value": "01632960587",
215+
"use": "home"
216+
},
217+
{
218+
"id": "790",
219+
"period": {
220+
"start": "2019-01-01",
221+
"end": "2022-12-31"
222+
},
223+
"system": "email",
224+
"value": "[email protected]",
225+
"use": "home"
226+
},
227+
{
228+
"id": "OC789",
229+
"period": {
230+
"start": "2020-01-01",
231+
"end": "2021-12-31"
232+
},
233+
"system": "other",
234+
"value": "01632960587",
235+
"use": "home",
236+
"extension": [
237+
{
238+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem",
239+
"valueCoding": {
240+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-OtherContactSystem",
241+
"code": "textphone",
242+
"display": "Minicom (Textphone)"
243+
}
244+
}
245+
]
246+
}
247+
],
248+
"contact": [
249+
{
250+
"id": "C123",
251+
"period": {
252+
"start": "2020-01-01",
253+
"end": "2021-12-31"
254+
},
255+
"relationship": [
256+
{
257+
"coding": [
258+
{
259+
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
260+
"code": "C",
261+
"display": "Emergency Contact"
262+
}
263+
]
264+
}
265+
],
266+
"telecom": [
267+
{
268+
"system": "phone",
269+
"value": "01632960587"
270+
}
271+
]
272+
}
273+
],
274+
"address": [
275+
{
276+
"id": "456",
277+
"period": {
278+
"start": "2020-01-01",
279+
"end": "2021-12-31"
280+
},
281+
"use": "home",
282+
"line": [
283+
"1 Trevelyan Square",
284+
"Boar Lane",
285+
"City Centre",
286+
"Leeds",
287+
"West Yorkshire"
288+
],
289+
"postalCode": "LS1 6AE",
290+
"extension": [
291+
{
292+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey",
293+
"extension": [
294+
{
295+
"url": "type",
296+
"valueCoding": {
297+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType",
298+
"code": "PAF"
299+
}
300+
},
301+
{
302+
"url": "value",
303+
"valueString": "12345678"
304+
}
305+
]
306+
},
307+
{
308+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey",
309+
"extension": [
310+
{
311+
"url": "type",
312+
"valueCoding": {
313+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType",
314+
"code": "UPRN"
315+
}
316+
},
317+
{
318+
"url": "value",
319+
"valueString": "123456789012"
320+
}
321+
]
322+
}
323+
]
324+
},
325+
{
326+
"id": "T456",
327+
"period": {
328+
"start": "2020-01-01",
329+
"end": "2021-12-31"
330+
},
331+
"use": "temp",
332+
"text": "Student Accommodation",
333+
"line": [
334+
"1 Trevelyan Square",
335+
"Boar Lane",
336+
"City Centre",
337+
"Leeds",
338+
"West Yorkshire"
339+
],
340+
"postalCode": "LS1 6AE",
341+
"extension": [
342+
{
343+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey",
344+
"extension": [
345+
{
346+
"url": "type",
347+
"valueCoding": {
348+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType",
349+
"code": "PAF"
350+
}
351+
},
352+
{
353+
"url": "value",
354+
"valueString": "12345678"
355+
}
356+
]
357+
},
358+
{
359+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey",
360+
"extension": [
361+
{
362+
"url": "type",
363+
"valueCoding": {
364+
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType",
365+
"code": "UPRN"
366+
}
367+
},
368+
{
369+
"url": "value",
370+
"valueString": "123456789012"
371+
}
372+
]
373+
}
374+
]
375+
}
376+
]
377+
}

0 commit comments

Comments
 (0)