-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tanzania-ministry-of-health-nacp' into merging/master-v1
- Loading branch information
Showing
75 changed files
with
2,519 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
opensrp-chw/src/main/assets/config/mother_champion-reporting-indicator-definitions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
indicators: | ||
- key: "b-1" | ||
description: "Idadi ya wateja wa PMTCT waliounganishwa kwenye kikundi/vikundi vya IGA and Ushauri Nasaha" | ||
indicatorQuery: " SELECT count(DISTINCT emcf.entity_id) as count | ||
from ec_mother_champion_followup emcf | ||
WHERE linked_to_psychosocial_group = 'yes' | ||
AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) = | ||
date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || | ||
'-' || | ||
substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || | ||
'-' || '01')" | ||
- key: "b-2" | ||
description: "Idadi ya wateja wapya wa PMTCT waliofuatiliwa na mama vinara na kuanza kutumia dawa" | ||
indicatorQuery: " SELECT count(DISTINCT emcf.entity_id) as count | ||
from ec_mother_champion_followup emcf | ||
WHERE visit_number = 0 | ||
AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) = | ||
date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || | ||
'-' || | ||
substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || | ||
'-' || '01')" | ||
- key: "b-3" | ||
description: "Idadi ya wateja wa PMTCT waliopotea kwenye matumizi ya dawa (LTF) na kurudishwa/kufuatiliwa na mama vinara" | ||
indicatorQuery: " SELECT count(DISTINCT epcf.entity_id) as count | ||
from ec_pmtct_community_feedback epcf | ||
WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) = | ||
date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || | ||
'-' || | ||
substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || | ||
'-' || '01')" | ||
- key: "b-4" | ||
description: "Idadi ya vipindi alivyofundisha mama kinara/vinara kwa wateja wa PMTCT" | ||
indicatorQuery: " SELECT count(DISTINCT id) as count | ||
from ec_sbcc es | ||
WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) = | ||
date(substr(es.sbcc_date, 7, 4) || '-' || substr(es.sbcc_date, 4, 2) || '-' || '01')" | ||
- key: "b-5" | ||
description: "Idadi ya wateja wa PMTCT walioelimishwa na mama kinara/vinara" | ||
indicatorQuery: " SELECT SUM(participants_number) as count | ||
from ec_sbcc es | ||
WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) = | ||
date(substr(es.sbcc_date, 7, 4) || '-' || substr(es.sbcc_date, 4, 2) || '-' || '01')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
opensrp-chw/src/main/java/org/smartregister/chw/activity/MotherChampionReportsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.smartregister.chw.activity; | ||
|
||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import org.smartregister.chw.R; | ||
|
||
public class MotherChampionReportsActivity extends CBHSReportsActivity { | ||
@Override | ||
public void onClick(View v) { | ||
int id = v.getId(); | ||
if (id == R.id.cbhs_monthly_summary) { | ||
MotherChampionReportsViewActivity.startMe(this, "mother-champion-report", reportPeriod); | ||
} | ||
} | ||
|
||
@Override | ||
public void setUpToolbar() { | ||
super.setUpToolbar(); | ||
TextView title = findViewById(R.id.toolbar_title); | ||
title.setText(R.string.mother_champion_reports); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...p-chw/src/main/java/org/smartregister/chw/activity/MotherChampionReportsViewActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.smartregister.chw.activity; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
|
||
import org.smartregister.chw.R; | ||
import org.smartregister.chw.util.Constants; | ||
|
||
public class MotherChampionReportsViewActivity extends ChwReportsViewActivity { | ||
public static void startMe(Activity activity, String reportPath, String reportDate) { | ||
Intent intent = new Intent(activity, MotherChampionReportsViewActivity.class); | ||
intent.putExtra(ARG_REPORT_PATH, reportPath); | ||
intent.putExtra(ARG_REPORT_DATE, reportDate); | ||
intent.putExtra(ARG_REPORT_TITLE, R.string.mother_champion_reports); | ||
intent.putExtra(ARG_REPORT_TYPE, Constants.ReportConstants.ReportTypes.MOTHER_CHAMPION_REPORT); | ||
activity.startActivity(intent); | ||
} | ||
} |
Oops, something went wrong.