Skip to content

Commit ed8be49

Browse files
Chore: [ELI-727] - Added the working responses
1 parent f8f50b3 commit ed8be49

11 files changed

Lines changed: 100 additions & 116 deletions

data/configs/inProgressTestConfigs/AUTO_ELI-727-EMPTY-ROUTING.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"CampaignConfig": {
33
"ID": "Story_Campaign_Config_ID",
44
"Version": 1,
5-
"Name": "EliD COVID-19 campaign example config",
5+
"Name": "Status Text Override Campaign Config - Empty ROUTING Text",
66
"Type": "V",
77
"Target": "COVID",
88
"Manager": [

data/configs/inProgressTestConfigs/AUTO_ELI-727-EMPTY-STATUS.json

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"CampaignConfig": {
33
"ID": "Story_Campaign_Config_ID",
44
"Version": 1,
5-
"Name": "EliD COVID-19 campaign example config",
5+
"Name": "Status Text Override Campaign Config - Empty Status Text",
66
"Type": "V",
7-
"Target": "MMR",
7+
"Target": "COVID",
88
"Manager": [
99
"example@nhs.net"
1010
],
@@ -17,8 +17,8 @@
1717
"IterationFrequency": "X",
1818
"IterationType": "O",
1919
"IterationTime": "07:00:00",
20-
"StartDate": "20260201",
21-
"EndDate": "20260930",
20+
"StartDate": "<<DATE_DAY_-7>>",
21+
"EndDate": "<<DATE_DAY_7>>",
2222
"ApprovalMinimum": 0,
2323
"ApprovalMaximum": 0,
2424
"DefaultCommsRouting": "DEFAULT_CONFIG_LEVEL_ROUTING",
@@ -29,8 +29,8 @@
2929
"DefaultNotActionableRouting": "DEFAULT_NOTACTIONABLE_ROUTING",
3030
"DefaultNotEligibleRouting": "",
3131
"Version": 1,
32-
"Name": "EliDMy Vaccines COVID-19 campaign - Iteration 2 exclude cohorts",
33-
"IterationDate": "20260407",
32+
"Name": "Status Text Override Campaign Config - Iteration",
33+
"IterationDate": "<<DATE_DAY_-1>>",
3434
"IterationNumber": 1,
3535
"CommsType": "I",
3636
"ApprovalMinimum": 0,
@@ -47,7 +47,7 @@
4747
"CohortGroup": "cohort_1_group",
4848
"PositiveDescription": "are in cohort 1 group",
4949
"NegativeDescription": "are NOT in cohort 1 group",
50-
"Priority": 40
50+
"Priority": 10
5151
}
5252
],
5353
"IterationRules": [
@@ -75,8 +75,8 @@
7575
},
7676
{
7777
"Type": "S",
78-
"Name": "TriggerSRuleViaICB",
79-
"Description": "You have been made NotActionable by this S rule",
78+
"Name": "TriggerSRuleViaICB_2",
79+
"Description": "You have been made NotActionable by this S other rule",
8080
"Priority": 510,
8181
"AttributeLevel": "PERSON",
8282
"AttributeName": "ICB",
@@ -86,19 +86,19 @@
8686
},
8787
{
8888
"Type": "R",
89-
"Name": "if there have the ICB value Scenario_1",
90-
"Description": "if there have the ICB value 9000072701",
89+
"Name": "Trigger the Override Text if Actionable",
90+
"Description": "If person has the ICB value Scenario_1",
9191
"Priority": 1000,
9292
"Operator": "=",
9393
"Comparator": "Scenario_1",
9494
"AttributeLevel": "PERSON",
9595
"AttributeName": "ICB",
96-
"CommsRouting": "STATUS_TEXT_OVERRIDE_ACTIONABLE"
96+
"CommsRouting": "STATUS_TEXT_OVERRIDE_ACTIONABLE|OTHER_NORMAL_ACTION"
9797
},
9898
{
9999
"Type": "Y",
100-
"Name": "Already vaccinated default text",
101-
"Description": "Already vaccinated default text",
100+
"Name": "Trigger the Override Text if NotActionable",
101+
"Description": "If person has the ICB value Scenario_2",
102102
"Priority": 3000,
103103
"AttributeLevel": "PERSON",
104104
"AttributeName": "ICB",
@@ -108,58 +108,65 @@
108108
},
109109
{
110110
"Type": "X",
111-
"Name": "Other setting default text",
112-
"Description": "Other setting default text",
113-
"Priority": 4100,
111+
"Name": "Trigger the Override Text if NotEligible",
112+
"Description": "If they are a member of one of the cohorts in the Comparator",
113+
"Priority": 4000,
114114
"AttributeLevel": "COHORT",
115115
"AttributeName": "COHORT_LABEL",
116116
"Operator": "MemberOf",
117117
"Comparator": "covid_16+_immunosuppression,covid_under16_immunosuppression",
118-
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE"
118+
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE|OTHER_NORMAL_ACTION"
119119
}
120120
],
121121
"ActionsMapper": {
122+
"OTHER_NORMAL_ACTION": {
123+
"ExternalRoutingCode": "OtherNormalAction",
124+
"ActionDescription": "Other Normal Action",
125+
"ActionType": "InfoText",
126+
"UrlLink": null,
127+
"UrlLabel": ""
128+
},
122129
"DEFAULT_CONFIG_LEVEL_ROUTING": {
123-
"ExternalRoutingCode": "DEFAULT_ExternalRoutingCode",
124-
"ActionDescription": "DEFAULT_ActionDescription",
125-
"ActionType": "DEFAULT_UrlLabel",
130+
"ExternalRoutingCode": "CONFIG_LEVEL_ROUTING_ExternalRoutingCode",
131+
"ActionDescription": "CONFIG_LEVEL_ROUTING_ActionDescription",
132+
"ActionType": "CONFIG_LEVEL_ROUTING_UrlLabel",
126133
"UrlLink": "https://www.nhs.uk/default_url/",
127-
"UrlLabel": "DEFAULT_UrlLabel"
134+
"UrlLabel": "CONFIG_LEVEL_ROUTING_UrlLabel"
128135
},
129136
"DEFAULT_ACTIONABLE_ROUTING": {
130-
"ExternalRoutingCode": "DEFAULT_ExternalRoutingCode",
131-
"ActionDescription": "DEFAULT_ActionDescription",
132-
"ActionType": "DEFAULT_UrlLabel",
137+
"ExternalRoutingCode": "DEFAULT_ACTIONABLE_ExternalRoutingCode",
138+
"ActionDescription": "DEFAULT_ACTIONABLE_ActionDescription",
139+
"ActionType": "DEFAULT_ACTIONABLE__UrlLabel",
133140
"UrlLink": "https://www.nhs.uk/default_url/",
134-
"UrlLabel": "DEFAULT_UrlLabel"
141+
"UrlLabel": "DEFAULT_ACTIONABLE__UrlLabel"
135142
},
136143
"DEFAULT_NOTACTIONABLE_ROUTING": {
137-
"ExternalRoutingCode": "DEFAULT_ExternalRoutingCode",
138-
"ActionDescription": "DEFAULT_ActionDescription",
139-
"ActionType": "DEFAULT_UrlLabel",
144+
"ExternalRoutingCode": "DEFAULT_NOTACTIONABLE_ExternalRoutingCode",
145+
"ActionDescription": "DEFAULT_NOTACTIONABLE_ActionDescription",
146+
"ActionType": "DEFAULT_NOTACTIONABLE_UrlLabel",
140147
"UrlLink": "https://www.nhs.uk/default_url/",
141-
"UrlLabel": "DEFAULT_UrlLabel"
148+
"UrlLabel": "DEFAULT_NOTACTIONABLE_UrlLabel"
142149
},
143150
"STATUS_TEXT_OVERRIDE_ACTIONABLE": {
144151
"ExternalRoutingCode": "StatusTextOverrideActionable",
145152
"ActionDescription": "Status Text Override Actionable",
146153
"ActionType": "norender_StatusTextOverride",
147-
"UrlLink": null,
148-
"UrlLabel": ""
154+
"UrlLink": "https://www.nhs.uk/actionable_overide/",
155+
"UrlLabel": "actionable_overide"
149156
},
150157
"STATUS_TEXT_OVERRIDE_NOT_ACTIONABLE": {
151158
"ExternalRoutingCode": "StatusTextOverrideNotActionable",
152159
"ActionDescription": "Status Text Override Not Actionable",
153160
"ActionType": "norender_StatusTextOverride",
154-
"UrlLink": null,
155-
"UrlLabel": ""
161+
"UrlLink": "https://www.nhs.uk/notactionable_overide/",
162+
"UrlLabel": "notactionable_overide"
156163
},
157164
"STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE": {
158165
"ExternalRoutingCode": "StatusTextOverrideNotEligible",
159166
"ActionDescription": "Status Text Override Not Eligible",
160167
"ActionType": "norender_StatusTextOverride",
161-
"UrlLink": null,
162-
"UrlLabel": ""
168+
"UrlLink": "https://www.nhs.uk/noteligible_overide/",
169+
"UrlLabel": "noteligible_overide"
163170
}
164171
}
165172
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:02:34.262240+00:00"
44
},
55
"processedSuggestions": [
66
{
77
"actions": [
88
{
9-
"actionCode": "BookNBS",
9+
"actionCode": "OtherNormalAction",
1010
"actionType": "InfoText",
11-
"description": "Eligible to book",
11+
"description": "Other Normal Action",
1212
"urlLabel": "",
1313
"urlLink": ""
1414
}
1515
],
16-
"condition": "FLU",
16+
"condition": "COVID",
1717
"eligibilityCohorts": [
1818
{
19-
"cohortCode": "flu_clinical_risk",
19+
"cohortCode": "cohort_1_group",
2020
"cohortStatus": "Actionable",
21-
"cohortText": "have a weakened immune system because of a health condition or treatment"
21+
"cohortText": "are in cohort 1 group"
2222
}
2323
],
2424
"status": "Actionable",
25-
"statusText": "You should have the Flu vaccine",
25+
"statusText": "Status Text Override Actionable",
2626
"suitabilityRules": []
2727
}
2828
],
29-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
29+
"responseId": "648b6d73-c3d8-4189-8e6d-2103fd1d015f"
3030
}
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:15:27.191212+00:00"
44
},
55
"processedSuggestions": [
66
{
7-
"actions": [
8-
{
9-
"actionCode": "HelpSupportInfo",
10-
"actionType": "InfoText",
11-
"description": "### 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/).",
12-
"urlLabel": "",
13-
"urlLink": ""
14-
}
15-
],
7+
"actions": [],
168
"condition": "COVID",
179
"eligibilityCohorts": [
1810
{
@@ -25,12 +17,12 @@
2517
"statusText": "Status Text Override Not Actionable",
2618
"suitabilityRules": [
2719
{
28-
"ruleCode": "AlreadyVaccinated",
29-
"ruleText": "AlreadyVaccinated",
20+
"ruleCode": "TriggerSRuleViaICB",
21+
"ruleText": "You have been made NotActionable by this S rule",
3022
"ruleType": "S"
3123
}
3224
]
3325
}
3426
],
35-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
27+
"responseId": "d339397a-885c-483f-b7b0-09c3a263f3c3"
3628
}
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:15:56.046604+00:00"
44
},
55
"processedSuggestions": [
66
{
77
"actions": [
88
{
9-
"actionCode": "HelpSupportInfo",
9+
"actionCode": "OtherNormalAction",
1010
"actionType": "InfoText",
11-
"description": "### 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/).",
11+
"description": "Other Normal Action",
1212
"urlLabel": "",
1313
"urlLink": ""
1414
}
@@ -23,14 +23,8 @@
2323
],
2424
"status": "NotEligible",
2525
"statusText": "Status Text Override Not Eligible",
26-
"suitabilityRules": [
27-
{
28-
"ruleCode": "NotEligibleOverride",
29-
"ruleText": "Actionable due to clinical risk only",
30-
"ruleType": "X"
31-
}
32-
]
26+
"suitabilityRules": []
3327
}
3428
],
35-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
29+
"responseId": "561ac455-51c3-48a7-b192-d06040b1939e"
3630
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:18:10.895760+00:00"
44
},
55
"processedSuggestions": [
66
{
77
"actions": [
88
{
9-
"actionCode": "HelpSupportInfo",
10-
"actionType": "InfoText",
11-
"description": "### 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/).",
12-
"urlLabel": "",
13-
"urlLink": ""
9+
"actionCode": "DEFAULT_ACTIONABLE_ExternalRoutingCode",
10+
"actionType": "DEFAULT_ACTIONABLE__UrlLabel",
11+
"description": "DEFAULT_ACTIONABLE_ActionDescription",
12+
"urlLabel": "DEFAULT_ACTIONABLE__UrlLabel",
13+
"urlLink": "https://www.nhs.uk/default_url/"
1414
}
1515
],
1616
"condition": "COVID",
1717
"eligibilityCohorts": [
1818
{
1919
"cohortCode": "cohort_1_group",
20-
"cohortStatus": "NotEligible",
21-
"cohortText": "are NOT in cohort 1 group"
20+
"cohortStatus": "Actionable",
21+
"cohortText": "are in cohort 1 group"
2222
}
2323
],
24-
"status": "NotEligible",
25-
"statusText": "NotEligible - Iteration Status Text",
24+
"status": "Actionable",
25+
"statusText": "Actionable - Iteration Status Text",
2626
"suitabilityRules": []
2727
}
2828
],
29-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
29+
"responseId": "cddfb7f0-890c-468b-8a61-16e6cda027aa"
3030
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:18:46.445394+00:00"
44
},
55
"processedSuggestions": [
66
{
77
"actions": [
88
{
9-
"actionCode": "HelpSupportInfo",
10-
"actionType": "InfoText",
11-
"description": "### 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/).",
12-
"urlLabel": "",
13-
"urlLink": ""
9+
"actionCode": "DEFAULT_NOTACTIONABLE_ExternalRoutingCode",
10+
"actionType": "DEFAULT_NOTACTIONABLE_UrlLabel",
11+
"description": "DEFAULT_NOTACTIONABLE_ActionDescription",
12+
"urlLabel": "DEFAULT_NOTACTIONABLE_UrlLabel",
13+
"urlLink": "https://www.nhs.uk/default_url/"
1414
}
1515
],
1616
"condition": "COVID",
@@ -25,12 +25,12 @@
2525
"statusText": "NotActionable - Iteration Status Text",
2626
"suitabilityRules": [
2727
{
28-
"ruleCode": "TooClose",
29-
"ruleText": "TooClose",
28+
"ruleCode": "TriggerSRuleViaICB_2",
29+
"ruleText": "You have been made NotActionable by this S other rule",
3030
"ruleType": "S"
3131
}
3232
]
3333
}
3434
],
35-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
35+
"responseId": "6aec81b4-3c2c-48dd-a1cd-cb11d036b812"
3636
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"meta": {
3-
"lastUpdated": "2026-03-04T14:57:46.982164+00:00"
3+
"lastUpdated": "2026-04-29T15:19:40.152819+00:00"
44
},
55
"processedSuggestions": [
66
{
@@ -9,14 +9,14 @@
99
"eligibilityCohorts": [
1010
{
1111
"cohortCode": "cohort_1_group",
12-
"cohortStatus": "Actionable",
13-
"cohortText": "are in cohort 1 group"
12+
"cohortStatus": "NotEligible",
13+
"cohortText": "are NOT in cohort 1 group"
1414
}
1515
],
16-
"status": "Actionable",
17-
"statusText": "Actionable - Iteration Status Text",
16+
"status": "NotEligible",
17+
"statusText": "NotEligible - Iteration Status Text",
1818
"suitabilityRules": []
1919
}
2020
],
21-
"responseId": "ffa31707-6172-427d-91e0-16b04d745647"
21+
"responseId": "00bd9847-50cf-453b-a1dc-8a839cf5b68a"
2222
}

0 commit comments

Comments
 (0)