diff --git a/tests/e2e/data/configs/inProgressTestConfigs/440/AUTO_RSV_ELI-440-04.json b/tests/e2e/data/configs/inProgressTestConfigs/440/AUTO_RSV_ELI-440-04.json new file mode 100644 index 00000000..06bbdea5 --- /dev/null +++ b/tests/e2e/data/configs/inProgressTestConfigs/440/AUTO_RSV_ELI-440-04.json @@ -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": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-222.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-222.json index 7a9f6b9d..e1cee202 100644 --- a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-222.json +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-222.json @@ -56,7 +56,8 @@ "CohortGroup": "magic_cohort", "PositiveDescription": "", "NegativeDescription": "", - "Priority": 20 + "Priority": 20, + "Virtual": "Y" } ], "IterationRules": [ diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-365.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-365.json index 8b714875..70066de8 100644 --- a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-365.json +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-365.json @@ -56,7 +56,8 @@ "CohortGroup": "magic_cohort", "PositiveDescription": "", "NegativeDescription": "", - "Priority": 20 + "Priority": 20, + "Virtual": "Y" } ], "IterationRules": [ diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-01-3.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-01-3.json new file mode 100644 index 00000000..6c85268b --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-01-3.json @@ -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": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-04-6.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-04-6.json new file mode 100644 index 00000000..e3fe6b44 --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-427-04-6.json @@ -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": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-01.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-01.json new file mode 100644 index 00000000..1870bb32 --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-01.json @@ -0,0 +1,141 @@ +{ + "CampaignConfig": { + "ID": "AUTO_RSV_ELI-440-01-Campaign-ID", + "Version": 1, + "Name": "ELI-440-01-Iteration-Config-Name", + "Type": "V", + "Target": "RSV", + "Manager": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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-01-Iteration-ID", + "DefaultCommsRouting": "TEST_ACTION", + "DefaultNotActionableRouting": "TEST_NOT_ACTION", + "DefaultNotEligibleRouting": "TEST_NOT_ELI", + "Version": 1, + "Name": "ELI-440-01-Iteration-Config-Name", + "IterationDate": "20240808", + "IterationNumber": 1, + "CommsType": "I", + "ApprovalMinimum": 0, + "ApprovalMaximum": 0, + "Type": "O", + "IterationCohorts": [ + { + "CohortLabel": "elid_all_people", + "CohortGroup": "elid_all_people", + "PositiveDescription": "In elid_all_people", + "NegativeDescription": "Not in elid_all_people", + "Priority": 1 + }, + { + "CohortLabel": "elid_virtual_cohort_missing_attribute", + "CohortGroup": "elid_virtual_cohort_missing_attribute", + "PositiveDescription": "In elid_virtual_cohort_missing_attribute", + "NegativeDescription": "Out elid_virtual_cohort_missing_attribute", + "Priority": 2, + "Virtual": "N" + }, + { + "CohortLabel": "elid_virtual_cohort", + "CohortGroup": "elid_virtual_cohort", + "PositiveDescription": "In elid_virtual_cohort", + "NegativeDescription": "Out elid_virtual_cohort", + "Priority": 3, + "Virtual": "Y" + }, + { + "CohortLabel": "elid_virtual_cohort_2", + "CohortGroup": "elid_virtual_cohort", + "PositiveDescription": "In elid_virtual_cohort", + "NegativeDescription": "Out elid_virtual_cohort", + "Priority": 4, + "Virtual": "Y" + }, + { + "CohortLabel": "elid_virtual_cohort_3", + "CohortGroup": "elid_virtual_cohort_3", + "PositiveDescription": "In elid_virtual_cohort_3", + "NegativeDescription": "Out elid_virtual_cohort_3", + "Priority": 5, + "Virtual": "Y" + } + ], + "IterationRules": [ + { + "Type": "F", + "Name": "Remove under 74 Years on day of execution", + "Description": "Filter out anyone from the virtual cohort who is not 74 years old.", + "Priority": 100, + "AttributeLevel": "PERSON", + "AttributeName": "DATE_OF_BIRTH", + "Operator": "Y>", + "Comparator": "-74", + "CohortLabel": "elid_virtual_cohort" + }, + { + "Type": "F", + "Name": "Remove under 75 Years on day of execution", + "Description": "Filter out anyone from the virtual cohort who is not 74 years old.", + "Priority": 101, + "AttributeLevel": "PERSON", + "AttributeName": "DATE_OF_BIRTH", + "Operator": "Y<", + "Comparator": "-74", + "CohortLabel": "elid_virtual_cohort" + }, + { + "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": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-02-3.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-02-3.json new file mode 100644 index 00000000..5128692e --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-02-3.json @@ -0,0 +1,143 @@ +{ + "CampaignConfig": { + "ID": "AUTO_RSV_ELI-440-02-3-Campaign-ID", + "Version": 1, + "Name": "ELI-440-02-3-Iteration-Config-Name", + "Type": "V", + "Target": "RSV", + "Manager": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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-02-3-Iteration-ID", + "DefaultCommsRouting": "TEST_ACTION", + "DefaultNotActionableRouting": "TEST_NOT_ACTION", + "DefaultNotEligibleRouting": "TEST_NOT_ELI", + "Version": 1, + "Name": "ELI-440-02-3-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": "elid_virtual_cohort_2", + "CohortGroup": "elid_virtual_cohort_2", + "PositiveDescription": "In elid_virtual_cohort_2", + "NegativeDescription": "Out elid_virtual_cohort_2", + "Priority": 2, + "Virtual": "Y" + } + ], + "IterationRules": [ + { + "Type": "F", + "Name": "Remove under 74 Years on day of execution from first virtual cohort", + "Description": "Filter out anyone from the virtual cohort who is not 74 years old.", + "Priority": 100, + "AttributeLevel": "PERSON", + "AttributeName": "DATE_OF_BIRTH", + "Operator": "Y>", + "Comparator": "-74", + "CohortLabel": "elid_virtual_cohort" + }, + { + "Type": "F", + "Name": "Remove over 74 Years on day of execution from first virtual cohort", + "Description": "Filter out anyone from the virtual cohort who is not 74 years old.", + "Priority": 101, + "AttributeLevel": "PERSON", + "AttributeName": "DATE_OF_BIRTH", + "Operator": "Y<", + "Comparator": "-74", + "CohortLabel": "elid_virtual_cohort" + }, + { + "Type": "F", + "Name": "Remove 75 Years on day of execution from second virtual cohort", + "Description": "Filter out anyone from the virtual cohort who is exactly 75 years old from second virtual cohort.", + "Priority": 102, + "AttributeLevel": "PERSON", + "AttributeName": "DATE_OF_BIRTH", + "Operator": "=", + "Comparator": "<>", + "CohortLabel": "elid_virtual_cohort_2" + }, + { + "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": "", + "CohortLabel": "elid_virtual_cohort", + "RuleStop": "Y" + }, + { + "Type": "S", + "Name": "AlreadyVaccinated", + "Description": "## You've had your RSV vaccination.", + "Priority": 201, + "AttributeLevel": "TARGET", + "AttributeTarget": "RSV", + "AttributeName": "LAST_SUCCESSFUL_DATE", + "Operator": "is_not_empty", + "Comparator": "", + "CohortLabel": "elid_virtual_cohort_2" + } + ], + "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": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-05-6.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-05-6.json new file mode 100644 index 00000000..6e53312b --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-05-6.json @@ -0,0 +1,87 @@ +{ + "CampaignConfig": { + "ID": "AUTO_RSV_ELI-440-01-Campaign-ID", + "Version": 1, + "Name": "ELI-440-01-Iteration-Config-Name", + "Type": "V", + "Target": "RSV", + "Manager": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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-01-Iteration-ID", + "DefaultCommsRouting": "TEST_ACTION", + "DefaultNotActionableRouting": "TEST_NOT_ACTION", + "DefaultNotEligibleRouting": "TEST_NOT_ELI", + "Version": 1, + "Name": "ELI-440-01-Iteration-Config-Name", + "IterationDate": "20240808", + "IterationNumber": 1, + "CommsType": "I", + "ApprovalMinimum": 0, + "ApprovalMaximum": 0, + "Type": "O", + "IterationCohorts": [ + { + "CohortLabel": "rsv_eli_real_world", + "CohortGroup": "rsv_eli_real_world", + "PositiveDescription": "In rsv_eli_real_world", + "NegativeDescription": "Out rsv_eli_real_world", + "Priority": 1, + "Virtual": "Y" + } + ], + "IterationRules": [ + { + "Type": "F", + "Name": "Filter anyone who is the the first virtual cohort", + "Description": "Filter anyone who is the the first virtual cohort.", + "Priority": 100, + "AttributeLevel": "COHORT", + "AttributeName": "COHORT_LABEL", + "Operator": "MemberOf", + "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": "", + "UrlLink": null, + "UrlLabel": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-07.json b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-07.json new file mode 100644 index 00000000..ec55b314 --- /dev/null +++ b/tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-440-07.json @@ -0,0 +1,116 @@ +{ + "CampaignConfig": { + "ID": "AUTO_RSV_ELI-440-07-Campaign-ID", + "Version": 1, + "Name": "ELI-440-07-Iteration-Config-Name", + "Type": "V", + "Target": "RSV", + "Manager": [ + "person1@nhs.net" + ], + "Approver": [ + "person1@nhs.net" + ], + "Reviewer": [ + "person1@nhs.net" + ], + "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-07-Iteration-ID", + "DefaultCommsRouting": "TEST_ACTION", + "DefaultNotActionableRouting": "TEST_NOT_ACTION", + "DefaultNotEligibleRouting": "TEST_NOT_ELI", + "Version": 1, + "Name": "ELI-440-07-Iteration-Config-Name", + "IterationDate": "20240808", + "IterationNumber": 1, + "CommsType": "I", + "ApprovalMinimum": 0, + "ApprovalMaximum": 0, + "Type": "O", + "IterationCohorts": [ + { + "CohortLabel": "rsv_eli_real_world", + "CohortGroup": "rsv_eli_real_world", + "PositiveDescription": "In rsv_eli_real_world", + "NegativeDescription": "Out rsv_eli_real_world", + "Priority": 1 + }, + { + "CohortLabel": "elid_virtual_cohort_1", + "CohortGroup": "elid_virtual_cohort_1", + "PositiveDescription": "In elid_virtual_cohort_1", + "NegativeDescription": "Out elid_virtual_cohort_1", + "Priority": 2, + "Virtual": "Y" + }, + { + "CohortLabel": "elid_virtual_cohort_2", + "CohortGroup": "elid_virtual_cohort_2", + "PositiveDescription": "In elid_virtual_cohort_2", + "NegativeDescription": "Out elid_virtual_cohort_2", + "Priority": 3, + "Virtual": "Y" + } + ], + "IterationRules": [ + { + "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": "", + "CohortLabel": "elid_virtual_cohort_1" + }, + { + "Type": "S", + "Name": "AlreadyVaccinated", + "Description": "## You've had your RSV vaccination.", + "Priority": 200, + "AttributeLevel": "TARGET", + "AttributeTarget": "RSV", + "AttributeName": "BOOKED_APPOINTMENT_DATE", + "Operator": "is_not_empty", + "Comparator": "", + "CohortLabel": "elid_virtual_cohort_1" + } + ], + "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": "" + } + } + } + ] + } +} diff --git a/tests/e2e/data/configs/vitaIntegrationTestConfigs/vita_integration_test_config.json b/tests/e2e/data/configs/vitaIntegrationTestConfigs/vita_integration_test_config.json index 09a98c0b..726a3a62 100644 --- a/tests/e2e/data/configs/vitaIntegrationTestConfigs/vita_integration_test_config.json +++ b/tests/e2e/data/configs/vitaIntegrationTestConfigs/vita_integration_test_config.json @@ -56,7 +56,8 @@ "CohortGroup": "magic_cohort", "PositiveDescription": "", "NegativeDescription": "", - "Priority": 20 + "Priority": 20, + "Virtual": "Y" } ], "IterationRules": [ diff --git a/tests/e2e/data/dynamoDB/inProgressTestData/440/AUTO_RSV_ELI-440_004.json b/tests/e2e/data/dynamoDB/inProgressTestData/440/AUTO_RSV_ELI-440_004.json new file mode 100644 index 00000000..4bac7dd0 --- /dev/null +++ b/tests/e2e/data/dynamoDB/inProgressTestData/440/AUTO_RSV_ELI-440_004.json @@ -0,0 +1,47 @@ +{ + "scenario_name": "ELI-ELI-440-04 - Filter on virtual cohort Label - NotEligible", + "comment:": "Failing due to issue expected to be fixed in ELI-454- Reintroduce when fixed", + "request_headers": { + "nhs-login-nhs-number": "9900440004" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-04.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440004", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_440_cohort_999", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440004", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440004", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_001.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_001.json new file mode 100644 index 00000000..3d441c38 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_001.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-001 - Custom Status Text - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900427001" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-01-3.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427001", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427001", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427001", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": null, + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_002.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_002.json new file mode 100644 index 00000000..dd0b4807 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_002.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-002 - Custom Status Text - NotActionable", + "request_headers": { + "nhs-login-nhs-number": "9900427002" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-01-3.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427002", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427002", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427002", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "<>", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_003.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_003.json new file mode 100644 index 00000000..37712876 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_003.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-003 - Custom Status Text - NotEligible", + "request_headers": { + "nhs-login-nhs-number": "9900427003" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-01-3.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427003", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427003", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427003", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_004.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_004.json new file mode 100644 index 00000000..2443dc2b --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_004.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-004 - Empty Actionable Custom Status Text - Use Default - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900427004" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-04-6.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427004", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427004", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427004", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": null, + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_005.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_005.json new file mode 100644 index 00000000..e4361a22 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_005.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-005 - Missing NotActionable Custom Status Text - Use Default - NotActionable", + "request_headers": { + "nhs-login-nhs-number": "9900427005" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-04-6.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427005", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427005", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427005", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "<>", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_006.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_006.json new file mode 100644 index 00000000..d6cfd082 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-427_006.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-427-006 - Missing NotEligible Custom Status Text - NotEligible", + "request_headers": { + "nhs-login-nhs-number": "9900427006" + }, + "config_filenames": [ + "AUTO_RSV_ELI-427-04-6.json" + ], + "data": [ + { + "NHS_NUMBER": "9900427006", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "eli_427_cohort_1", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900427006", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900427006", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_001.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_001.json new file mode 100644 index 00000000..e27c2941 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_001.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-440-001 - elid_all_people no longer indicate a cohort is magic/virtual - Missing Virtual Defaults to N - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900440001" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-01.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440001", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_440_cohort_999", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440001", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440001", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": null, + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_002.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_002.json new file mode 100644 index 00000000..9ac42778 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_002.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-440-002 - virtual cohort filter rule - NotEligible", + "request_headers": { + "nhs-login-nhs-number": "9900440002" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-02-3.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440002", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_440_cohort_999", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440002", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440002", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": null, + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_003.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_003.json new file mode 100644 index 00000000..bd879f62 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_003.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-440-003 - virtual cohort suppression rule - NotActionable", + "request_headers": { + "nhs-login-nhs-number": "9900440003" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-02-3.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440003", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_440_cohort_999", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440003", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440003", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_005.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_005.json new file mode 100644 index 00000000..c720fed1 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_005.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-ELI-440-05-6 - Backward Compatibility - 'In real world' cohort - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900440005" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-05-6.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440005", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_real_world", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440005", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440005", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_006.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_006.json new file mode 100644 index 00000000..6718c070 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_006.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-ELI-440-06 - Backward Compatibility - Not 'In real world' cohort - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900440006" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-05-6.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440006", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "not_in_rsv_eli_real_world", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440006", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440006", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_007.json b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_007.json new file mode 100644 index 00000000..59c0e5f5 --- /dev/null +++ b/tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-440_007.json @@ -0,0 +1,46 @@ +{ + "scenario_name": "ELI-ELI-440-07 - And S Rules with Virtual Cohorts using CohortLabel - Actionable", + "request_headers": { + "nhs-login-nhs-number": "9900440007" + }, + "config_filenames": [ + "AUTO_RSV_ELI-440-07.json" + ], + "data": [ + { + "NHS_NUMBER": "9900440007", + "ATTRIBUTE_TYPE": "COHORTS", + "COHORT_MEMBERSHIPS": [ + { + "COHORT_LABEL": "rsv_eli_real_world", + "DATE_JOINED": "20231020" + } + ] + }, + { + "NHS_NUMBER": "9900440007", + "ATTRIBUTE_TYPE": "PERSON", + "DATE_OF_BIRTH": "<>", + "GENDER": "0", + "POSTCODE": "SG8 6EG", + "POSTCODE_SECTOR": "SG86", + "POSTCODE_OUTCODE": "SG8", + "MSOA": "E02003792", + "LSOA": "E01018267", + "GP_PRACTICE_CODE": "D81046", + "PCN": "U75549", + "ICB": "QUE", + "COMMISSIONING_REGION": "Y61", + "13Q_FLAG": "N", + "CARE_HOME_FLAG": "N", + "DE_FLAG": "Y" + }, + { + "NHS_NUMBER": "9900440007", + "ATTRIBUTE_TYPE": "RSV", + "LAST_SUCCESSFUL_DATE": "not_null", + "BOOKED_APPOINTMENT_DATE": "<>", + "BOOKED_APPOINTMENT_PROVIDER": "NBS" + } + ] +} diff --git a/tests/e2e/data/responses/inProgressTestResponses/440/AUTO_RSV_ELI-440_004.json b/tests/e2e/data/responses/inProgressTestResponses/440/AUTO_RSV_ELI-440_004.json new file mode 100644 index 00000000..604e7f14 --- /dev/null +++ b/tests/e2e/data/responses/inProgressTestResponses/440/AUTO_RSV_ELI-440_004.json @@ -0,0 +1,35 @@ +{ + "meta": { + "lastUpdated": "2025-09-17T13:22:37.091749+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotEli", + "actionType": "TestNotEliAction", + "description": "TestNotEli Description", + "urlLabel": "not_eli_UrlLabel", + "urlLink": "https://www.noteligible.com/440" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "elid_virtual_cohort", + "cohortStatus": "NotEligible", + "cohortText": "Out elid_virtual_cohort" + }, + { + "cohortCode": "rsv_eli_440_cohort_999", + "cohortStatus": "NotEligible", + "cohortText": "Out rsv_eli_440_cohort_999" + } + ], + "status": "NotEligible", + "statusText": "We do not believe you can have it", + "suitabilityRules": [] + } + ], + "responseId": "24f59fb8-6951-47e9-9a60-c08003f06fb6" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_001.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_001.json new file mode 100644 index 00000000..a75d8a93 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_001.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:37:31.026669+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "Actionable", + "cohortText": "In eli_427_cohort_1" + } + ], + "status": "Actionable", + "statusText": "CUSTOM1 - You should have the RSV Vaccine and you have an appointment on <>", + "suitabilityRules": [] + } + ], + "responseId": "78b0e4ea-7efb-4860-8168-7ec5b8f176fa" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_002.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_002.json new file mode 100644 index 00000000..693795db --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_002.json @@ -0,0 +1,36 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:40:12.555932+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotAction", + "actionType": "ButtonWithAuthLink", + "description": "TestNotAction Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "NotActionable", + "cohortText": "In eli_427_cohort_1" + } + ], + "status": "NotActionable", + "statusText": "CUSTOM2 - You had the RSV Vaccine on <>", + "suitabilityRules": [ + { + "ruleCode": "AlreadyVaccinated", + "ruleText": "## You've had your RSV vaccination.", + "ruleType": "S" + } + ] + } + ], + "responseId": "36c8036a-3e35-40ec-9572-5f82f00e067a" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_003.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_003.json new file mode 100644 index 00000000..0c33bbd3 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_003.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:43:55.970331+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotEli", + "actionType": "", + "description": "TestNotEli Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "NotEligible", + "cohortText": "Not in eli_427_cohort_1" + } + ], + "status": "NotEligible", + "statusText": "CUSTOM3 - We do not believe you should have it as you were born on <> and your postcode is SG8 6EG", + "suitabilityRules": [] + } + ], + "responseId": "d5f9af16-453e-45c5-947f-dc2de44d5109" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_004.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_004.json new file mode 100644 index 00000000..c7a1d8d5 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_004.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:37:31.026669+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "FLU", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "Actionable", + "cohortText": "In eli_427_cohort_1" + } + ], + "status": "Actionable", + "statusText": "You should have the FLU vaccine", + "suitabilityRules": [] + } + ], + "responseId": "78b0e4ea-7efb-4860-8168-7ec5b8f176fa" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_005.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_005.json new file mode 100644 index 00000000..7be7b23d --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_005.json @@ -0,0 +1,36 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:40:12.555932+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotAction", + "actionType": "ButtonWithAuthLink", + "description": "TestNotAction Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "FLU", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "NotActionable", + "cohortText": "In eli_427_cohort_1" + } + ], + "status": "NotActionable", + "statusText": "You should have the FLU vaccine", + "suitabilityRules": [ + { + "ruleCode": "AlreadyVaccinated", + "ruleText": "## You've had your RSV vaccination.", + "ruleType": "S" + } + ] + } + ], + "responseId": "36c8036a-3e35-40ec-9572-5f82f00e067a" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_006.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_006.json new file mode 100644 index 00000000..9340e64b --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-427_006.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:43:55.970331+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotEli", + "actionType": "", + "description": "TestNotEli Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "FLU", + "eligibilityCohorts": [ + { + "cohortCode": "eli_427_cohort_group_1", + "cohortStatus": "NotEligible", + "cohortText": "Not in eli_427_cohort_1" + } + ], + "status": "NotEligible", + "statusText": "We do not believe you can have it", + "suitabilityRules": [] + } + ], + "responseId": "d5f9af16-453e-45c5-947f-dc2de44d5109" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_001.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_001.json new file mode 100644 index 00000000..5b6e39a7 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_001.json @@ -0,0 +1,35 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T13:10:10.614854+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "elid_virtual_cohort", + "cohortStatus": "Actionable", + "cohortText": "In elid_virtual_cohort" + }, + { + "cohortCode": "elid_virtual_cohort_3", + "cohortStatus": "Actionable", + "cohortText": "In elid_virtual_cohort_3" + } + ], + "status": "Actionable", + "statusText": "You should have the RSV vaccine", + "suitabilityRules": [] + } + ], + "responseId": "09fe3425-cc1d-4d37-99c5-d65dc232cae4" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_002.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_002.json new file mode 100644 index 00000000..3f3ce31d --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_002.json @@ -0,0 +1,35 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T12:50:45.738791+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotEli", + "actionType": "", + "description": "TestNotEli Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "elid_virtual_cohort", + "cohortStatus": "NotEligible", + "cohortText": "Out elid_virtual_cohort" + }, + { + "cohortCode": "elid_virtual_cohort_2", + "cohortStatus": "NotEligible", + "cohortText": "Out elid_virtual_cohort_2" + } + ], + "status": "NotEligible", + "statusText": "We do not believe you can have it", + "suitabilityRules": [] + } + ], + "responseId": "a3e00f89-5be5-4413-aa58-c4e8116f89ef" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_003.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_003.json new file mode 100644 index 00000000..96e8c08b --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_003.json @@ -0,0 +1,46 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T13:23:05.834482+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestNotAction", + "actionType": "ButtonWithAuthLink", + "description": "TestNotAction Description", + "urlLabel": "", + "urlLink": "" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "elid_virtual_cohort", + "cohortStatus": "NotActionable", + "cohortText": "In elid_virtual_cohort" + }, + { + "cohortCode": "elid_virtual_cohort_2", + "cohortStatus": "NotActionable", + "cohortText": "In elid_virtual_cohort_2" + } + ], + "status": "NotActionable", + "statusText": "You should have the RSV vaccine", + "suitabilityRules": [ + { + "ruleCode": "AlreadyVaccinated", + "ruleText": "## You've had your RSV vaccination.", + "ruleType": "S" + }, + { + "ruleCode": "AlreadyVaccinated", + "ruleText": "## You've had your RSV vaccination.", + "ruleType": "S" + } + ] + } + ], + "responseId": "8dd952eb-a464-432b-9e14-9c08c4a993e8" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_005.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_005.json new file mode 100644 index 00000000..5235bc60 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_005.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:03:42.734055+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "rsv_eli_real_world", + "cohortStatus": "Actionable", + "cohortText": "In rsv_eli_real_world" + } + ], + "status": "Actionable", + "statusText": "You should have the RSV vaccine", + "suitabilityRules": [] + } + ], + "responseId": "ab6deb80-2ef6-41b8-b04c-8c0d235e0d42" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_006.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_006.json new file mode 100644 index 00000000..5235bc60 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_006.json @@ -0,0 +1,30 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:03:42.734055+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "rsv_eli_real_world", + "cohortStatus": "Actionable", + "cohortText": "In rsv_eli_real_world" + } + ], + "status": "Actionable", + "statusText": "You should have the RSV vaccine", + "suitabilityRules": [] + } + ], + "responseId": "ab6deb80-2ef6-41b8-b04c-8c0d235e0d42" +} diff --git a/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_007.json b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_007.json new file mode 100644 index 00000000..605ac519 --- /dev/null +++ b/tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-440_007.json @@ -0,0 +1,35 @@ +{ + "meta": { + "lastUpdated": "2025-09-16T14:03:42.734055+00:00" + }, + "processedSuggestions": [ + { + "actions": [ + { + "actionCode": "TestAction", + "actionType": "ButtonWithAuthLink", + "description": "TestAction Description", + "urlLabel": "Continue to booking", + "urlLink": "http://www.nhs.uk/book-rsv" + } + ], + "condition": "RSV", + "eligibilityCohorts": [ + { + "cohortCode": "rsv_eli_real_world", + "cohortStatus": "Actionable", + "cohortText": "In rsv_eli_real_world" + }, + { + "cohortCode": "elid_virtual_cohort_2", + "cohortStatus": "Actionable", + "cohortText": "In elid_virtual_cohort_2" + } + ], + "status": "Actionable", + "statusText": "You should have the RSV vaccine", + "suitabilityRules": [] + } + ], + "responseId": "ab6deb80-2ef6-41b8-b04c-8c0d235e0d42" +}