Skip to content

Commit

Permalink
HIV-566: Add Client Due for Viral Load on Differenciated Report (AMPA…
Browse files Browse the repository at this point in the history
…TH#991)

Co-authored-by: Felix Maiko <[email protected]>
  • Loading branch information
jecihjoy and maikofelix47 authored Oct 8, 2020
1 parent bdcc95b commit 6725868
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
"expressionOptions": {
"expression": "count(distinct concat(dcp.enrolled_in_dc_active, dcp.person_id))"
}
},
{
"type": "derived_column",
"alias": "enrolled_and_vl_due",
"expressionType": "simple_expression",
"expressionOptions": {
"expression": "count(distinct concat(dcp.enrolled_and_vl_due, dcp.person_id))"
}
}
],
"filters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
"expression": "dcr.enrolled_in_dc"
}
},
{
"type": "derived_column",
"alias": "enrolled_and_vl_due",
"expressionType": "simple_expression",
"expressionOptions": {
"expression": "if(dcr.enrolled_in_dc = 1 and dcr.patients_due_for_vl = 1, 1, 0)"
}
},
{
"type": "simple_column",
"alias": "vl_1",
Expand Down

0 comments on commit 6725868

Please sign in to comment.