Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"CampaignConfig": {
"ID": "AUTO_RSV_ELI-440-04-Campaign-ID",
"Version": 1,
"Name": "ELI-440-04-Iteration-Config-Name",
"Type": "V",
"Target": "RSV",
"Manager": [
"[email protected]"
],
"Approver": [
"[email protected]"
],
"Reviewer": [
"[email protected]"
],
"IterationFrequency": "X",
"IterationType": "O",
"IterationTime": "07:00:00",
"StartDate": "20250717",
"EndDate": "20350717",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"DefaultCommsRouting": "BOOK_NBS",
"Iterations": [
{
"ID": "AUTO_RSV_ELI-440-04-Iteration-ID",
"DefaultCommsRouting": "TEST_ACTION",
"DefaultNotActionableRouting": "TEST_NOT_ACTION",
"DefaultNotEligibleRouting": "TEST_NOT_ELI",
"Version": 1,
"Name": "ELI-440-04-Iteration-Config-Name",
"IterationDate": "20240808",
"IterationNumber": 1,
"CommsType": "I",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"Type": "O",
"IterationCohorts": [
{
"CohortLabel": "elid_virtual_cohort",
"CohortGroup": "elid_virtual_cohort",
"PositiveDescription": "In elid_virtual_cohort",
"NegativeDescription": "Out elid_virtual_cohort",
"Priority": 1,
"Virtual": "Y"
},
{
"CohortLabel": "rsv_eli_440_cohort_999",
"CohortGroup": "rsv_eli_440_cohort_999",
"PositiveDescription": "In rsv_eli_440_cohort_999",
"NegativeDescription": "Out rsv_eli_440_cohort_999",
"Priority": 2
}
],
"IterationRules": [
{
"Type": "F",
"Name": "Filter based on cohort membership",
"Description": "Filter based on cohort membership",
"Priority": 100,
"AttributeLevel": "COHORT",
"AttributeName": "COHORT_LABEL",
"Operator": "in",
"Comparator": "elid_virtual_cohort"
}
],
"ActionsMapper": {
"TEST_ACTION": {
"ExternalRoutingCode": "TestAction",
"ActionDescription": "TestAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": "http://www.nhs.uk/book-rsv",
"UrlLabel": "Continue to booking"
},
"TEST_NOT_ACTION": {
"ExternalRoutingCode": "TestNotAction",
"ActionDescription": "TestNotAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": null,
"UrlLabel": ""
},
"TEST_NOT_ELI": {
"ExternalRoutingCode": "TestNotEli",
"ActionDescription": "TestNotEli Description",
"ActionType": "TestNotEliAction",
"UrlLink": "https://www.noteligible.com/440",
"UrlLabel": "not_eli_UrlLabel"
}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"CohortGroup": "magic_cohort",
"PositiveDescription": "",
"NegativeDescription": "",
"Priority": 20
"Priority": 20,
"Virtual": "Y"
}
],
"IterationRules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"CohortGroup": "magic_cohort",
"PositiveDescription": "",
"NegativeDescription": "",
"Priority": 20
"Priority": 20,
"Virtual": "Y"
}
],
"IterationRules": [
Expand Down
112 changes: 112 additions & 0 deletions tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-01-3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"CampaignConfig": {
"ID": "AUTO_RSV_ELI-427-01-3-Campaign-ID",
"Version": 1,
"Name": "ELI-427-01-3-Iteration-Config-Name",
"Type": "V",
"Target": "RSV",
"Manager": [
"[email protected]"
],
"Approver": [
"[email protected]"
],
"Reviewer": [
"[email protected]"
],
"IterationFrequency": "X",
"IterationType": "O",
"IterationTime": "07:00:00",
"StartDate": "20250717",
"EndDate": "20350717",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"DefaultCommsRouting": "TEST_ACTION",
"Iterations": [
{
"ID": "AUTO_RSV_ELI-427-01-3-Iteration-ID",
"DefaultCommsRouting": "TEST_ACTION",
"DefaultNotActionableRouting": "TEST_NOT_ACTION",
"DefaultNotEligibleRouting": "TEST_NOT_ELI",
"Version": 1,
"Name": "ELI-427-01-3-Iteration-Config-Name",
"IterationDate": "20240808",
"IterationNumber": 1,
"CommsType": "I",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"Type": "O",
"StatusText": {
"Actionable": "CUSTOM1 - You should have the RSV Vaccine and you have an appointment on [[TARGET.RSV.BOOKED_APPOINTMENT_DATE:DATE(%d %B %Y)]]",
"NotActionable": "CUSTOM2 - You had the RSV Vaccine on [[TARGET.RSV.LAST_SUCCESSFUL_DATE:DATE(%d %B %Y)]]",
"NotEligible": "CUSTOM3 - We do not believe you should have it as you were born on [[TARGET.PERSON.DATE_OF_BIRTH]] and your postcode is [[TARGET.PERSON.POSTCODE]]"
},
"IterationCohorts": [
{
"CohortLabel": "eli_427_cohort_1",
"CohortGroup": "eli_427_cohort_group_1",
"PositiveDescription": "In eli_427_cohort_1",
"NegativeDescription": "Not in eli_427_cohort_1",
"Priority": 1
}
],
"IterationRules": [
{
"Type": "F",
"Name": "Remove under 74 Years on day of execution",
"Description": "Filter out anyone who is not 74 years old.",
"Priority": 100,
"AttributeLevel": "PERSON",
"AttributeName": "DATE_OF_BIRTH",
"Operator": "Y>",
"Comparator": "-74"
},
{
"Type": "F",
"Name": "Remove under 75 Years on day of execution",
"Description": "Filter out anyone who is not 74 years old.",
"Priority": 101,
"AttributeLevel": "PERSON",
"AttributeName": "DATE_OF_BIRTH",
"Operator": "Y<",
"Comparator": "-74"
},
{
"Type": "S",
"Name": "AlreadyVaccinated",
"Description": "## You've had your RSV vaccination.",
"Priority": 200,
"AttributeLevel": "TARGET",
"AttributeTarget": "RSV",
"AttributeName": "LAST_SUCCESSFUL_DATE",
"Operator": "is_not_empty",
"Comparator": ""
}
],
"ActionsMapper": {
"TEST_ACTION": {
"ExternalRoutingCode": "TestAction",
"ActionDescription": "TestAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": "http://www.nhs.uk/book-rsv",
"UrlLabel": "Continue to booking"
},
"TEST_NOT_ACTION": {
"ExternalRoutingCode": "TestNotAction",
"ActionDescription": "TestNotAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": null,
"UrlLabel": ""
},
"TEST_NOT_ELI": {
"ExternalRoutingCode": "TestNotEli",
"ActionDescription": "TestNotEli Description",
"ActionType": "",
"UrlLink": null,
"UrlLabel": ""
}
}
}
]
}
}
110 changes: 110 additions & 0 deletions tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-04-6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"CampaignConfig": {
"ID": "AUTO_RSV_ELI-427-04-Campaign-ID",
"Version": 1,
"Name": "ELI-427-04-Iteration-Config-Name",
"Type": "V",
"Target": "FLU",
"Manager": [
"[email protected]"
],
"Approver": [
"[email protected]"
],
"Reviewer": [
"[email protected]"
],
"IterationFrequency": "X",
"IterationType": "O",
"IterationTime": "07:00:00",
"StartDate": "20250717",
"EndDate": "20350717",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"DefaultCommsRouting": "TEST_ACTION",
"Iterations": [
{
"ID": "AUTO_RSV_ELI-427-04-Iteration-ID",
"DefaultCommsRouting": "TEST_ACTION",
"DefaultNotActionableRouting": "TEST_NOT_ACTION",
"DefaultNotEligibleRouting": "TEST_NOT_ELI",
"Version": 1,
"Name": "ELI-427-04-Iteration-Config-Name",
"IterationDate": "20240808",
"IterationNumber": 1,
"CommsType": "I",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"Type": "O",
"StatusText": {
"Actionable": ""
},
"IterationCohorts": [
{
"CohortLabel": "eli_427_cohort_1",
"CohortGroup": "eli_427_cohort_group_1",
"PositiveDescription": "In eli_427_cohort_1",
"NegativeDescription": "Not in eli_427_cohort_1",
"Priority": 1
}
],
"IterationRules": [
{
"Type": "F",
"Name": "Remove under 74 Years on day of execution",
"Description": "Filter out anyone who is not 74 years old.",
"Priority": 100,
"AttributeLevel": "PERSON",
"AttributeName": "DATE_OF_BIRTH",
"Operator": "Y>",
"Comparator": "-74"
},
{
"Type": "F",
"Name": "Remove under 75 Years on day of execution",
"Description": "Filter out anyone who is not 74 years old.",
"Priority": 101,
"AttributeLevel": "PERSON",
"AttributeName": "DATE_OF_BIRTH",
"Operator": "Y<",
"Comparator": "-74"
},
{
"Type": "S",
"Name": "AlreadyVaccinated",
"Description": "## You've had your RSV vaccination.",
"Priority": 200,
"AttributeLevel": "TARGET",
"AttributeTarget": "RSV",
"AttributeName": "LAST_SUCCESSFUL_DATE",
"Operator": "is_not_empty",
"Comparator": ""
}
],
"ActionsMapper": {
"TEST_ACTION": {
"ExternalRoutingCode": "TestAction",
"ActionDescription": "TestAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": "http://www.nhs.uk/book-rsv",
"UrlLabel": "Continue to booking"
},
"TEST_NOT_ACTION": {
"ExternalRoutingCode": "TestNotAction",
"ActionDescription": "TestNotAction Description",
"ActionType": "ButtonWithAuthLink",
"UrlLink": null,
"UrlLabel": ""
},
"TEST_NOT_ELI": {
"ExternalRoutingCode": "TestNotEli",
"ActionDescription": "TestNotEli Description",
"ActionType": "",
"UrlLink": null,
"UrlLabel": ""
}
}
}
]
}
}
Loading