Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions data/configs/storyTestConfigs/AUTO_ELI-727-EMPTY-STATUS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"CampaignConfig": {
"ID": "Story_Campaign_Config_ID",
"Version": 1,
"Name": "Status Text Override Campaign Config - Empty Status Text",
"Type": "V",
"Target": "COVID",
"Manager": [
"example@nhs.net"
],
"Approver": [
"example@nhs.net"
],
"Reviewer": [
"example@nhs.net"
],
"IterationFrequency": "X",
"IterationType": "O",
"IterationTime": "07:00:00",
"StartDate": "<<DATE_DAY_-7>>",
"EndDate": "<<DATE_DAY_7>>",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"DefaultCommsRouting": "DEFAULT_CONFIG_LEVEL_ROUTING",
"Iterations": [
{
"ID": "8ecb742b-45ea-4f0d-8e2e-9c2feb1e46d1",
"DefaultCommsRouting": "DEFAULT_ACTIONABLE_ROUTING",
"DefaultNotActionableRouting": "DEFAULT_NOTACTIONABLE_ROUTING",
"DefaultNotEligibleRouting": "",
"Version": 1,
"Name": "Status Text Override Campaign Config - Iteration",
"IterationDate": "<<DATE_DAY_-1>>",
"IterationNumber": 1,
"CommsType": "I",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"Type": "O",
"StatusText": {
"NotEligible": "NotEligible - Iteration Status Text",
"NotActionable": "NotActionable - Iteration Status Text",
"Actionable": ""
},
"IterationCohorts": [
{
"CohortLabel": "cohort_1",
"CohortGroup": "cohort_1_group",
"PositiveDescription": "are in cohort 1 group",
"NegativeDescription": "are NOT in cohort 1 group",
"Priority": 10
}
],
"IterationRules": [
{
"Type": "F",
"Name": "Filter if already vaccinated",
"Description": "Filter if already vaccinated",
"Operator": "is_not_null",
"Comparator": "",
"AttributeTarget": "COVID",
"AttributeLevel": "TARGET",
"AttributeName": "LAST_SUCCESSFUL_DATE",
"Priority": 100
},
{
"Type": "S",
"Name": "TriggerSRuleViaICB",
"Description": "You have been made NotActionable by this S rule",
"Priority": 500,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_2",
"RuleStop": "Y"
},
{
"Type": "S",
"Name": "TriggerSRuleViaICB_2",
"Description": "You have been made NotActionable by this S other rule",
"Priority": 510,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_3",
"RuleStop": "Y"
},
{
"Type": "R",
"Name": "Trigger the Override Text if Actionable",
"Description": "If person has the ICB value Scenario_1",
"Priority": 1000,
"Operator": "=",
"Comparator": "Scenario_1",
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"CommsRouting": "STATUS_TEXT_OVERRIDE_ACTIONABLE|OTHER_NORMAL_ACTION"
},
{
"Type": "Y",
"Name": "Trigger the Override Text if NotActionable",
"Description": "If person has the ICB value Scenario_2",
"Priority": 3000,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_2",
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ACTIONABLE"
},
{
"Type": "X",
"Name": "Trigger the Override Text if NotEligible",
"Description": "If they are a member of one of the cohorts in the Comparator",
"Priority": 4000,
"AttributeLevel": "COHORT",
"AttributeName": "COHORT_LABEL",
"Operator": "MemberOf",
"Comparator": "covid_16+_immunosuppression,covid_under16_immunosuppression",
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE|OTHER_NORMAL_ACTION"
}
],
"ActionsMapper": {
"OTHER_NORMAL_ACTION": {
"ExternalRoutingCode": "OtherNormalAction",
"ActionDescription": "Other Normal Action",
"ActionType": "InfoText",
"UrlLink": null,
"UrlLabel": ""
},
"DEFAULT_CONFIG_LEVEL_ROUTING": {
"ExternalRoutingCode": "CONFIG_LEVEL_ROUTING_ExternalRoutingCode",
"ActionDescription": "CONFIG_LEVEL_ROUTING_ActionDescription",
"ActionType": "CONFIG_LEVEL_ROUTING_UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "CONFIG_LEVEL_ROUTING_UrlLabel"
},
"DEFAULT_ACTIONABLE_ROUTING": {
"ExternalRoutingCode": "DEFAULT_ACTIONABLE_ExternalRoutingCode",
"ActionDescription": "DEFAULT_ACTIONABLE_ActionDescription",
"ActionType": "DEFAULT_ACTIONABLE__UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "DEFAULT_ACTIONABLE__UrlLabel"
},
"DEFAULT_NOTACTIONABLE_ROUTING": {
"ExternalRoutingCode": "DEFAULT_NOTACTIONABLE_ExternalRoutingCode",
"ActionDescription": "DEFAULT_NOTACTIONABLE_ActionDescription",
"ActionType": "DEFAULT_NOTACTIONABLE_UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "DEFAULT_NOTACTIONABLE_UrlLabel"
},
"STATUS_TEXT_OVERRIDE_ACTIONABLE": {
"ExternalRoutingCode": "StatusTextOverrideActionable",
"ActionDescription": "Status Text Override Actionable",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/actionable_overide/",
"UrlLabel": "actionable_overide"
},
"STATUS_TEXT_OVERRIDE_NOT_ACTIONABLE": {
"ExternalRoutingCode": "StatusTextOverrideNotActionable",
"ActionDescription": "Status Text Override Not Actionable",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/notactionable_overide/",
"UrlLabel": "notactionable_overide"
},
"STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE": {
"ExternalRoutingCode": "StatusTextOverrideNotEligible",
"ActionDescription": "Status Text Override Not Eligible",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/noteligible_overide/",
"UrlLabel": "noteligible_overide"
}
}
}
]
}
}
175 changes: 175 additions & 0 deletions data/configs/storyTestConfigs/AUTO_ELI-727.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"CampaignConfig": {
"ID": "Story_Campaign_Config_ID",
"Version": 1,
"Name": "Status Text Override Campaign Config",
"Type": "V",
"Target": "COVID",
"Manager": [
"example@nhs.net"
],
"Approver": [
"example@nhs.net"
],
"Reviewer": [
"example@nhs.net"
],
"IterationFrequency": "X",
"IterationType": "O",
"IterationTime": "07:00:00",
"StartDate": "<<DATE_DAY_-7>>",
"EndDate": "<<DATE_DAY_7>>",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"DefaultCommsRouting": "DEFAULT_CONFIG_LEVEL_ROUTING",
"Iterations": [
{
"ID": "8ecb742b-45ea-4f0d-8e2e-9c2feb1e46d1",
"DefaultCommsRouting": "DEFAULT_ACTIONABLE_ROUTING",
"DefaultNotActionableRouting": "DEFAULT_NOTACTIONABLE_ROUTING",
"DefaultNotEligibleRouting": "",
"Version": 1,
"Name": "Status Text Override Campaign Config - Iteration",
"IterationDate": "<<DATE_DAY_-1>>",
"IterationNumber": 1,
"CommsType": "I",
"ApprovalMinimum": 0,
"ApprovalMaximum": 0,
"Type": "O",
"StatusText": {
"NotEligible": "NotEligible - Iteration Status Text",
"NotActionable": "NotActionable - Iteration Status Text",
"Actionable": "Actionable - Iteration Status Text"
},
"IterationCohorts": [
{
"CohortLabel": "cohort_1",
"CohortGroup": "cohort_1_group",
"PositiveDescription": "are in cohort 1 group",
"NegativeDescription": "are NOT in cohort 1 group",
"Priority": 10
}
],
"IterationRules": [
{
"Type": "F",
"Name": "Filter if already vaccinated",
"Description": "Filter if already vaccinated",
"Operator": "is_not_null",
"Comparator": "",
"AttributeTarget": "COVID",
"AttributeLevel": "TARGET",
"AttributeName": "LAST_SUCCESSFUL_DATE",
"Priority": 100
},
{
"Type": "S",
"Name": "TriggerSRuleViaICB",
"Description": "You have been made NotActionable by this S rule",
"Priority": 500,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_2",
"RuleStop": "Y"
},
{
"Type": "S",
"Name": "TriggerSRuleViaICB_2",
"Description": "You have been made NotActionable by this S other rule",
"Priority": 510,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_3",
"RuleStop": "Y"
},
{
"Type": "R",
"Name": "Trigger the Override Text if Actionable",
"Description": "If person has the ICB value Scenario_1",
"Priority": 1000,
"Operator": "=",
"Comparator": "Scenario_1",
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"CommsRouting": "STATUS_TEXT_OVERRIDE_ACTIONABLE|OTHER_NORMAL_ACTION"
},
{
"Type": "Y",
"Name": "Trigger the Override Text if NotActionable",
"Description": "If person has the ICB value Scenario_2",
"Priority": 3000,
"AttributeLevel": "PERSON",
"AttributeName": "ICB",
"Operator": "=",
"Comparator": "Scenario_2",
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ACTIONABLE"
},
{
"Type": "X",
"Name": "Trigger the Override Text if NotEligible",
"Description": "If they are a member of one of the cohorts in the Comparator",
"Priority": 4000,
"AttributeLevel": "COHORT",
"AttributeName": "COHORT_LABEL",
"Operator": "MemberOf",
"Comparator": "covid_16+_immunosuppression,covid_under16_immunosuppression",
"CommsRouting": "STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE|OTHER_NORMAL_ACTION"
}
],
"ActionsMapper": {
"OTHER_NORMAL_ACTION": {
"ExternalRoutingCode": "OtherNormalAction",
"ActionDescription": "Other Normal Action",
"ActionType": "InfoText",
"UrlLink": null,
"UrlLabel": ""
},
"DEFAULT_CONFIG_LEVEL_ROUTING": {
"ExternalRoutingCode": "CONFIG_LEVEL_ROUTING_ExternalRoutingCode",
"ActionDescription": "CONFIG_LEVEL_ROUTING_ActionDescription",
"ActionType": "CONFIG_LEVEL_ROUTING_UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "CONFIG_LEVEL_ROUTING_UrlLabel"
},
"DEFAULT_ACTIONABLE_ROUTING": {
"ExternalRoutingCode": "DEFAULT_ACTIONABLE_ExternalRoutingCode",
"ActionDescription": "DEFAULT_ACTIONABLE_ActionDescription",
"ActionType": "DEFAULT_ACTIONABLE__UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "DEFAULT_ACTIONABLE__UrlLabel"
},
"DEFAULT_NOTACTIONABLE_ROUTING": {
"ExternalRoutingCode": "DEFAULT_NOTACTIONABLE_ExternalRoutingCode",
"ActionDescription": "DEFAULT_NOTACTIONABLE_ActionDescription",
"ActionType": "DEFAULT_NOTACTIONABLE_UrlLabel",
"UrlLink": "https://www.nhs.uk/default_url/",
"UrlLabel": "DEFAULT_NOTACTIONABLE_UrlLabel"
},
"STATUS_TEXT_OVERRIDE_ACTIONABLE": {
"ExternalRoutingCode": "StatusTextOverrideActionable",
"ActionDescription": "Status Text Override Actionable",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/actionable_overide/",
"UrlLabel": "actionable_overide"
},
"STATUS_TEXT_OVERRIDE_NOT_ACTIONABLE": {
"ExternalRoutingCode": "StatusTextOverrideNotActionable",
"ActionDescription": "Status Text Override Not Actionable",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/notactionable_overide/",
"UrlLabel": "notactionable_overide"
},
"STATUS_TEXT_OVERRIDE_NOT_ELIGIBLE": {
"ExternalRoutingCode": "StatusTextOverrideNotEligible",
"ActionDescription": "Status Text Override Not Eligible",
"ActionType": "norender_StatusTextOverride",
"UrlLink": "https://www.nhs.uk/noteligible_overide/",
"UrlLabel": "noteligible_overide"
}
}
}
]
}
}
35 changes: 35 additions & 0 deletions data/dynamoDB/storyTestData/AUTO_ELI-727_01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"scenario_name": "ELI-727 - Actionable - Status Override - includeActions Y",
"request_headers": {
"nhs-login-nhs-number": "9000072701",
"nhsd-End-User-Organisation-ods": "elid_automation_status_text_override"
},
"query_params": {
"includeActions": "Y"
},
"config_filenames": [
"AUTO_ELI-727.json"
],
"data": [
{
"NHS_NUMBER": "9000072701",
"ATTRIBUTE_TYPE": "PERSON",
"DATE_OF_BIRTH": "<<DATE_AGE_75>>",
"ICB": "Scenario_1"
},
{
"NHS_NUMBER": "9000072701",
"ATTRIBUTE_TYPE": "COHORTS",
"COHORT_MEMBERSHIPS": [
{
"COHORT_LABEL": "cohort_1",
"DATE_JOINED": "20240101"
}
]
},
{
"NHS_NUMBER": "9000072701",
"ATTRIBUTE_TYPE": "COVID"
}
]
}
Loading
Loading