diff --git a/go-app-ussd_tb_check.js b/go-app-ussd_tb_check.js index cb044ff7..1a72b6d3 100644 --- a/go-app-ussd_tb_check.js +++ b/go-app-ussd_tb_check.js @@ -1248,7 +1248,7 @@ go.app = function () { "or night sweats visit your nearest clinic." ); - if (risk == "high") { + if (risk == "high" || risk == "moderate") { text = $( [ "Your replies to the questions show you need a TB test this week.", @@ -1261,19 +1261,6 @@ go.app = function () { tbcheck_id: tbcheck_id }); } - else if (risk == "moderate") { - text = $( - [ - "You don't need a TB test at present.", - "", - "If you develop cough, fever, weight loss or night sweats visit your nearest clinic." - ].join("\n") - ).context({ - arm: arm, - consent: consent, - tbcheck_id: tbcheck_id - }); - } else if (answers.state_exposure == "not_sure") { text = $( "Check if those you live with are on TB treatment. If you don't know " + diff --git a/src/ussd_tb_check.js b/src/ussd_tb_check.js index 5c9938ef..4d6e6687 100644 --- a/src/ussd_tb_check.js +++ b/src/ussd_tb_check.js @@ -1131,7 +1131,7 @@ go.app = function () { "or night sweats visit your nearest clinic." ); - if (risk == "high") { + if (risk == "high" || risk == "moderate") { text = $( [ "Your replies to the questions show you need a TB test this week.", @@ -1144,19 +1144,6 @@ go.app = function () { tbcheck_id: tbcheck_id }); } - else if (risk == "moderate") { - text = $( - [ - "You don't need a TB test at present.", - "", - "If you develop cough, fever, weight loss or night sweats visit your nearest clinic." - ].join("\n") - ).context({ - arm: arm, - consent: consent, - tbcheck_id: tbcheck_id - }); - } else if (answers.state_exposure == "not_sure") { text = $( "Check if those you live with are on TB treatment. If you don't know " + diff --git a/test/ussd_tb_check.test.js b/test/ussd_tb_check.test.js index ebc6b78d..26ecbd9e 100644 --- a/test/ussd_tb_check.test.js +++ b/test/ussd_tb_check.test.js @@ -2591,9 +2591,9 @@ describe("ussd_tb_check app", function () { .check.interaction({ state: "state_show_results", reply: [ - "You don't need a TB test at present.", + "Your replies to the questions show you need a TB test this week.", "", - "If you develop cough, fever, weight loss or night sweats visit your nearest clinic." + "Go to your clinic for a free TB test." ].join("\n"), char_limit: 160, })