Skip to content

Commit

Permalink
POC-261: commit for gain losses (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Mutai authored May 18, 2023
1 parent d79172d commit bcc796e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/reporting-framework/json-reports/hiv-monthly-gains-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
"joinCondition": "c.person_id = p.person_id AND p.endDate = '{startingMonth}'"
}
},
{
"table": "etl.flat_patient_identifiers_v1",
"alias": "flat_identifiers",
"join": {
"type": "LEFT",
"joinCondition": "c.person_id = flat_identifiers.patient_id"
}
},
{
"table": "amrs.location",
"alias": "cl",
Expand Down Expand Up @@ -58,6 +66,21 @@
"alias": "start_month",
"column": "DATE_FORMAT(p.endDate,'%Y-%m')"
},
{
"type": "simple_column",
"alias": "ccc_number",
"column": "flat_identifiers.ccc"
},
{
"type": "simple_column",
"alias": "ovcid_id",
"column": "flat_identifiers.ovcid"
},
{
"type": "simple_column",
"alias": "upi_number",
"column": "flat_identifiers.nupi"
},
{
"type": "simple_column",
"alias": "end_month",
Expand Down
23 changes: 23 additions & 0 deletions app/reporting-framework/json-reports/hiv-monthly-losses-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
"joinCondition": "nl.location_id = n.location_id"
}
},
{
"table": "etl.flat_patient_identifiers_v1",
"alias": "flat_identifiers",
"join": {
"type": "LEFT",
"joinCondition": "c.person_id = flat_identifiers.patient_id"
}
},
{
"table": "amrs.location",
"alias": "cl",
Expand Down Expand Up @@ -61,6 +69,21 @@
"alias": "end_date",
"column": "DATE_FORMAT(n.endDate,'%Y-%m-%d')"
},
{
"type": "simple_column",
"alias": "ccc_number",
"column": "flat_identifiers.ccc"
},
{
"type": "simple_column",
"alias": "ovcid_id",
"column": "flat_identifiers.ovcid"
},
{
"type": "simple_column",
"alias": "upi_number",
"column": "flat_identifiers.nupi"
},
{
"type": "simple_column",
"alias": "start_month",
Expand Down

0 comments on commit bcc796e

Please sign in to comment.