Skip to content

Commit ad9f7dc

Browse files
MWClayson-NHSwill-larkin-nhs
authored andcommitted
test: DTOSS-10056 vhr flag tests (#1584)
* test: VHR flag tests * test: VHR flag tests * fix Is higher risk flag and add package runner * spec test * null sonar qube issues --------- Co-authored-by: will-larkin <160748088+will-larkin-nhs@users.noreply.github.com>
1 parent 2248051 commit ad9f7dc

9 files changed

Lines changed: 939 additions & 8 deletions

File tree

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

0 commit comments

Comments
 (0)