Skip to content

Commit

Permalink
POC-583: Stop display of the Reminder To Start TPT when the Client is…
Browse files Browse the repository at this point in the history
… on TB Treatment (#1347)
  • Loading branch information
henrykorir authored Nov 16, 2023
1 parent c8ab41b commit 00029c2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions app/reporting-framework/json-reports/clinical-reminder-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,36 @@
"alias": "latest_CD4_Date",
"column": "ls.cd4_1_date"
},
{
"type": "simple_column",
"alias": "ipt_start_date",
"column": "ls.ipt_start_date"
},
{
"type": "simple_column",
"alias": "ipt_stop_date",
"column": "ls.ipt_stop_date"
},
{
"type": "simple_column",
"alias": "on_ipt",
"column": "ls.on_ipt"
},
{
"type": "simple_column",
"alias": "ipt_completion_date",
"column": "ls.ipt_completion_date"
},
{
"type": "simple_column",
"alias": "tb_tx_start_date",
"column": "ls.tb_tx_start_date"
},
{
"type": "simple_column",
"alias": "tb_tx_end_date",
"column": "ls.tb_tx_end_date"
},
{
"type": "simple_column",
"alias": "on_tb_tx",
Expand Down
3 changes: 2 additions & 1 deletion service/patient-reminder.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ function TPTReminders(data) {
if (
calculateAge(data.birth_date) >= 1 &&
!data.ipt_start_date &&
!data.on_tb_tx
!data.on_tb_tx &&
!(data.tb_tx_start_date && !data.tb_tx_end_date)
) {
reminders.push({
message:
Expand Down

0 comments on commit 00029c2

Please sign in to comment.