Skip to content

Commit

Permalink
Fix report labelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga committed Jan 24, 2024
1 parent 07e18ad commit dcc3156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ UNION ALL

-- 80% (of women aged 30 to 49 years with CCS form filled out for the first time) were VIA positive, and referred
SELECT
'80% (of registered patients with a Follow-up date) were given medication with at least a 3 weeks prescription' AS 'Indicator',
'80% (of registered women aged 30 to 49 years that have had their CCS screening for the first time) were VIA positive and referred' AS 'Indicator',
CASE
WHEN SUM(CASE
WHEN o_v_p.value_coded = (
Expand Down Expand Up @@ -125,9 +125,9 @@ WHERE

UNION ALL

-- 80% have a Follow-up date and were given medication at least 3 weeks ago
-- 80% have a Follow-up date and were given medication at least 4 weeks ago
SELECT
'80% (of registered women aged 30 to 49 years that have had their CCS screening for the first time) were VIA positive and referred' AS 'Indicator',
'80% (of registered patients with a Follow-up date) were given medication with at least a 4 weeks prescription' AS 'Indicator',
CASE
WHEN SUM(CASE
WHEN medication_table.medication_duration_in_weeks >= 4 THEN 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void testReport() throws Exception {
assertEquals("8", row.getColumnValue("Value"));
indicator2 = true;
}
if (row.getColumnValue("Indicator").equals("80% (of registered patients with a Follow-up date) were given medication with at least a 3 weeks prescription")) {
if (row.getColumnValue("Indicator").equals("80% (of registered patients with a Follow-up date) were given medication with at least a 4 weeks prescription")) {
assertEquals("Yes", row.getColumnValue("Value"));
indicator4 = true;
}
Expand Down

0 comments on commit dcc3156

Please sign in to comment.