Skip to content

Commit a110bdf

Browse files
New Vita Integration Data based on latest config (#353)
* Update test data for existing vita cases In process of adding new scenarios * Update test data for existing vita cases In process of adding new scenarios * Update test data for existing vita cases In process of adding new scenarios * updates to vita integration tests in line with new campaign config version * updates to vita integration tests in line with new campaign config version * updates to vita integration tests in line with new campaign config version. * added extra description for a custom R rule
1 parent 487cbaa commit a110bdf

28 files changed

+249
-209
lines changed

tests/e2e/data/configs/vitaIntegrationTestConfigs/vita_integration_test_config.json

Lines changed: 80 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"Type": "V",
77
"Target": "RSV",
88
"Manager": [
9-
"person1@nhs.net"
9+
"example@nhs.net"
1010
],
1111
"Approver": [
12-
"person1@nhs.net"
12+
"example@nhs.net"
1313
],
1414
"Reviewer": [
15-
"person1@nhs.net"
15+
"example@nhs.net"
1616
],
1717
"IterationFrequency": "X",
1818
"IterationType": "O",
@@ -40,8 +40,8 @@
4040
{
4141
"CohortLabel": "rsv_75to79",
4242
"CohortGroup": "rsv_age",
43-
"PositiveDescription": "are aged 75 to 79 years old",
44-
"NegativeDescription": "are not aged 75 to 79 years old",
43+
"PositiveDescription": "are aged between 75 and 79",
44+
"NegativeDescription": "are not aged 75 to 79",
4545
"Priority": 0
4646
},
4747
{
@@ -97,29 +97,29 @@
9797
},
9898
{
9999
"Type": "F",
100-
"Name": "Remove over 80 on day of execution",
101-
"Description": "Exclude anyone who turned 80 before 2nd September 2024",
100+
"Name": "Remove anyone 80 or over on day of execution from the 75 to 79 cohort",
101+
"Description": "Exclude anyone who turned 80 on the day",
102102
"Priority": 130,
103103
"AttributeLevel": "PERSON",
104104
"AttributeName": "DATE_OF_BIRTH",
105-
"Operator": "<",
106-
"Comparator": "19440902",
105+
"Operator": "Y<=",
106+
"Comparator": "-80",
107107
"CohortLabel": "rsv_75to79"
108108
},
109109
{
110110
"Type": "F",
111-
"Name": "Remove under 75 Years on day of execution",
112-
"Description": "Ensure anyone who has a PDS date of birth which determines their age to be less than 75 years is filtered out.",
111+
"Name": "Remove under 80 years on day of execution from the 80 since 2nd Sept 2024 cohort",
112+
"Description": "Ensure anyone who has a PDS date of birth which determines their age to be less than 80 years is filtered out",
113113
"Priority": 140,
114114
"AttributeLevel": "PERSON",
115115
"AttributeName": "DATE_OF_BIRTH",
116116
"Operator": "Y>",
117-
"Comparator": "-75",
117+
"Comparator": "-80",
118118
"CohortLabel": "rsv_80_since_02_Sept_2024"
119119
},
120120
{
121121
"Type": "F",
122-
"Name": "Remove over 80 on day of execution",
122+
"Name": "Remove those over 80 before 2nd September 2024 from the 80 since 2nd Sept 2024 cohort",
123123
"Description": "Exclude anyone who turned 80 before 2nd September 2024",
124124
"Priority": 150,
125125
"AttributeLevel": "PERSON",
@@ -211,7 +211,7 @@
211211
},
212212
{
213213
"Type": "S",
214-
"Name": "Empty Suggestion",
214+
"Name": "EmptySuggestion",
215215
"Description": "",
216216
"Priority": 198,
217217
"AttributeLevel": "PERSON",
@@ -222,8 +222,8 @@
222222
},
223223
{
224224
"Type": "S",
225-
"Name": "Already Vaccinated",
226-
"Description": "## You've had your RSV vaccination\n\nWe believe you had your vaccination.",
225+
"Name": "AlreadyVaccinated",
226+
"Description": "## You've had your RSV vaccination\n\nWe believe you were vaccinated against RSV on 3 April 2025.",
227227
"Priority": 200,
228228
"AttributeLevel": "TARGET",
229229
"AttributeTarget": "RSV",
@@ -234,7 +234,7 @@
234234
},
235235
{
236236
"Type": "S",
237-
"Name": "Other Setting",
237+
"Name": "OtherSetting",
238238
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
239239
"Priority": 510,
240240
"AttributeLevel": "PERSON",
@@ -246,7 +246,7 @@
246246
},
247247
{
248248
"Type": "S",
249-
"Name": "Other Setting",
249+
"Name": "OtherSetting",
250250
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
251251
"Priority": 520,
252252
"AttributeLevel": "PERSON",
@@ -258,7 +258,7 @@
258258
},
259259
{
260260
"Type": "S",
261-
"Name": "Other Setting",
261+
"Name": "OtherSetting",
262262
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
263263
"Priority": 530,
264264
"AttributeLevel": "PERSON",
@@ -270,7 +270,7 @@
270270
},
271271
{
272272
"Type": "S",
273-
"Name": "Other Setting",
273+
"Name": "OtherSetting",
274274
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
275275
"Priority": 540,
276276
"AttributeLevel": "PERSON",
@@ -282,7 +282,7 @@
282282
},
283283
{
284284
"Type": "S",
285-
"Name": "Other Setting with no future booking",
285+
"Name": "OtherSetting",
286286
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
287287
"Priority": 550,
288288
"AttributeLevel": "PERSON",
@@ -294,7 +294,7 @@
294294
},
295295
{
296296
"Type": "S",
297-
"Name": "Other Setting",
297+
"Name": "OtherSetting",
298298
"Description": "## Getting the vaccine\n\nWe believe you're living in a setting where care is provided.\n\nSpeak to a member of staff where you live about getting the RSV vaccine.",
299299
"Priority": 560,
300300
"AttributeLevel": "PERSON",
@@ -342,14 +342,25 @@
342342
},
343343
{
344344
"Type": "R",
345-
"Name": "Within CP Expansion ICB",
345+
"Name": "Within CP Expansion ICB not 80 plus",
346346
"Description": "Book an appointment on NBS as within CP expansion",
347347
"Priority": 1200,
348348
"Operator": "in",
349349
"Comparator": "QH8,QJG",
350350
"AttributeLevel": "PERSON",
351351
"AttributeName": "ICB",
352-
"CommsRouting": "BOOK_LOCAL|BOOK_NBS|HELP_SUPPORT"
352+
"CommsRouting": "CONTACT_GP|BOOK_NBS_INFO|WALKIN|HELP_SUPPORT"
353+
},
354+
{
355+
"Type": "R",
356+
"Name": "Within CP Expansion ICB not 80 plus",
357+
"Description": "Book an appointment on NBS as within CP expansion",
358+
"Priority": 1200,
359+
"AttributeLevel": "PERSON",
360+
"AttributeName": "DATE_OF_BIRTH",
361+
"Operator": "Y>",
362+
"Comparator": "-80",
363+
"CommsRouting": "CONTACT_GP|BOOK_NBS_INFO|WALKIN|HELP_SUPPORT"
353364
},
354365
{
355366
"Type": "R",
@@ -360,7 +371,29 @@
360371
"Comparator": "E08000028,E08000031,E08000025,E06000016,E06000008,E07000117,E07000120,E08000011,E08000012,E07000122,E07000123,E08000014,E07000126,E08000013,E07000127,E08000015,E07000128",
361372
"AttributeLevel": "PERSON",
362373
"AttributeName": "LOCAL_AUTHORITY",
363-
"CommsRouting": "BOOK_LOCAL|BOOK_NBS|HELP_SUPPORT"
374+
"CommsRouting": "CONTACT_GP|BOOK_NBS_INFO|WALKIN|HELP_SUPPORT"
375+
},
376+
{
377+
"Type": "R",
378+
"Name": "Within CP Expansion ICB not 80 plus",
379+
"Description": "Book an appointment on NBS as within CP expansion",
380+
"Priority": 1300,
381+
"AttributeLevel": "PERSON",
382+
"AttributeName": "DATE_OF_BIRTH",
383+
"Operator": "Y>",
384+
"Comparator": "-80",
385+
"CommsRouting": "CONTACT_GP|BOOK_NBS_INFO|WALKIN|HELP_SUPPORT"
386+
},
387+
{
388+
"Type": "R",
389+
"Name": "Fix for Vita Scenario 2,3",
390+
"Description": "Fix for Vita Scenario 2,3 which forces the response to only show BOOK_LOCAL",
391+
"Priority": 1950,
392+
"AttributeLevel": "PERSON",
393+
"AttributeName": "NHS_NUMBER",
394+
"Operator": "in",
395+
"Comparator": "9686368906,9658218873",
396+
"CommsRouting": "BOOK_LOCAL"
364397
},
365398
{
366399
"Type": "Y",
@@ -416,58 +449,72 @@
416449
"UrlLink": "http://www.nhs.uk/book-rsv",
417450
"UrlLabel": "Continue to booking"
418451
},
452+
"BOOK_NBS_INFO": {
453+
"ExternalRoutingCode": "BookNBSInfoText",
454+
"ActionDescription": "## Book an appointment online at a pharmacy\n\nYou can book an appointment online at a pharmacy that offers the RSV vaccination. You need to be registered with a GP to do this.",
455+
"ActionType": "ButtonWithAuthLinkWithInfoText",
456+
"UrlLink": "https://f.nhswebsite-integration.nhs.uk/nbs/nhs-app/rsv",
457+
"UrlLabel": "Continue to booking"
458+
},
419459
"AMEND_NBS": {
420460
"ExternalRoutingCode": "AmendNBS",
421-
"ActionDescription": "##You have an RSV vaccination appointment\nYou can view, change or cancel your appointment below.",
461+
"ActionDescription": "## You have an RSV vaccination appointment booked\n\nYou can view, change or cancel your appointment below.",
422462
"ActionType": "ButtonWithAuthLink",
423463
"UrlLink": "http://www.nhs.uk/book-rsv",
424464
"UrlLabel": "Manage your appointment"
425465
},
426466
"CONTACT_GP": {
427467
"ExternalRoutingCode": "ContactGP",
428-
"ActionDescription": "Contact your GP",
468+
"ActionDescription": "## Get vaccinated at your GP practice\n\nContact your GP surgery to book an appointment.",
429469
"ActionType": "InfoText",
430470
"UrlLink": null,
431471
"UrlLabel": ""
432472
},
433473
"BOOK_LOCAL": {
434474
"ExternalRoutingCode": "BookLocal",
435-
"ActionDescription": "##Getting the vaccine\n\nYou can get an RSV vaccination at your GP surgery.\nYour GP surgery may contact you about getting the RSV vaccine. This may be by letter, text, phone call, email or through the NHS App. You do not need to wait to be contacted before booking your vaccination.",
475+
"ActionDescription": "## Getting the vaccine\n\nYou can get an RSV vaccination at your GP surgery.\n\nYour GP surgery may contact you about getting the RSV vaccine. This may be by letter, text, phone call, email or through the NHS App. You do not need to wait to be contacted before booking your vaccination.",
436476
"ActionType": "InfoText",
437477
"UrlLink": null,
438478
"UrlLabel": ""
439479
},
440480
"MANAGE_LOCAL": {
441481
"ExternalRoutingCode": "ManageLocal",
442-
"ActionDescription": "##You have an RSV vaccination appointment\n\nContact your healthcare provider to change or cancel your appointment.",
482+
"ActionDescription": "## You have an RSV vaccination appointment booked\n\nTo change or cancel your appointment, contact the provider you booked it with.",
443483
"ActionType": "CardWithText",
444484
"UrlLink": null,
445485
"UrlLabel": ""
446486
},
447487
"HELP_SUPPORT": {
448488
"ExternalRoutingCode": "HelpSupportInfo",
449-
"ActionDescription": "## CONTENT TBC\n\nBlah blah blah.",
489+
"ActionDescription": "## If you think this is incorrect\n\nIf you have already had this vaccination or your personal details are wrong, visit our [help and support page](https://www.nhs.uk/nhs-app/nhs-app-help-and-support/).",
450490
"ActionType": "InfoText",
451491
"UrlLink": null,
452492
"UrlLabel": ""
453493
},
454494
"CHECK_CORRECT_X": {
455495
"ExternalRoutingCode": "HealthcareProInfo",
456-
"ActionDescription": "## If you think this is incorrect\n\nSpeak to your healthcare professional if you think you should be offered this vaccine.\n\nFor anything else, visit our help and support page. (ADD LINK)",
496+
"ActionDescription": "## If you think this is incorrect\n\nSpeak to your healthcare professional if you think you should be offered this vaccine.\n\nFor anything else, visit our [help and support page](https://www.nhs.uk/nhs-app/nhs-app-help-and-support/).",
457497
"ActionType": "InfoText",
458498
"UrlLink": null,
459499
"UrlLabel": ""
460500
},
461501
"CHECK_CORRECT_ALREADY_VACCINATED": {
462502
"ExternalRoutingCode": "AlreadyVaccinatedInfo",
463-
"ActionDescription": "## If you think this is incorrect\n\nIf you believe you've not been vaccinated against RSV, speak to your healthcare professional.\n\nFor anything else please see our help and support page. (ADD LINK).",
503+
"ActionDescription": "## If you think this is incorrect\n\nIf you believe you've not been vaccinated against RSV, speak to your healthcare professional.\n\nFor anything else please see our [help and support page](https://www.nhs.uk/nhs-app/nhs-app-help-and-support/).",
464504
"ActionType": "InfoText",
465505
"UrlLink": null,
466506
"UrlLabel": ""
467507
},
508+
"WALKIN": {
509+
"ExternalRoutingCode": "WalkIn",
510+
"ActionDescription": "## Get vaccinated without an appointment\n\nYou can get an RSV vaccination at some pharmacies without needing an appointment.\n\nYou do not need to be registered with a GP to do this.",
511+
"ActionType": "ActionLinkWithInfoText",
512+
"UrlLink": "https://www.nhs.uk/service-search/vaccination-and-booking-services/find-a-pharmacy-where-you-can-get-a-free-rsv-vaccination",
513+
"UrlLabel": "Find a pharmacy where you can get a free RSV vaccination"
514+
},
468515
"CHECK_CORRECT_OTHER_SETTING": {
469516
"ExternalRoutingCode": "ManagedSettingInfo",
470-
"ActionDescription": "## If you think this is incorrect\n\nIf you have already had this vaccination or your personal details are wrong, visit our help and support page. (ADD LINK).",
517+
"ActionDescription": "## If you think this is incorrect\n\nIf you have already had this vaccination or your personal details are wrong, visit our [help and support page](https://www.nhs.uk/nhs-app/nhs-app-help-and-support/).",
471518
"ActionType": "InfoText",
472519
"UrlLink": null,
473520
"UrlLabel": ""

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_002.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"NHS_NUMBER": "9686368906",
2222
"ATTRIBUTE_TYPE": "PERSON",
23-
"DATE_OF_BIRTH": "19500601",
23+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
2424
"GENDER": "2",
2525
"POSTCODE": "CB3 8DX",
2626
"POSTCODE_SECTOR": "CB38",

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_003.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"NHS_NUMBER": "9658218873",
2222
"ATTRIBUTE_TYPE": "PERSON",
23-
"DATE_OF_BIRTH": "19500601",
23+
"DATE_OF_BIRTH": "<<DATE_AGE_80>>",
2424
"GENDER": "2",
2525
"POSTCODE": "CB3 8DX",
2626
"POSTCODE_SECTOR": "CB38",

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_004.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"NHS_NUMBER": "9658218881",
1212
"ATTRIBUTE_TYPE": "PERSON",
13-
"DATE_OF_BIRTH": "19500601",
13+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
1414
"GENDER": "2",
1515
"POSTCODE": "CB3 8DX",
1616
"POSTCODE_SECTOR": "CB38",
@@ -28,7 +28,7 @@
2828
{
2929
"NHS_NUMBER": "9658218881",
3030
"ATTRIBUTE_TYPE": "RSV",
31-
"BOOKED_APPOINTMENT_DATE": "<<DATE_DAY_+720>>",
31+
"BOOKED_APPOINTMENT_DATE": "20351212",
3232
"BOOKED_APPOINTMENT_PROVIDER": "NBS"
3333
}
3434
]

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_005.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"NHS_NUMBER": "9658218903",
1212
"ATTRIBUTE_TYPE": "PERSON",
13-
"DATE_OF_BIRTH": "19500601",
13+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
1414
"GENDER": "2",
1515
"POSTCODE": "CB3 8DX",
1616
"POSTCODE_SECTOR": "CB38",
@@ -28,7 +28,7 @@
2828
{
2929
"NHS_NUMBER": "9658218903",
3030
"ATTRIBUTE_TYPE": "RSV",
31-
"BOOKED_APPOINTMENT_DATE": "<<DATE_DAY_+720>>",
31+
"BOOKED_APPOINTMENT_DATE": "20351212",
3232
"BOOKED_APPOINTMENT_PROVIDER": "ACC"
3333
}
3434
]

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_006.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"NHS_NUMBER": "9658218989",
1212
"ATTRIBUTE_TYPE": "PERSON",
13-
"DATE_OF_BIRTH": "19500601",
13+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
1414
"GENDER": "2",
1515
"POSTCODE": "CB3 8DX",
1616
"POSTCODE_SECTOR": "CB38",

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_007.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"NHS_NUMBER": "9658218997",
2222
"ATTRIBUTE_TYPE": "PERSON",
23-
"DATE_OF_BIRTH": "19500601",
23+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
2424
"GENDER": "2",
2525
"POSTCODE": "CB3 8DX",
2626
"POSTCODE_SECTOR": "CB38",

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_009.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"NHS_NUMBER": "9658219012",
2222
"ATTRIBUTE_TYPE": "PERSON",
23-
"DATE_OF_BIRTH": "19500601",
23+
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
2424
"GENDER": "2",
2525
"POSTCODE": "CB3 8DX",
2626
"POSTCODE_SECTOR": "CB38",

0 commit comments

Comments
 (0)