diff --git a/opensrp-bidan/src/main/AndroidManifest.xml b/opensrp-bidan/src/main/AndroidManifest.xml
index 05a5acf..7b79764 100644
--- a/opensrp-bidan/src/main/AndroidManifest.xml
+++ b/opensrp-bidan/src/main/AndroidManifest.xml
@@ -15,6 +15,7 @@
+
+
+
+
+
@@ -59,9 +74,6 @@
-
@@ -116,16 +128,7 @@
-
-
-
-
-
-
diff --git a/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv b/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv
deleted file mode 100644
index 4113b95..0000000
--- a/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv
+++ /dev/null
@@ -1,68 +0,0 @@
-Under 5 Clinic Attendance,,,,,,,,,
-01,CHN1-005,Attendance child health < 12 months (male),n0uHub5ubqH,Number of male children aged < 12 months who attended a clinic this month.,"COUNT of male children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-02,CHN1-010,Attendance child health < 12 months (female),IWwblgpMxiS,Number of female children aged < 12 months who attended a clinic this month.,"COUNT of female children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-03,CHN1-011,Attendance child health < 12 months (total),C8vB7dH9ab4,Number of total children aged < 12 months who attended a clinic this month.,"[CHN1-005] + [CHN1-010][Non-editable in the form]",Integer,NA,Monthly,
-04,CHN1-015,Attendance child health 12-59 months (male),fl4bPFJRI5j,Number of male children aged 12 to 59 months who attended a clinic this month,"COUNT of male children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-05,CHN1-020,Attendance child health 12-59 months (female),ZDSUD6VHnoh,Number of female children aged 12 to 59 months who attended a clinic this month,"COUNT of female children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-06,CHN1-021,Attendance child health 12-59 months (total),sZQXZ069Vgj,Number of Total children aged 12 to 59 months who attended clinic this month,"[CHN1-015] + [CHN1-020][Non-editable in the form]",Integer,NA,Monthly,
-07,CHN1-025,Attendance child health (total),YAY7yKAkSvq,Number of total children < 5 who attended a clinic this month ,"[CHN1-011] + [CHN1-021][Non-editable in the form]",Integer,NA,Monthly,
-08,CHN1-030,Attendance from outside catchment area,WFxN7txijYV,Number of total children who attended clinic and are not part of clinic's catchment area,"COUNT Number of total children who attended clinic and are not part of clinic's catchment area (i.e., total number of out of catchment area form submissions that month)",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-Growth Monitoring and Nutrition,,,,,,,,,
-09,CHN2-005,Child weighed 0-23 months,adkGrSGNt3L,Number of total children weighed aged 0-23 months who attended clinic this month,COUNT number of children aged 0-23 [Date_Birth] months who had at least 1 weight encounter at this clinic during the month,Integer,"Growth Monitoring, Out of Area Service",Monthly,Some children may be weighed twice if they come for a another visit during the month due for example if they was a stock out on the earlier visit. Only one count should be recorded
-10,CHN2-010,Child weighed 24-59 months,sSxqU6qPyXr,Number of total children weighed aged 24-59 months who attended clinic this month,COUNT number of children aged 24-59 months [Date_Birth] who had = 1 weight encounter at this clinic,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-11,CHN2-015,Total child weighed,xIGHv5CY2fF,Number of total children weighed aged < 5 years who attended clinic this month,"[CHN2-005] + [CHN2-010][Non-editable in the form]",Integer,NA,Monthly,
-12,CHN2-020,Not gaining weight 0-23 months,H5cadfqRh7I,Number of children aged 0-23 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 0-23 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-13,CHN2-025,Not gaining weight 24-59 months,xWDkbLq9kji,Number of children aged 24-59 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 24-59 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-14,CHN2-030,Total not gaining weight age < five years,e10sC5c4pRz,Number of total children aged < five years who were weighed this month and did not gain >= 100g from the last weigh-in.,"[CHN2-020] + [CHN2-025][Non-editable in the form]",Integer,NA,Monthly,
-15,CHN2-035,Weight between -2Z & -3Z scores 0-23 months,lcpx7xdVC3z,Number of total children age 0-23 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-16,CHN2-040,Weight between -2Z & -3Z scores 24-59 months,hi9sRtkzimM,Number of total children age 24-59 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-17,CHN2-041,Weight between -2Z & -3Z scores < five years,WOZUqhR5W37,Number of total children age < 5 years whose weight is between -2Z and -3Z scores,"[CHN2-035] + [CHN2-040][Non-editable in the form]",Integer,NA,Monthly,
-18,CHN2-045,Weight below -3Z scores 0-23 months,LpkrzZezPhP,Number of total children age 0-23 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-19,CHN2-050,Weight below -3Z scores 24-59 months,AzLJv6qTtPO,Number of total children age 24-59 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-20,CHN2-051,Total weight below -3Z scores < five years,OM9x7oS2qke,Number of total children age < 5 years whose weight below -3Z scores,"[CHN2-045] + [CHN2-050][Non-editable in the form]",Integer,NA,Monthly,
-21,CHN2-055,Weight above 2Z scores 0-23 months,gdrQ69fCF8B,Number of total children age 0-23 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-22,CHN2-060,Weight above 2Z scores 24-59 months,ke26q8KPQPM,Number of total children age 24-59 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-23,CHN2-061,Total weight above 2Z scores < five years,Yi4grVdr9Q5,Number of total children age < 5 years whose weight is above 2Z scores,"[CHN-055] + [CHN-060][Non-editable in the form]",Integer,NA,Monthly,
-"Vitamin A, Deworming, and ITNs",,,,,,,,,
-24,CHN2-065,Vitamin A supplement to infants and children 6-11 months,DSbbltBORY3,Number of children age 6-11 months who received vitamin A at this facility in this month,COUNT Number of children age 6-11 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly,
-25,CHN2-070,Vitamin A supplement to infants and children 12-59 months,JfY9vBHsyzF,Number of children age 12-59 months who received vitamin A at this facility in this month,COUNT Number of children age 12-59 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly,
-26,CHN2-075,Deworming dose 12-59 months,B8nBT4kGhtB,Number of children age 12-59 months who received a deworming dose at this facility in this month ,COUNT Number of children age 12-59 months [Date_Birth] who received a deworming dose [Deworming_Provided] at this facility in this month [Deworming_Provided_Date],Integer,Deworming,Monthly,
-27,CHN2-080,Children who received insecticide treated net,G4vWZAJ0uz7,Number of children who received insecticide treated nets at this facility in this month ,COUNT number of children who received insecticide treated nets [ITN_Provided] at this facility in this month [ITN_Provided_Date],Integer,ITN,Monthly,
-Immunisation,,,,,,,,,
-28,CHN3-005,BCG dose (< 1 year) at the facility,ZTeQmMrVmNR,Number of children < one year who received BCG dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-29,CHN3-005-O,BCG dose (< 1 year) at outreach,,Number of children < one year who received BCG dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-30,CHN3-010,OPV 0 (< 1 year) at facility ,rwNWKJC4dIO,Number of children < one year who received OPV0 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV0 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-31,CHN3-010-O,OPV 0 (< 1 year) at outreach,,Number of children < one year who received OPV0 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 0 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-32,CHN3-015,OPV 1 (< 1 year) at facility ,J3Kd9wHj7mR,Number of children < one year who received OPV1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-33,CHN3-015-O,OPV 1 (< 1 year) at outreach,,Number of children < one year who received OPV1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 [Name_ Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-34,CHN3-020,OPV 2 (< 1 year) at facility ,Jbxssr389B6,Number of children < one year who received OPV2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-35,CHN3-020-O,OPV 2 (< 1 year) at outreach,,Number of children < one year who received OPV2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-36,CHN3-025,OPV 3 (< 1 year) at facility ,dqsYPg0F8DJ,Number of children < one year who received OPV3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-37,CHN3-025-O,OPV 3 (< 1 year) at outreach,,Number of children < one year who received OPV3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-38,CHN3-027,IPV (< 1 year) at facility,D2pqQ1bux6B,Number of children < one year who received IPV dose at this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at this facility in this month ,Integer,NA,Monthly,
-39,CHN3-027-O,IPV (< 1 year) at outreach,RAbXk70XDMq,Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,Integer,NA,Monthly,
-40,CHN3-030,OPV 4 (< 1 year) at facility ,poPXN7Wn3RL,Number of children < one year who received OPV4 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-41,CHN3-030-O,OPV 4 (< 1 year) at outreach,,Number of children < one year who received OPV4 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-42,CHN3-035,DPT-Hib-HepB 1 (< 1 year) at facility,N7VEEjo8AdV,Number of children < one year who received DPT-Hib+HepB 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-43,CHN3-035-O,DPT-Hib-HepB 1 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-44,CHN3-040,DPT-Hib-HepB 2 (< 1 year) at facility,R2JLWtup2XR,Number of children < one year who received DPT-Hib+HepB 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-45,CHN3-040-O,DPT-Hib-HepB 2 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-46,CHN3-045,DPT-Hib-HepB 3 (< 1 year) at facility,ujEvTSZ0Wvn,Number of children < one year who received DPT-Hib+HepB 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-47,CHN3-045-O,DPT-Hib-HepB 3 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-48,CHN3-050,PCV 1 (< 1 year) at facilty,dPpDhpO7GpB,Number of children < one year who received PCV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-49,CHN3-050-O,PCV 1 (< 1 year) at outreach,,Number of children < one year who received PCV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-50,CHN3-055,PCV 2 (< 1 year) at facilty,AU3Zp03Atnf,Number of children < one year who received PCV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-51,CHN3-055-O,PCV 2 (< 1 year) at outreach,,Number of children < one year who received PCV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-52,CHN3-060,PCV 3 (< 1 year) at facility,K5XarM6QLxq,Number of children < one year who received PCV 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-53,CHN3-060-O,PCV 3 (< 1 year) at outreach,,Number of children < one year who received PCV 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-54,CHN3-065,RV 1 (< 1 year) at facility,ziezVvnYWj0,Number of children < one year who received RV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-55,CHN3-065-O,RV 1 (< 1 year) at outreach,,Number of children < one year who received RV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-56,CHN3-070,RV 2 (< 1 year) at facility,dpKLNY9JjRR,Number of children < one year who received RV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-57,CHN3-070-O,RV 2 (< 1 year) at outreach,,Number of children < one year who received RV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-58,CHN3-075,Measles/MR 1 (< 1 year) at facility,zIM9ehVMkNW,Number of children < one year who received Measles/ MR 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles / MR 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-59,CHN3-075-O,Measles/MR 1 (< 1 year) at outreach,,Number of children < one year who received Measles/ MR dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles/ MR 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-60,CHN3-080,Fully immunised (< 1 year) at facility,dzllAar6RrI,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at this facility ",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-61,CHN3-080-O,Fully immunised (< 1 year) at outreach,,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at outreach conducted by this facility",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-62,CHN3-085,Measles/MR 2 (at 18 months) at facility,sqfX5MniMIH,Number of children at 18 months who received Measles/ MR 2 dose at this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-63,CHN3-085-O,Measles/MR 2 (at 18 months) at outreach,,Number of children at 18 months who received Measles/ MR 2 dose at outreach conducted by this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-64,CHN3-090,Number of days fridge non-functional,FGJcw1TCM9D,Number of days during the month that vaccine storage fridge was not functioning ,MANUAL ENTRY Number of days during the month that vaccine storage fridge was not functioning ,Integer,NA,Monthly,
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java
index d793338..78aba49 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java
@@ -1,14 +1,35 @@
package org.smartregister.bidan.activity;
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.annotation.StringRes;
import android.support.design.widget.NavigationView;
import android.support.design.widget.Snackbar;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.ActionBarDrawerToggle;
+import android.text.TextUtils;
import android.view.MenuItem;
-
+import android.view.View;
+import android.widget.TextView;
+
+import org.joda.time.DateTime;
+import org.joda.time.Days;
+import org.joda.time.Hours;
+import org.joda.time.Minutes;
+import org.joda.time.Seconds;
+import org.smartregister.Context;
+import org.smartregister.bidan.R;
+import org.smartregister.bidan.application.BidanApplication;
import org.smartregister.bidan.receiver.SyncStatusBroadcastReceiver;
+import org.smartregister.bidan.service.intent.SyncIntentService;
+import org.smartregister.bidan.sync.ECSyncUpdater;
import org.smartregister.domain.FetchStatus;
import org.smartregister.provider.SmartRegisterClientsProvider;
import org.smartregister.view.activity.SecuredNativeSmartRegisterActivity;
+import java.util.Calendar;
+
/**
* Created by sid-tech on 11/14/17.
*/
@@ -19,6 +40,42 @@ public class BaseRegisterActivity extends SecuredNativeSmartRegisterActivity
public static final String IS_REMOTE_LOGIN = "is_remote_login";
private Snackbar syncStatusSnackbar;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main_bidan);
+
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+
+ BaseActivityToggle toggle = new BaseActivityToggle(this, drawer,
+ R.string.navigation_drawer_open, R.string.navigation_drawer_close) {
+
+ public void onDrawerClosed(View view) {
+ super.onDrawerClosed(view);
+ }
+
+ public void onDrawerOpened(View drawerView) {
+ super.onDrawerOpened(drawerView);
+
+ }
+ };
+
+ drawer.setDrawerListener(toggle);
+ toggle.syncState();
+
+ NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
+ navigationView.setNavigationItemSelectedListener(this);
+
+ Bundle extras = this.getIntent().getExtras();
+ if (extras != null) {
+ boolean isRemote = extras.getBoolean(IS_REMOTE_LOGIN);
+ if (isRemote) {
+ updateFromServer();
+ }
+ }
+ }
+
+
@Override
public boolean onNavigationItemSelected(MenuItem menuItem) {
return false;
@@ -58,4 +115,82 @@ protected void onInitialization() {
public void startRegistration() {
}
+
+ private void updateFromServer() {
+ startService(new Intent(getApplicationContext(), SyncIntentService.class));
+ }
+
+
+
+ private void updateLastSyncText() {
+ NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
+ if (navigationView != null && navigationView.getMenu() != null) {
+ TextView syncMenuItem = ((TextView) navigationView.findViewById(R.id.nav_synctextview));
+ if (syncMenuItem != null) {
+ String lastSync = getLastSyncTime();
+
+ if (!TextUtils.isEmpty(lastSync)) {
+ lastSync = " " + String.format(getString(R.string.last_sync), lastSync);
+ }
+ syncMenuItem.setText(String.format(getString(R.string.sync_), lastSync));
+ }
+ }
+ }
+
+ private String getLastSyncTime() {
+ String lastSync = "";
+ long milliseconds = ECSyncUpdater.getInstance(this).getLastCheckTimeStamp();
+ if (milliseconds > 0) {
+ DateTime lastSyncTime = new DateTime(milliseconds);
+ DateTime now = new DateTime(Calendar.getInstance());
+ Minutes minutes = Minutes.minutesBetween(lastSyncTime, now);
+ if (minutes.getMinutes() < 1) {
+ Seconds seconds = Seconds.secondsBetween(lastSyncTime, now);
+ lastSync = seconds.getSeconds() + "s";
+ } else if (minutes.getMinutes() >= 1 && minutes.getMinutes() < 60) {
+ lastSync = minutes.getMinutes() + "m";
+ } else if (minutes.getMinutes() >= 60 && minutes.getMinutes() < 1440) {
+ Hours hours = Hours.hoursBetween(lastSyncTime, now);
+ lastSync = hours.getHours() + "h";
+ } else {
+ Days days = Days.daysBetween(lastSyncTime, now);
+ lastSync = days.getDays() + "d";
+ }
+ }
+ return lastSync;
+ }
+
+ @Override
+ protected Context context() {
+ return BidanApplication.getInstance().context();
+ }
+
+
+ ////////////////////////////////////////////////////////////////
+ // Inner classes
+ ////////////////////////////////////////////////////////////////
+ private class BaseActivityToggle extends ActionBarDrawerToggle {
+
+ private BaseActivityToggle(Activity activity, DrawerLayout drawerLayout, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) {
+ super(activity, drawerLayout, openDrawerContentDescRes, closeDrawerContentDescRes);
+ }
+
+ /*public BaseActivityToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) {
+ super(activity, drawerLayout, toolbar, openDrawerContentDescRes, closeDrawerContentDescRes);
+ }*/
+
+ @Override
+ public void onDrawerOpened(View drawerView) {
+ super.onDrawerOpened(drawerView);
+ if (!SyncStatusBroadcastReceiver.getInstance().isSyncing()) {
+ updateLastSyncText();
+ }
+ }
+
+ @Override
+ public void onDrawerClosed(View drawerView) {
+ super.onDrawerClosed(drawerView);
+ }
+ }
+
}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java
index 47cb1ec..1ca14f1 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java
@@ -1,10 +1,152 @@
package org.smartregister.bidan.activity;
-import android.app.Activity;
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v7.app.AppCompatActivity;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.TextView;
+
+import org.smartregister.bidan.R;
+import org.smartregister.bidan.application.BidanApplication;
+import org.smartregister.bidan.controller.NavigationControllerINA;
+import org.smartregister.view.controller.ANMController;
+import org.smartregister.view.controller.NavigationController;
+import org.smartregister.view.viewpager.OpenSRPViewPager;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+import butterknife.Bind;
/**
* Created by sid-tech on 11/13/17.
*/
-public class BidanHomeActivity extends Activity {
+public class BidanHomeActivity extends AppCompatActivity {
+
+ SimpleDateFormat timer = new SimpleDateFormat("hh:mm:ss");
+
+ @Bind(R.id.view_pager)
+ protected OpenSRPViewPager mPager;
+ private MenuItem updateMenuItem;
+ private MenuItem remainingFormsToSyncMenuItem;
+ private TextView ecRegisterClientCountView;
+ private TextView kartuIbuANCRegisterClientCountView;
+ private TextView kartuIbuPNCRegisterClientCountView;
+ private TextView anakRegisterClientCountView;
+ private TextView kohortKbCountView;
+ protected NavigationController navigationController;
+ protected ANMController anmController;
+
+ @Override
+ protected void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ setContentView(R.layout.smart_registers_home_bidan);
+ navigationController = new NavigationControllerINA(this, anmController, BidanApplication.getInstance().context());
+ setupViews();
+
+ }
+
+ protected void onCreation() {
+ /*FlurryFacade.logEvent("home_dashboard");*/
+// String HomeStart = timer.format(new Date());
+// Map Home = new HashMap();
+// Home.put("start", HomeStart);
+// FlurryAgent.logEvent("home_dashboard", Home, true);
+
+// setContentView(R.layout.smart_registers_home_bidan);
+
+// navigationController = new NavigationControllerINA(this, anmController, context());
+// setupViews();
+// initialize();
+// DisplayFormFragment.formInputErrorMessage = getResources().getString(R.string.forminputerror);
+// DisplayFormFragment.okMessage = getResources().getString(R.string.okforminputerror);
+ // context.formSubmissionRouter().getHandlerMap().put("census_enrollment_form", new ANChandler());
+// int SDK_INT = android.os.Build.VERSION.SDK_INT;
+// if (SDK_INT > 8)
+// {
+// StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
+// .permitAll().build();
+// StrictMode.setThreadPolicy(policy);
+// }
+ }
+
+ protected void onResumption() {
+
+ }
+
+ private void setupViews() {
+
+ getSupportActionBar().setTitle("");
+ getSupportActionBar().setIcon(getResources().getDrawable(R.mipmap.logo));
+ getSupportActionBar().setLogo(R.mipmap.logo);
+ getSupportActionBar().setDisplayUseLogoEnabled(true);
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+
+ findViewById(R.id.btn_kartu_ibu_register).setOnClickListener(onRegisterStartListener);
+ findViewById(R.id.btn_kartu_ibu_anc_register).setOnClickListener(onRegisterStartListener);
+ findViewById(R.id.btn_kartu_ibu_pnc_register).setOnClickListener(onRegisterStartListener);
+ findViewById(R.id.btn_anak_register).setOnClickListener(onRegisterStartListener);
+ findViewById(R.id.btn_kohort_kb_register).setOnClickListener(onRegisterStartListener);
+ findViewById(R.id.btn_reporting).setOnClickListener(onButtonsClickListener);
+// findViewById(R.id.btn_videos).setOnClickListener(onButtonsClickListener);
+
+ ecRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_register_client_count);
+ kartuIbuANCRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_anc_register_client_count);
+ kartuIbuPNCRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_pnc_register_client_count);
+ anakRegisterClientCountView = (TextView) findViewById(R.id.txt_anak_client_count);
+ kohortKbCountView = (TextView) findViewById(R.id.txt_kohort_kb_register_count);
+ }
+
+ private View.OnClickListener onRegisterStartListener = new View.OnClickListener() {
+
+ @Override
+ public void onClick(View view) {
+ switch (view.getId()) {
+ case R.id.btn_kartu_ibu_register:
+ navigationController.startECSmartRegistry();
+ break;
+
+ case R.id.btn_kohort_kb_register:
+ navigationController.startFPSmartRegistry();
+ break;
+
+ case R.id.btn_kartu_ibu_anc_register:
+ navigationController.startANCSmartRegistry();
+ break;
+
+ case R.id.btn_anak_register:
+ navigationController.startChildSmartRegistry();
+ break;
+
+ case R.id.btn_kartu_ibu_pnc_register:
+ navigationController.startPNCSmartRegistry();
+ break;
+ }
+ String HomeEnd = timer.format(new Date());
+ Map Home = new HashMap();
+ Home.put("end", HomeEnd);
+// FlurryAgent.logEvent("home_dashboard",Home, true);
+ }
+ };
+
+ private View.OnClickListener onButtonsClickListener = new View.OnClickListener() {
+
+ @Override
+ public void onClick(View view) {
+ switch (view.getId()) {
+ case R.id.btn_reporting:
+ navigationController.startReports();
+ break;
+
+// case R.id.btn_videos:
+// navigationController.startVideos();
+// break;
+ }
+ }
+ };
}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KChildSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KChildSmartRegisterActivity.java
new file mode 100644
index 0000000..37f5837
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KChildSmartRegisterActivity.java
@@ -0,0 +1,8 @@
+package org.smartregister.bidan.activity;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class KChildSmartRegisterActivity {
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KIbuSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KIbuSmartRegisterActivity.java
new file mode 100644
index 0000000..9640d28
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KIbuSmartRegisterActivity.java
@@ -0,0 +1,175 @@
+package org.smartregister.bidan.activity;
+
+import android.app.ProgressDialog;
+import android.content.pm.ActivityInfo;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.Looper;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentPagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.util.Log;
+
+import org.smartregister.adapter.SmartRegisterPaginatedAdapter;
+import org.smartregister.bidan.R;
+import org.smartregister.bidan.adapter.BidanRegisterActivityPagerAdapter;
+import org.smartregister.bidan.fragment.BaseSmartRegisterFragment;
+import org.smartregister.bidan.fragment.IbuSmartRegisterFragment;
+import org.smartregister.domain.FetchStatus;
+import org.smartregister.event.Event;
+import org.smartregister.event.Listener;
+import org.smartregister.provider.SmartRegisterClientsProvider;
+import org.smartregister.view.dialog.DialogOptionModel;
+import org.smartregister.view.viewpager.OpenSRPViewPager;
+
+import butterknife.Bind;
+import butterknife.ButterKnife;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class KIbuSmartRegisterActivity extends BaseRegisterActivity {
+
+ @Bind(R.id.view_pager)
+ protected OpenSRPViewPager mPager;
+ private FragmentPagerAdapter mPagerAdapter;
+ private static final int REQUEST_CODE_GET_JSON = 3432;
+ private int currentPage;
+ public static final int ADVANCED_SEARCH_POSITION = 1;
+ private ProgressDialog progressDialog;
+
+ private android.support.v4.app.Fragment mBaseFragment = null;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ ButterKnife.bind(this);
+
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
+
+ mBaseFragment = new IbuSmartRegisterFragment();
+// Fragment[] otherFragments = {new AdvancedSearchFragment()};
+ Fragment[] otherFragments = {};
+
+ // Instantiate a ViewPager and a PagerAdapter.
+ mPagerAdapter = new BidanRegisterActivityPagerAdapter(getSupportFragmentManager(), mBaseFragment, otherFragments);
+ mPager.setOffscreenPageLimit(otherFragments.length);
+ mPager.setAdapter(mPagerAdapter);
+ mPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
+ @Override
+ public void onPageSelected(int position) {
+ currentPage = position;
+ }
+ });
+
+ Event.ON_DATA_FETCHED.addListener(onDataFetchedListener);
+// initializeProgressDialog();
+ }
+
+ @Override
+ protected void onDestroy() {
+ super.onDestroy();
+ Event.ON_DATA_FETCHED.removeListener(onDataFetchedListener);
+ }
+
+ @Override
+ protected SmartRegisterPaginatedAdapter adapter() {
+ return new SmartRegisterPaginatedAdapter(clientsProvider());
+ }
+
+ @Override
+ protected DefaultOptionsProvider getDefaultOptionsProvider() {
+ return null;
+ }
+
+ @Override
+ protected void setupViews() {
+ }
+
+ @Override
+ protected void onResumption() {
+// final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+// LinearLayout childregister = (LinearLayout) drawer.findViewById(R.id.child_register);
+// childregister.setBackgroundColor(getResources().getColor(R.color.tintcolor));
+
+ }
+
+ @Override
+ protected NavBarOptionsProvider getNavBarOptionsProvider() {
+ return null;
+ }
+
+ @Override
+ protected SmartRegisterClientsProvider clientsProvider() {
+ return null;
+ }
+
+ @Override
+ protected void onInitialization() {
+ }
+
+ @Override
+ public void startRegistration() {
+ }
+
+ @Override
+ public void showFragmentDialog(DialogOptionModel dialogOptionModel, Object tag) {
+ try {
+ LoginActivity.setLanguage();
+ } catch (Exception e) {
+ Log.e(getClass().getCanonicalName(), e.getMessage());
+ }
+ super.showFragmentDialog(dialogOptionModel, tag);
+ }
+
+ @Override
+ public void startFormActivity(String formName, String entityId, String metaData) {
+// try {
+// if (mBaseFragment instanceof IbuSmartRegisterFragment) {
+// LocationPickerView locationPickerView = ((IbuSmartRegisterFragment) mBaseFragment).getLocationPickerView();
+// String locationId = JsonFormUtils.getOpenMrsLocationId(context(), locationPickerView.getSelectedItem());
+// JsonFormUtils.startForm(this, context(), REQUEST_CODE_GET_JSON, formName, entityId,
+// metaData, locationId);
+// }
+// } catch (Exception e) {
+// Log.e(TAG, Log.getStackTraceString(e));
+// }
+
+ }
+
+ private final Listener onDataFetchedListener = new Listener() {
+ @Override
+ public void onEvent(FetchStatus fetchStatus) {
+ refreshList(fetchStatus);
+ }
+ };
+
+ public void refreshList(final FetchStatus fetchStatus) {
+ if (Looper.myLooper() == Looper.getMainLooper()) {
+ BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0);
+ if (registerFragment != null && fetchStatus.equals(FetchStatus.fetched)) {
+ registerFragment.refreshListView();
+ }
+ } else {
+ Handler handler = new android.os.Handler(Looper.getMainLooper());
+ handler.post(new Runnable() {
+ @Override
+ public void run() {
+ BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0);
+ if (registerFragment != null && fetchStatus.equals(FetchStatus.fetched)) {
+ registerFragment.refreshListView();
+ }
+ }
+ });
+ }
+
+ }
+
+ public android.support.v4.app.Fragment findFragmentByPosition(int position) {
+ FragmentPagerAdapter fragmentPagerAdapter = mPagerAdapter;
+ return getSupportFragmentManager().findFragmentByTag("android:switcher:" + mPager.getId() + ":" + fragmentPagerAdapter.getItemId(position));
+ }
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KKBSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KKBSmartRegisterActivity.java
new file mode 100644
index 0000000..fba55cc
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KKBSmartRegisterActivity.java
@@ -0,0 +1,8 @@
+package org.smartregister.bidan.activity;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class KKBSmartRegisterActivity {
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KPNCSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KPNCSmartRegisterActivity.java
new file mode 100644
index 0000000..9524d93
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/KPNCSmartRegisterActivity.java
@@ -0,0 +1,8 @@
+package org.smartregister.bidan.activity;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class KPNCSmartRegisterActivity {
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java
index 38a5844..c30cab8 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java
@@ -13,6 +13,7 @@
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.DisplayMetrics;
+import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
@@ -66,7 +67,12 @@ public class LoginActivity extends AppCompatActivity {
public static final String ENGLISH_LOCALE = "en";
private static final String URDU_LOCALE = "ur";
private static final String ENGLISH_LANGUAGE = "English";
+ private static final String BAHASA_LANGUAGE = "BAHASA";
private static final String URDU_LANGUAGE = "Urdu";
+ private static final String BAHASA_LOCALE = "in";
+ private static final String LOCALE_LANG = BAHASA_LOCALE;
+
+
private android.content.Context appContext;
private RemoteLoginTask remoteLoginTask;
@@ -103,7 +109,7 @@ public void onCreate(Bundle savedInstanceState) {
// initializeBuildDetails();
// setDoneActionHandlerOnPasswordField();
initializeProgressDialog();
-// setLanguage();
+ setLanguage();
if (BuildConfig.DEBUG) {
debugApp();
}
@@ -131,11 +137,50 @@ public boolean onOptionsItemSelected(MenuItem item) {
startActivity(new Intent(this, SettingsActivity.class));
return true;
}
+ Log.e(TAG, "onOptionsItemSelected: "+ item.getTitle().toString() );
return super.onOptionsItemSelected(item);
}
+ public static void setLanguage() {
+ AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(getOpenSRPContext().applicationContext()));
+ String preferredLocale = allSharedPreferences.fetchLanguagePreference();
+ if(!preferredLocale.equals(LOCALE_LANG)) {
+ switchLanguagePreference();
+ preferredLocale = allSharedPreferences.fetchLanguagePreference();
+ }
+ Resources res = getOpenSRPContext().applicationContext().getResources();
+ // Change locale settings in the app.
+ DisplayMetrics dm = res.getDisplayMetrics();
+ Configuration conf = res.getConfiguration();
+ conf.locale = new Locale(preferredLocale);
+ res.updateConfiguration(conf, dm);
+ }
+ public static String switchLanguagePreference() {
+ AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(Context.getInstance().applicationContext()));
+
+ String preferredLocale = allSharedPreferences.fetchLanguagePreference();
+ if (ENGLISH_LOCALE.equals(preferredLocale)) {
+ allSharedPreferences.saveLanguagePreference(BAHASA_LOCALE);
+ Resources res = Context.getInstance().applicationContext().getResources();
+ // Change locale settings in the app.
+ DisplayMetrics dm = res.getDisplayMetrics();
+ android.content.res.Configuration conf = res.getConfiguration();
+ conf.locale = new Locale(BAHASA_LOCALE);
+ res.updateConfiguration(conf, dm);
+ return BAHASA_LANGUAGE;
+ } else {
+ allSharedPreferences.saveLanguagePreference(ENGLISH_LOCALE);
+ Resources res = Context.getInstance().applicationContext().getResources();
+ // Change locale settings in the app.
+ DisplayMetrics dm = res.getDisplayMetrics();
+ android.content.res.Configuration conf = res.getConfiguration();
+ conf.locale = new Locale(ENGLISH_LOCALE);
+ res.updateConfiguration(conf, dm);
+ return ENGLISH_LANGUAGE;
+ }
+ }
private void initializeProgressDialog() {
progressDialog = new ProgressDialog(this);
@@ -224,7 +269,6 @@ private void hideKeyboard() {
}
private void goToHome(boolean remote) {
- android.util.Log.e(TAG, "goToHome: from "+ (remote? "remote" : "lokal") );
if (!remote) {
// startZScoreIntentService();
Utils.startAsyncTask(new SaveTeamLocationsTask(), null);
@@ -232,8 +276,8 @@ private void goToHome(boolean remote) {
Utils.startAsyncTask(new SaveTeamLocationsTask(), null);
}
BidanApplication.setCrashlyticsUser(getOpenSRPContext());
- Intent intent = new Intent(this, BidanHomeActivity.class);
-// Intent intent = new Intent(this, KIbuSmartRegisterActivity.class);
+// Intent intent = new Intent(this, BidanHomeActivity.class);
+ Intent intent = new Intent(this, KIbuSmartRegisterActivity.class);
intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, remote);
startActivity(intent);
@@ -351,8 +395,6 @@ private void extractLocations(ArrayList locationList, JSONObject rawLoca
String curChildKey = childIterator.next();
extractLocations(locationList, rawLocationData.getJSONObject(CHILDREN).getJSONObject(curChildKey));
}
- } else {
- android.util.Log.e(TAG, "extractLocations: NO CHILDREN " );
}
}
@@ -397,13 +439,12 @@ private class SaveTeamLocationsTask extends AsyncTask {
protected Void doInBackground(Void... params) {
ArrayList locationsCSV = locationsCSV();
- android.util.Log.e(TAG, "doInBackground: "+ locationsCSV.toString() );
if (locationsCSV.isEmpty()) {
android.util.Log.e(TAG, "doInBackground: locationCSV empty" );
return null;
}
- android.util.Log.e(TAG, "doInBackground: value "+ StringUtils.join(locationsCSV, ",") );
+// android.util.Log.e(TAG, "doInBackground: value "+ StringUtils.join(locationsCSV, ",") );
Utils.writePreference(BidanApplication.getInstance().getApplicationContext(), LocationPickerView.PREF_VILLAGE_LOCATIONS, StringUtils.join(locationsCSV, ","));
return null;
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/BidanRegisterActivityPagerAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/BidanRegisterActivityPagerAdapter.java
new file mode 100644
index 0000000..cc763d0
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/BidanRegisterActivityPagerAdapter.java
@@ -0,0 +1,49 @@
+package org.smartregister.bidan.adapter;
+
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentPagerAdapter;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class BidanRegisterActivityPagerAdapter extends FragmentPagerAdapter {
+ private static final String ARG_PAGE = "page";
+ private final Fragment mBaseFragment;
+ private final FragmentManager fragmentManager;
+ private final Fragment[] fragments;
+
+ public BidanRegisterActivityPagerAdapter(FragmentManager supportFragmentManager, Fragment mBaseFragment, Fragment[] otherFragments) {
+ super(supportFragmentManager);
+ this.fragmentManager = supportFragmentManager;
+ this.mBaseFragment = mBaseFragment;
+ this.fragments = otherFragments;
+ }
+
+ @Override
+ public Fragment getItem(int position) {
+ Fragment fragment = null;
+ switch (position) {
+ case 0:
+ fragment = mBaseFragment;
+ break;
+ default:
+ fragment = fragments[position - 1];
+ break;
+ }
+
+ Bundle args = new Bundle();
+ args.putInt(ARG_PAGE, position);
+ if (fragment != null) {
+ fragment.setArguments(args);
+ }
+ return fragment;
+ }
+
+ @Override
+ public int getCount() {
+ return fragments == null ? 1 : fragments.length + 1;
+ }
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/application/BidanApplication.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/application/BidanApplication.java
index 2a1e9b7..a665538 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/application/BidanApplication.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/application/BidanApplication.java
@@ -27,9 +27,6 @@
import static org.smartregister.util.Log.logInfo;
-//import io.fabric.sdk.android.Fabric;
-//import com.crashlytics.android.Crashlytics;
-
/**
* Created by sid-tech on 11/13/17.
*/
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/controller/NavigationControllerINA.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/controller/NavigationControllerINA.java
new file mode 100644
index 0000000..2957c65
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/controller/NavigationControllerINA.java
@@ -0,0 +1,95 @@
+package org.smartregister.bidan.controller;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.net.Uri;
+
+import org.json.JSONObject;
+import org.smartregister.Context;
+import org.smartregister.bidan.activity.BidanHomeActivity;
+import org.smartregister.bidan.activity.KChildSmartRegisterActivity;
+import org.smartregister.bidan.activity.KIbuSmartRegisterActivity;
+import org.smartregister.bidan.activity.KKBSmartRegisterActivity;
+import org.smartregister.bidan.activity.KPNCSmartRegisterActivity;
+import org.smartregister.view.controller.ANMController;
+import org.smartregister.view.controller.NavigationController;
+
+import static android.preference.PreferenceManager.getDefaultSharedPreferences;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class NavigationControllerINA extends NavigationController {
+ private Activity activity;
+ private ANMController anmController;
+ private Context context;
+
+ public NavigationControllerINA(Activity activity, ANMController anmController,Context context) {
+ super(activity,anmController);
+ this.activity = activity;
+ this.anmController = anmController;
+ this.context = context;
+ }
+
+ /**
+ * Activity for KOHORT IBU
+ */
+ @Override
+ public void startECSmartRegistry() {
+ openActivity(KIbuSmartRegisterActivity.class);
+// activity.startActivity(new Intent(activity, KIbuSmartRegisterActivity.class));
+//
+// SharedPreferences sp = getDefaultSharedPreferences(this.activity);
+// if(sp.getBoolean("firstlaunch", true))
+// sp.edit().putBoolean("firstlaunch", false).apply();
+
+ }
+
+
+ @Override
+ public void startFPSmartRegistry() {
+ openActivity(KIbuSmartRegisterActivity.class);
+ }
+
+ @Override
+ public void startANCSmartRegistry() {
+ openActivity(KKBSmartRegisterActivity.class);
+ }
+
+ @Override
+ public void startPNCSmartRegistry() {
+ openActivity(KPNCSmartRegisterActivity.class);
+ }
+
+ @Override
+ public void startChildSmartRegistry() {
+ openActivity(KChildSmartRegisterActivity.class);
+ }
+
+ @Override
+ public void startReports() {
+ String id, pass;
+ try{
+ id = new JSONObject(anmController.get()).get("anmName").toString();
+ pass = context.allSettings().fetchANMPassword();
+ }catch(org.json.JSONException ex){
+ id="noname";
+ pass="null";
+ }
+ String uri = "http://"+id+":"+pass+"@kia-report.sid-indonesia.org/login/auth";
+ activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uri)));
+ }
+
+ private void openActivity(Class> targetClass) {
+ activity.startActivity(new Intent(activity, targetClass));
+
+ SharedPreferences sp = getDefaultSharedPreferences(this.activity);
+ if(sp.getBoolean("firstlaunch", true))
+ sp.edit().putBoolean("firstlaunch", false).apply();
+
+ }
+
+
+}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/BaseSmartRegisterFragment.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/BaseSmartRegisterFragment.java
new file mode 100644
index 0000000..969b27b
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/BaseSmartRegisterFragment.java
@@ -0,0 +1,210 @@
+package org.smartregister.bidan.fragment;
+
+import android.database.Cursor;
+import android.os.AsyncTask;
+import android.text.Editable;
+import android.text.TextWatcher;
+import android.util.Log;
+import android.view.View;
+
+import org.apache.commons.lang3.StringUtils;
+import org.json.JSONException;
+import org.smartregister.Context;
+import org.smartregister.bidan.R;
+import org.smartregister.bidan.application.BidanApplication;
+import org.smartregister.bidan.view.LocationPickerView;
+import org.smartregister.commonregistry.CommonPersonObject;
+import org.smartregister.commonregistry.CommonPersonObjectClient;
+import org.smartregister.cursoradapter.SecuredNativeSmartRegisterCursorAdapterFragment;
+import org.smartregister.cursoradapter.SmartRegisterQueryBuilder;
+import org.smartregister.provider.SmartRegisterClientsProvider;
+import org.smartregister.view.activity.SecuredNativeSmartRegisterActivity;
+
+import static android.view.View.INVISIBLE;
+import static android.view.View.VISIBLE;
+import static org.apache.commons.lang3.StringUtils.isEmpty;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class BaseSmartRegisterFragment extends SecuredNativeSmartRegisterCursorAdapterFragment {
+
+ private static final String TAG = BaseSmartRegisterFragment.class.getName();
+
+ // TODO change to FLHW
+ private LocationPickerView clinicSelection;
+
+ @Override
+ protected SecuredNativeSmartRegisterActivity.DefaultOptionsProvider getDefaultOptionsProvider() {
+ return null;
+ }
+
+ @Override
+ protected SecuredNativeSmartRegisterActivity.NavBarOptionsProvider getNavBarOptionsProvider() {
+ return null;
+ }
+
+ @Override
+ protected SmartRegisterClientsProvider clientsProvider() {
+ return null;
+ }
+
+ @Override
+ protected void onInitialization() {
+ }
+
+ @Override
+ protected void startRegistration() {
+
+ }
+
+ @Override
+ protected void onCreation() {
+ }
+
+ protected final TextWatcher textWatcher = new TextWatcher() {
+ @Override
+ public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
+ }
+
+ @Override
+ public void onTextChanged(final CharSequence cs, int start, int before, int count) {
+ filter(cs.toString(), "", "");
+ }
+
+ @Override
+ public void afterTextChanged(Editable editable) {
+
+ }
+ };
+
+ @Override
+ protected void setupViews(View view) {
+ super.setupViews(view);
+
+ View viewParent = (View) appliedSortView.getParent();
+ viewParent.setVisibility(View.GONE);
+
+// clinicSelection = (LocationPickerView) view.findViewById(R.id.clinic_selection);
+// clinicSelection.init(context());
+
+ }
+
+ protected void filter(String filterString, String joinTableString, String mainConditionString) {
+ filters = filterString;
+ joinTable = joinTableString;
+ mainCondition = mainConditionString;
+ getSearchCancelView().setVisibility(isEmpty(filterString) ? INVISIBLE : VISIBLE);
+ CountExecute();
+ filterandSortExecute();
+ }
+
+ @Override
+ public void showProgressView() {
+ if (clientsProgressView.getVisibility() == INVISIBLE) {
+ clientsProgressView.setVisibility(VISIBLE);
+ }
+ }
+
+ @Override
+ public void hideProgressView() {
+ if (clientsProgressView.getVisibility() == VISIBLE) {
+ clientsProgressView.setVisibility(INVISIBLE);
+ }
+ }
+
+
+ protected void updateLocationText() {
+ if (clinicSelection != null) {
+// clinicSelection.setText(JsonFormUtils.getOpenMrsReadableName(
+// clinicSelection.getSelectedItem()));
+// try {
+//
+// String locationId = JsonFormUtils.getOpenMrsLocationId(context(), clinicSelection.getSelectedItem());
+// context().allSharedPreferences().savePreference(BidanConstants.CURRENT_LOCATION_ID, locationId);
+// } catch (JSONException e) {
+// e.printStackTrace();
+// }
+ }
+ }
+
+ public LocationPickerView getClinicSelection() {
+ return clinicSelection;
+ }
+
+ public boolean onBackPressed() {
+ return false;
+ }
+
+ @Override
+ protected Context context() {
+ return BidanApplication.getInstance().context();
+ }
+
+ ////////////////////////////////////////////////////////////////
+ // Inner classes
+ ////////////////////////////////////////////////////////////////
+
+ private class FilterForClientTask extends AsyncTask {
+ private String searchQuery;
+
+ private FilterForClientTask() {
+ this.searchQuery = null;
+ }
+
+ @Override
+ protected void onPreExecute() {
+ super.onPreExecute();
+ showProgressView();
+ }
+
+ @Override
+ protected CommonPersonObjectClient doInBackground(String... params) {
+ searchQuery = params[0];
+ Cursor cursor = null;
+ CommonPersonObjectClient client = null;
+ try {
+ String query = "";
+
+ SmartRegisterQueryBuilder sqb = new SmartRegisterQueryBuilder(mainSelect);
+ String whereOrAnd = " WHERE ";
+ if (StringUtils.containsIgnoreCase(sqb.getSelectquery(), whereOrAnd.trim())) {
+ whereOrAnd = " AND ";
+ }
+ query = sqb.addCondition(whereOrAnd + getTablename() + ".zeir_id = " + searchQuery);
+ query = sqb.Endquery(sqb.addlimitandOffset(query, 1, 0));
+
+ cursor = commonRepository().rawCustomQueryForAdapter(query);
+ cursor.moveToFirst();
+
+ if (cursor.getCount() > 0) {
+ CommonPersonObject personinlist = commonRepository().readAllcommonforCursorAdapter(cursor);
+ client = new CommonPersonObjectClient(personinlist.getCaseId(), personinlist.getDetails(), personinlist.getDetails().get("FWHOHFNAME"));
+ client.setColumnmaps(personinlist.getColumnmaps());
+ }
+
+ } catch (Exception e) {
+ Log.e(getClass().getName(), e.toString(), e);
+ } finally {
+ if (cursor != null) {
+ cursor.close();
+ }
+ }
+ return client;
+ }
+
+ @Override
+ protected void onPostExecute(CommonPersonObjectClient client) {
+ super.onPostExecute(client);
+ hideProgressView();
+ if (client != null) {
+// ChildImmunizationActivity.launchActivity(getActivity(), client, null);
+ } else {
+// NotInCatchmentDialogFragment.launchDialog((BaseRegisterActivity) getActivity(),
+// DIALOG_TAG, searchQuery);
+ }
+ }
+ }
+}
+
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/IbuSmartRegisterFragment.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/IbuSmartRegisterFragment.java
new file mode 100644
index 0000000..139bcf2
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/fragment/IbuSmartRegisterFragment.java
@@ -0,0 +1,75 @@
+package org.smartregister.bidan.fragment;
+
+import android.view.View;
+
+import org.smartregister.bidan.R;
+import org.smartregister.bidan.options.DateSort;
+import org.smartregister.bidan.options.StatusSort;
+import org.smartregister.bidan.receiver.SyncStatusBroadcastReceiver;
+import org.smartregister.bidan.view.LocationPickerView;
+import org.smartregister.cursoradapter.CursorCommonObjectSort;
+import org.smartregister.domain.FetchStatus;
+import org.smartregister.view.activity.SecuredNativeSmartRegisterActivity;
+import org.smartregister.view.dialog.DialogOption;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class IbuSmartRegisterFragment extends BaseSmartRegisterFragment implements SyncStatusBroadcastReceiver.SyncStatusListener {
+
+ public LocationPickerView getLocationPickerView() {
+ return getClinicSelection();
+ }
+
+ @Override
+ public void onSyncStart() {
+
+ }
+
+ @Override
+ public void onSyncComplete(FetchStatus fetchStatus) {
+
+ }
+
+ @Override
+ protected void setupViews(View view) {
+ super.setupViews(view);
+
+ view.findViewById(R.id.btn_report_month).setVisibility(View.INVISIBLE);
+ view.findViewById(R.id.service_mode_selection).setVisibility(View.INVISIBLE);
+
+ }
+
+ protected SecuredNativeSmartRegisterActivity.NavBarOptionsProvider getNavBarOptionsProvider() {
+ return new SecuredNativeSmartRegisterActivity.NavBarOptionsProvider() {
+
+ @Override
+ public DialogOption[] filterOptions() {
+ return new DialogOption[]{};
+ }
+
+ @Override
+ public DialogOption[] serviceModeOptions() {
+ return new DialogOption[]{
+ };
+ }
+
+ @Override
+ public DialogOption[] sortingOptions() {
+ return new DialogOption[]{
+ new CursorCommonObjectSort(getResources().getString(R.string.woman_alphabetical_sort), "first_name"),
+ new DateSort("Age", "dob"),
+ new StatusSort("Due Status"),
+ new CursorCommonObjectSort(getResources().getString(R.string.id_sort), "zeir_id")
+ };
+ }
+
+ @Override
+ public String searchHint() {
+ return context().getStringResource(R.string.str_search_hint);
+ }
+ };
+ }
+
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/options/DateSort.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/options/DateSort.java
new file mode 100644
index 0000000..e1121db
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/options/DateSort.java
@@ -0,0 +1,36 @@
+package org.smartregister.bidan.options;
+
+import org.smartregister.cursoradapter.CursorSortOption;
+import org.smartregister.view.contract.SmartRegisterClients;
+import org.smartregister.view.dialog.DialogOption;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class DateSort implements CursorSortOption {
+
+ private final String name;
+ private final String sort;
+
+ @Override
+ public String sort() {
+ return sort;
+ }
+
+ public DateSort(String name, String sort) {
+ this.sort = sort;
+ this.name = name;
+ }
+
+ @Override
+ public String name() {
+ return name;
+ }
+
+ @Override
+ public SmartRegisterClients sort(SmartRegisterClients allClients) {
+ throw new UnsupportedOperationException();
+ }
+
+}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/options/StatusSort.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/options/StatusSort.java
new file mode 100644
index 0000000..b972eb9
--- /dev/null
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/options/StatusSort.java
@@ -0,0 +1,83 @@
+package org.smartregister.bidan.options;
+
+import android.util.Log;
+
+import org.smartregister.bidan.application.BidanApplication;
+import org.smartregister.cursoradapter.CursorSortOption;
+import org.smartregister.domain.Alert;
+import org.smartregister.view.contract.SmartRegisterClient;
+import org.smartregister.view.contract.SmartRegisterClients;
+
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Created by sid-tech on 11/14/17.
+ */
+
+public class StatusSort implements CursorSortOption {
+ private final String name;
+
+ private final Comparator commoncomparator = new Comparator() {
+ @Override
+ public int compare(SmartRegisterClient oneClient, SmartRegisterClient anotherClient2) {
+ Map m = new HashMap<>();
+ m.put("completed", 0);
+ m.put("expired", 1);
+ m.put("upcoming", 2);
+ m.put("normal", 3);
+ m.put("urgent", 4);
+
+ List alertlist_for_client1 = BidanApplication.getInstance().context().alertService().findByEntityIdAndAlertNames(oneClient.entityId(), "TT 1", "TT 2", "TT 3", "TT 4", "TT 5", "tt1", "tt2", "tt3", "tt4", "tt5");
+ List alertlist_for_client2 = BidanApplication.getInstance().context().alertService().findByEntityIdAndAlertNames(anotherClient2.entityId(), "TT 1", "TT 2", "TT 3", "TT 4", "TT 5", "tt1", "tt2", "tt3", "tt4", "tt5");
+
+ Log.i(this.getClass().getName(), "ALERT 1 SIZE: " + alertlist_for_client1.toString());
+ Log.i(this.getClass().getName(), "ALERT 2 SIZE: " + alertlist_for_client2.toString());
+
+ int max1 = 0;
+ for (int i = 0; i < alertlist_for_client1.size(); i++) {
+ Alert a = alertlist_for_client1.get(i);
+ Log.i(this.getClass().getName(), "Alert 1:" + a.toString());
+ if (m.get(a.status().name()) > max1) {
+ max1 = m.get(a.status().name());
+ }
+ }
+
+ int max2 = 0;
+ for (int i = 0; i < alertlist_for_client2.size(); i++) {
+ Alert a = alertlist_for_client2.get(i);
+ Log.i(this.getClass().getName(), "Alert 2:" + a.toString());
+ if (m.get(a.status().name()) > max2) {
+ max2 = m.get(a.status().name());
+ }
+ }
+
+ if (max1 == max2) return 0;
+ if (max1 > max2) return -1;
+ else return 1;
+ }
+ };
+
+ public StatusSort(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public String sort() {
+ return "";
+ }
+
+ @Override
+ public String name() {
+ return name;
+ }
+
+ @Override
+ public SmartRegisterClients sort(SmartRegisterClients allClients) {
+ Collections.sort(allClients, commoncomparator);
+ return allClients;
+ }
+}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/receiver/SyncStatusBroadcastReceiver.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/receiver/SyncStatusBroadcastReceiver.java
index 70d0942..c386d06 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/receiver/SyncStatusBroadcastReceiver.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/receiver/SyncStatusBroadcastReceiver.java
@@ -73,4 +73,13 @@ public static void destroy(Context context) {
logError("Error on destroy: " + e);
}
}
+
+ public static SyncStatusBroadcastReceiver getInstance() {
+ return singleton;
+ }
+
+ public boolean isSyncing() {
+ return isSyncing;
+ }
+
}
diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/view/LocationPickerView.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/view/LocationPickerView.java
index 99dfa48..6497db3 100644
--- a/opensrp-bidan/src/main/java/org/smartregister/bidan/view/LocationPickerView.java
+++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/view/LocationPickerView.java
@@ -47,4 +47,7 @@ public void onClick(View v) {
ALLOWED_LEVELS.add("Village");
}
+ public void init(org.smartregister.Context context) {
+
+ }
}
diff --git a/opensrp-bidan/src/main/res/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv b/opensrp-bidan/src/main/res/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv
deleted file mode 100644
index 4113b95..0000000
--- a/opensrp-bidan/src/main/res/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv
+++ /dev/null
@@ -1,68 +0,0 @@
-Under 5 Clinic Attendance,,,,,,,,,
-01,CHN1-005,Attendance child health < 12 months (male),n0uHub5ubqH,Number of male children aged < 12 months who attended a clinic this month.,"COUNT of male children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-02,CHN1-010,Attendance child health < 12 months (female),IWwblgpMxiS,Number of female children aged < 12 months who attended a clinic this month.,"COUNT of female children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-03,CHN1-011,Attendance child health < 12 months (total),C8vB7dH9ab4,Number of total children aged < 12 months who attended a clinic this month.,"[CHN1-005] + [CHN1-010][Non-editable in the form]",Integer,NA,Monthly,
-04,CHN1-015,Attendance child health 12-59 months (male),fl4bPFJRI5j,Number of male children aged 12 to 59 months who attended a clinic this month,"COUNT of male children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-05,CHN1-020,Attendance child health 12-59 months (female),ZDSUD6VHnoh,Number of female children aged 12 to 59 months who attended a clinic this month,"COUNT of female children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-06,CHN1-021,Attendance child health 12-59 months (total),sZQXZ069Vgj,Number of Total children aged 12 to 59 months who attended clinic this month,"[CHN1-015] + [CHN1-020][Non-editable in the form]",Integer,NA,Monthly,
-07,CHN1-025,Attendance child health (total),YAY7yKAkSvq,Number of total children < 5 who attended a clinic this month ,"[CHN1-011] + [CHN1-021][Non-editable in the form]",Integer,NA,Monthly,
-08,CHN1-030,Attendance from outside catchment area,WFxN7txijYV,Number of total children who attended clinic and are not part of clinic's catchment area,"COUNT Number of total children who attended clinic and are not part of clinic's catchment area (i.e., total number of out of catchment area form submissions that month)",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-Growth Monitoring and Nutrition,,,,,,,,,
-09,CHN2-005,Child weighed 0-23 months,adkGrSGNt3L,Number of total children weighed aged 0-23 months who attended clinic this month,COUNT number of children aged 0-23 [Date_Birth] months who had at least 1 weight encounter at this clinic during the month,Integer,"Growth Monitoring, Out of Area Service",Monthly,Some children may be weighed twice if they come for a another visit during the month due for example if they was a stock out on the earlier visit. Only one count should be recorded
-10,CHN2-010,Child weighed 24-59 months,sSxqU6qPyXr,Number of total children weighed aged 24-59 months who attended clinic this month,COUNT number of children aged 24-59 months [Date_Birth] who had = 1 weight encounter at this clinic,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-11,CHN2-015,Total child weighed,xIGHv5CY2fF,Number of total children weighed aged < 5 years who attended clinic this month,"[CHN2-005] + [CHN2-010][Non-editable in the form]",Integer,NA,Monthly,
-12,CHN2-020,Not gaining weight 0-23 months,H5cadfqRh7I,Number of children aged 0-23 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 0-23 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-13,CHN2-025,Not gaining weight 24-59 months,xWDkbLq9kji,Number of children aged 24-59 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 24-59 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-14,CHN2-030,Total not gaining weight age < five years,e10sC5c4pRz,Number of total children aged < five years who were weighed this month and did not gain >= 100g from the last weigh-in.,"[CHN2-020] + [CHN2-025][Non-editable in the form]",Integer,NA,Monthly,
-15,CHN2-035,Weight between -2Z & -3Z scores 0-23 months,lcpx7xdVC3z,Number of total children age 0-23 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-16,CHN2-040,Weight between -2Z & -3Z scores 24-59 months,hi9sRtkzimM,Number of total children age 24-59 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-17,CHN2-041,Weight between -2Z & -3Z scores < five years,WOZUqhR5W37,Number of total children age < 5 years whose weight is between -2Z and -3Z scores,"[CHN2-035] + [CHN2-040][Non-editable in the form]",Integer,NA,Monthly,
-18,CHN2-045,Weight below -3Z scores 0-23 months,LpkrzZezPhP,Number of total children age 0-23 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-19,CHN2-050,Weight below -3Z scores 24-59 months,AzLJv6qTtPO,Number of total children age 24-59 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-20,CHN2-051,Total weight below -3Z scores < five years,OM9x7oS2qke,Number of total children age < 5 years whose weight below -3Z scores,"[CHN2-045] + [CHN2-050][Non-editable in the form]",Integer,NA,Monthly,
-21,CHN2-055,Weight above 2Z scores 0-23 months,gdrQ69fCF8B,Number of total children age 0-23 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-22,CHN2-060,Weight above 2Z scores 24-59 months,ke26q8KPQPM,Number of total children age 24-59 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly,
-23,CHN2-061,Total weight above 2Z scores < five years,Yi4grVdr9Q5,Number of total children age < 5 years whose weight is above 2Z scores,"[CHN-055] + [CHN-060][Non-editable in the form]",Integer,NA,Monthly,
-"Vitamin A, Deworming, and ITNs",,,,,,,,,
-24,CHN2-065,Vitamin A supplement to infants and children 6-11 months,DSbbltBORY3,Number of children age 6-11 months who received vitamin A at this facility in this month,COUNT Number of children age 6-11 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly,
-25,CHN2-070,Vitamin A supplement to infants and children 12-59 months,JfY9vBHsyzF,Number of children age 12-59 months who received vitamin A at this facility in this month,COUNT Number of children age 12-59 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly,
-26,CHN2-075,Deworming dose 12-59 months,B8nBT4kGhtB,Number of children age 12-59 months who received a deworming dose at this facility in this month ,COUNT Number of children age 12-59 months [Date_Birth] who received a deworming dose [Deworming_Provided] at this facility in this month [Deworming_Provided_Date],Integer,Deworming,Monthly,
-27,CHN2-080,Children who received insecticide treated net,G4vWZAJ0uz7,Number of children who received insecticide treated nets at this facility in this month ,COUNT number of children who received insecticide treated nets [ITN_Provided] at this facility in this month [ITN_Provided_Date],Integer,ITN,Monthly,
-Immunisation,,,,,,,,,
-28,CHN3-005,BCG dose (< 1 year) at the facility,ZTeQmMrVmNR,Number of children < one year who received BCG dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-29,CHN3-005-O,BCG dose (< 1 year) at outreach,,Number of children < one year who received BCG dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-30,CHN3-010,OPV 0 (< 1 year) at facility ,rwNWKJC4dIO,Number of children < one year who received OPV0 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV0 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-31,CHN3-010-O,OPV 0 (< 1 year) at outreach,,Number of children < one year who received OPV0 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 0 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-32,CHN3-015,OPV 1 (< 1 year) at facility ,J3Kd9wHj7mR,Number of children < one year who received OPV1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-33,CHN3-015-O,OPV 1 (< 1 year) at outreach,,Number of children < one year who received OPV1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 [Name_ Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-34,CHN3-020,OPV 2 (< 1 year) at facility ,Jbxssr389B6,Number of children < one year who received OPV2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-35,CHN3-020-O,OPV 2 (< 1 year) at outreach,,Number of children < one year who received OPV2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-36,CHN3-025,OPV 3 (< 1 year) at facility ,dqsYPg0F8DJ,Number of children < one year who received OPV3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-37,CHN3-025-O,OPV 3 (< 1 year) at outreach,,Number of children < one year who received OPV3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-38,CHN3-027,IPV (< 1 year) at facility,D2pqQ1bux6B,Number of children < one year who received IPV dose at this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at this facility in this month ,Integer,NA,Monthly,
-39,CHN3-027-O,IPV (< 1 year) at outreach,RAbXk70XDMq,Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,Integer,NA,Monthly,
-40,CHN3-030,OPV 4 (< 1 year) at facility ,poPXN7Wn3RL,Number of children < one year who received OPV4 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-41,CHN3-030-O,OPV 4 (< 1 year) at outreach,,Number of children < one year who received OPV4 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-42,CHN3-035,DPT-Hib-HepB 1 (< 1 year) at facility,N7VEEjo8AdV,Number of children < one year who received DPT-Hib+HepB 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-43,CHN3-035-O,DPT-Hib-HepB 1 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-44,CHN3-040,DPT-Hib-HepB 2 (< 1 year) at facility,R2JLWtup2XR,Number of children < one year who received DPT-Hib+HepB 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-45,CHN3-040-O,DPT-Hib-HepB 2 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-46,CHN3-045,DPT-Hib-HepB 3 (< 1 year) at facility,ujEvTSZ0Wvn,Number of children < one year who received DPT-Hib+HepB 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-47,CHN3-045-O,DPT-Hib-HepB 3 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-48,CHN3-050,PCV 1 (< 1 year) at facilty,dPpDhpO7GpB,Number of children < one year who received PCV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-49,CHN3-050-O,PCV 1 (< 1 year) at outreach,,Number of children < one year who received PCV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-50,CHN3-055,PCV 2 (< 1 year) at facilty,AU3Zp03Atnf,Number of children < one year who received PCV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-51,CHN3-055-O,PCV 2 (< 1 year) at outreach,,Number of children < one year who received PCV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-52,CHN3-060,PCV 3 (< 1 year) at facility,K5XarM6QLxq,Number of children < one year who received PCV 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-53,CHN3-060-O,PCV 3 (< 1 year) at outreach,,Number of children < one year who received PCV 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-54,CHN3-065,RV 1 (< 1 year) at facility,ziezVvnYWj0,Number of children < one year who received RV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-55,CHN3-065-O,RV 1 (< 1 year) at outreach,,Number of children < one year who received RV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-56,CHN3-070,RV 2 (< 1 year) at facility,dpKLNY9JjRR,Number of children < one year who received RV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-57,CHN3-070-O,RV 2 (< 1 year) at outreach,,Number of children < one year who received RV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-58,CHN3-075,Measles/MR 1 (< 1 year) at facility,zIM9ehVMkNW,Number of children < one year who received Measles/ MR 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles / MR 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-59,CHN3-075-O,Measles/MR 1 (< 1 year) at outreach,,Number of children < one year who received Measles/ MR dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles/ MR 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-60,CHN3-080,Fully immunised (< 1 year) at facility,dzllAar6RrI,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at this facility ",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-61,CHN3-080-O,Fully immunised (< 1 year) at outreach,,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at outreach conducted by this facility",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-62,CHN3-085,Measles/MR 2 (at 18 months) at facility,sqfX5MniMIH,Number of children at 18 months who received Measles/ MR 2 dose at this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-63,CHN3-085-O,Measles/MR 2 (at 18 months) at outreach,,Number of children at 18 months who received Measles/ MR 2 dose at outreach conducted by this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly,
-64,CHN3-090,Number of days fridge non-functional,FGJcw1TCM9D,Number of days during the month that vaccine storage fridge was not functioning ,MANUAL ENTRY Number of days during the month that vaccine storage fridge was not functioning ,Integer,NA,Monthly,
diff --git a/opensrp-bidan/src/main/res/assets/app.properties b/opensrp-bidan/src/main/res/assets/app.properties
deleted file mode 100644
index f34a526..0000000
--- a/opensrp-bidan/src/main/res/assets/app.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-DRISHTI_BASE_URL=
-PORT=-1
-SHOULD_VERIFY_CERTIFICATE=false
-SYNC_DOWNLOAD_BATCH_SIZE=100
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/config.properties b/opensrp-bidan/src/main/res/assets/config.properties
deleted file mode 100644
index ebd8261..0000000
--- a/opensrp-bidan/src/main/res/assets/config.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-uname:demo1
-pwd:Satu2345
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_alerts.json b/opensrp-bidan/src/main/res/assets/ec_client_alerts.json
deleted file mode 100644
index f9ebb97..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_alerts.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "alerts",
- "columns": [{
- "column_name": "caseID",
- "json_mapping": {
- "field": "baseEntityId"
- }
- }, {
- "column_name": "scheduleName",
- "json_mapping": {
- "field": "data.scheduleName"
- }
- }, {
- "column_name": "visitCode",
- "json_mapping": {
- "field": "data.visitCode"
- }
- }, {
- "column_name": "status",
- "json_mapping": {
- "field": "data.alertStatus"
- }
- }, {
- "column_name": "startDate",
- "json_mapping": {
- "field": "data.startDate"
- }
- }, {
- "column_name": "expiryDate",
- "json_mapping": {
- "field": "data.expiryDate"
- }
- }]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_classification.json b/opensrp-bidan/src/main/res/assets/ec_client_classification.json
deleted file mode 100644
index 747e503..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_classification.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "case_classification_rules": [
- {
- "comment": "Child: This rule checks whether a given case belongs to Child register",
- "rule": {
- "type": "event",
- "fields": [
- {
- "field": "eventType",
- "field_value": "New Woman Registration",
- "creates_case": [
- "ec_mother"
- ]
- },
- {
- "field": "eventType",
- "field_value": "Birth Registration",
- "creates_case": [
- "ec_child"
- ]
- },
- {
- "field": "eventType",
- "field_value": "Update Birth Registration",
- "creates_case": [
- "ec_child"
- ]
- }
- ]
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_fields.json b/opensrp-bidan/src/main/res/assets/ec_client_fields.json
deleted file mode 100644
index b5cc320..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_fields.json
+++ /dev/null
@@ -1,372 +0,0 @@
-{
- "bindobjects": [
- {
- "name": "ec_mother",
- "columns": [
- {
- "column_name": "base_entity_id",
- "type": "Client",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "zeir_id",
- "type": "Client",
- "json_mapping": {
- "field": "identifiers.M_ZEIR_ID"
- }
- },
- {
- "column_name": "first_name",
- "type": "Client",
- "json_mapping": {
- "field": "firstName"
- }
- },
- {
- "column_name": "husband_name",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "father_name",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "dob",
- "type": "Client",
- "json_mapping": {
- "field": "birthdate"
- }
- },
- {
- "column_name": "epi_card_number",
- "type": "Client",
- "json_mapping": {
- "field": "attributes.EPI Card Number"
- }
- },
- {
- "column_name": "contact_phone_number",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "nrc_number",
- "type": "Client",
- "json_mapping": {
- "field": "attributes.NRC_Number"
- }
- },
- {
- "column_name": "provider_uc",
- "type": "Client",
- "json_mapping": {
- "field": "provider_uc"
- }
- },
- {
- "column_name": "provider_town",
- "type": "Client",
- "json_mapping": {
- "field": "provider_town"
- }
- },
- {
- "column_name": "provider_id",
- "type": "Client",
- "json_mapping": {
- "field": "provider_id"
- }
- },
- {
- "column_name": "provider_location_id",
- "type": "Client",
- "json_mapping": {
- "field": "provider_location_id"
- }
- },
- {
- "column_name": "client_reg_date",
- "type": "Event",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "last_name",
- "type": "Client",
- "json_mapping": {
- "field": "lastName"
- }
- },
- {
- "column_name": "gender",
- "type": "Client",
- "json_mapping": {
- "field": "gender"
- }
- },
- {
- "column_name": "marriage",
- "type": "Client",
- "json_mapping": {
- "field": "marriage"
- }
- },
- {
- "column_name": "town",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.town"
- }
- },
- {
- "column_name": "union_council",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.subTown"
- }
- },
- {
- "column_name": "address1",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.addressFields.address1"
- }
- },
- {
- "column_name": "address",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.addressType"
- }
- },
- {
- "column_name": "date",
- "type": "Event",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "last_interacted_with",
- "type": "Event",
- "json_mapping": {
- "field": "version"
- }
- }
- ]
- },
- {
- "name": "ec_child",
- "columns": [
- {
- "column_name": "base_entity_id",
- "type": "Client",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "zeir_id",
- "type": "Client",
- "json_mapping": {
- "field": "identifiers.ZEIR_ID"
- }
- },
- {
- "column_name": "inactive",
- "type": "Client",
- "json_mapping": {
- "field": "attributes.inactive"
- }
- },
- {
- "column_name": "lost_to_follow_up",
- "type": "Client",
- "json_mapping": {
- "field": "attributes.lost_to_follow_up"
- }
- },
- {
- "column_name": "relational_id",
- "type": "Client",
- "json_mapping": {
- "field": "relationships.mother"
- }
- },
- {
- "column_name": "first_name",
- "type": "Client",
- "json_mapping": {
- "field": "firstName"
- }
- },
- {
- "column_name": "last_name",
- "type": "Client",
- "json_mapping": {
- "field": "lastName"
- }
- },
- {
- "column_name": "gender",
- "type": "Client",
- "json_mapping": {
- "field": "gender"
- }
- },
- {
- "column_name": "mother_first_name",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "formSubmissionField": "Mother_Guardian_First_Name"
- }
- },
- {
- "column_name": "mother_last_name",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "formSubmissionField": "Mother_Guardian_Last_Name"
- }
- },
- {
- "column_name": "father_name",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "dob",
- "type": "Client",
- "json_mapping": {
- "field": "birthdate"
- }
- },
- {
- "column_name": "dod",
- "type": "Client",
- "json_mapping": {
- "field": "deathdate"
- }
- },
- {
- "column_name": "epi_card_number",
- "type": "Client",
- "json_mapping": {
- "field": "attributes.Child_Register_Card_Number"
- }
- },
- {
- "column_name": "contact_phone_number",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "pmtct_status",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "provider_uc",
- "type": "Client",
- "json_mapping": {
- "field": "provider_uc"
- }
- },
- {
- "column_name": "provider_town",
- "type": "Client",
- "json_mapping": {
- "field": "provider_town"
- }
- },
- {
- "column_name": "provider_id",
- "type": "Client",
- "json_mapping": {
- "field": "provider_id"
- }
- },
- {
- "column_name": "provider_location_id",
- "type": "Client",
- "json_mapping": {
- "field": "provider_location_id"
- }
- },
- {
- "column_name": "client_reg_date",
- "type": "Event",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "town",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.town"
- }
- },
- {
- "column_name": "union_council",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.subTown"
- }
- },
- {
- "column_name": "address1",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.addressFields.address1"
- }
- },
- {
- "column_name": "address",
- "type": "Client",
- "json_mapping": {
- "field": "addresses.addressType"
- }
- },
- {
- "column_name": "date",
- "type": "Event",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "last_interacted_with",
- "type": "Event",
- "json_mapping": {
- "field": "version"
- }
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_relationships.json b/opensrp-bidan/src/main/res/assets/ec_client_relationships.json
deleted file mode 100644
index da15059..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_relationships.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "client_relationship": "mother",
- "field": "entity_id",
- "comment": "this field is the name as it appears in the parent client document"
- }
-]
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_service.json b/opensrp-bidan/src/main/res/assets/ec_client_service.json
deleted file mode 100644
index b0f95d6..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_service.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "vaccines",
- "columns": [
- {
- "column_name": "base_entity_id",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "name",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "value_field": "formSubmissionField"
- }
- },
- {
- "column_name": "calculation",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "date",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "itn_date",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "159432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name":"itn_has_net",
- "json_mapping":{
- "field":"obs.fieldCode",
- "formSubmissionField":"Child_Has_Net"
- }
- },
- {
- "column_name": "anmid",
- "json_mapping": {
- "field": "providerId"
- }
- },
- {
- "column_name": "location_id",
- "json_mapping": {
- "field": "locationId"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_vaccine.json b/opensrp-bidan/src/main/res/assets/ec_client_vaccine.json
deleted file mode 100644
index 810aef0..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_vaccine.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "vaccines",
- "columns": [
- {
- "column_name": "base_entity_id",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "name",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "value_field": "formSubmissionField"
- }
- },
- {
- "column_name": "calculation",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "date",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "anmid",
- "json_mapping": {
- "field": "providerId"
- }
- },
- {
- "column_name": "location_id",
- "json_mapping": {
- "field": "locationId"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/ec_client_weight.json b/opensrp-bidan/src/main/res/assets/ec_client_weight.json
deleted file mode 100644
index 5d900bb..0000000
--- a/opensrp-bidan/src/main/res/assets/ec_client_weight.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "vaccines",
- "columns": [
- {
- "column_name": "base_entity_id",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "kg",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- },
- {
- "column_name": "date",
- "json_mapping": {
- "field": "eventDate"
- }
- },
- {
- "column_name": "anmid",
- "json_mapping": {
- "field": "providerId"
- }
- },
- {
- "column_name": "location_id",
- "json_mapping": {
- "field": "locationId"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/fonts/material-icon-font.ttf b/opensrp-bidan/src/main/res/assets/fonts/material-icon-font.ttf
deleted file mode 100644
index 06300f9..0000000
Binary files a/opensrp-bidan/src/main/res/assets/fonts/material-icon-font.ttf and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/assets/json.form/adverse_event.json b/opensrp-bidan/src/main/res/assets/json.form/adverse_event.json
deleted file mode 100644
index 9658b73..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/adverse_event.json
+++ /dev/null
@@ -1,150 +0,0 @@
-{
- "count": "1",
- "encounter_type": "AEFI",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location": ""
- },
- "step1": {
- "title": "Report an adverse event",
- "fields": [
- {
- "key": "Reaction_Vaccine",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "6042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "Vaccine that caused the reaction *",
- "values": [
- "BCG",
- "OPV",
- "Penta",
- "PCV",
- "Rota",
- "Measles",
- "MR"
- ],
- "openmrs_choice_ids": {
- "BCG": "149310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "OPV": "129578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Penta": "162265AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "PCV": "162266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Rota": "162272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Measles": "149286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "MR": "149286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "v_required": {
- "value": true,
- "err": "Please enter the vaccine that caused the reaction"
- }
- },
- {
- "key": "Date_Reaction",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1730AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "date_picker",
- "hint": "Date that the child started experiencing the reaction *",
- "expanded": false,
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Please enter the date child started experiencing reaction"
- }
- },
- {
- "key": "Reaction_Description",
- "openmrs_entity_parent": "111172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Describe the reaction *",
- "v_required": {
- "value": "true",
- "err": "Please describe the reaction"
- }
- },
- {
- "key": "Reaction_Referred",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1648AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "boolean",
- "type": "spinner",
- "hint": "Child referred? *",
- "values": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "true",
- "No": "false"
- },
- "v_required": {
- "value": true,
- "err": "Please specify if child was referred"
- }
- },
- {
- "key": "AEFI_Form_Completed",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163340AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "AEFI form completed?",
- "values": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/child_enrollment.json b/opensrp-bidan/src/main/res/assets/json.form/child_enrollment.json
deleted file mode 100644
index 92ef34d..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/child_enrollment.json
+++ /dev/null
@@ -1,498 +0,0 @@
-{
- "count": "1",
- "encounter_type": "Birth Registration",
- "mother": {
- "encounter_type": "New Woman Registration"
- },
- "entity_id": "",
- "relational_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location": "",
- "look_up": {
- "entity_id":"",
- "value":""
- }
- },
- "step1": {
- "title": "Birth Registration",
- "fields": [
- {
- "key": "Child_Photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Take a photo of the child"
- },
- {
- "key": "Home_Facility",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "tree",
- "hint": "Child's home health facility *",
- "tree": [],
- "v_required": {
- "value": true,
- "err": "Please enter the child's home facility"
- }
- },
- {
- "key": "ZEIR_ID",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_identifier",
- "openmrs_entity_id": "ZEIR_ID",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Child's BIDAN ID *",
- "scanButtonText": "Scan QR Code",
- "value": "0",
- "v_numeric": {
- "value": "true",
- "err": "Please enter a valid ID"
- },
- "v_required": {
- "value": "true",
- "err": "Please enter the Child's BIDAN ID"
- }
- },
- {
- "key": "Child_Register_Card_Number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Child_Register_Card_Number",
- "type": "edit_text",
- "hint": "Child's register card number"
- },
- {
- "key": "Child_Birth_Certificate",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Child_Birth_Certificate",
- "type": "edit_text",
- "hint": "Child's birth certificate number"
- },
- {
- "key": "First_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "type": "edit_text",
- "hint": "First name",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "Last_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "last_name",
- "type": "edit_text",
- "hint": "Last name *",
- "edit_type": "name",
- "v_required": {
- "value": "true",
- "err": "Please enter the last name"
- },
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "Sex",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Sex *",
- "values": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Please enter the sex"
- }
- },
- {
- "key": "Date_Birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "birthdate",
- "type": "date_picker",
- "hint": "Child's DOB *",
- "expanded": false,
- "duration": {
- "label": "Age"
- },
- "min_date": "today-5y",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Please enter the date of birth"
- }
- },
- {
- "key": "First_Health_Facility_Contact",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "date",
- "type": "date_picker",
- "hint": "Date first seen *",
- "expanded": false,
- "min_date": "today-5y",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Enter the date that the child was first seen at a health facility for immunization services"
- },
- "constraints": [
- {
- "type": "date",
- "ex": "greaterThanEqualTo(., step1:Date_Birth)",
- "err": "Date first seen can't occur before date of birth"
- }
- ]
- },
- {
- "key": "Birth_Weight",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Birth weight (kg) *",
- "v_min": {
- "value": "0.1",
- "err": "Weight must be greater than 0"
- },
- "v_numeric": {
- "value": "true",
- "err": "Enter a valid weight"
- },
- "v_required": {
- "value": "true",
- "err": "Enter the child's birth weight"
- }
- },
- {
- "key": "Mother_Guardian_First_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "entity_id": "mother",
- "type": "edit_text",
- "hint": "Mother/guardian first name *",
- "edit_type": "name",
- "look_up": "true",
- "v_required": {
- "value": "true",
- "err": "Please enter the mother/guardian's first name"
- },
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "Mother_Guardian_Last_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "last_name",
- "entity_id": "mother",
- "type": "edit_text",
- "hint": "Mother/guardian last name *",
- "edit_type": "name",
- "look_up": "true",
- "v_required": {
- "value": "true",
- "err": "Please enter the mother/guardian's last name"
- },
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "Mother_Guardian_Date_Birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "birthdate",
- "entity_id": "mother",
- "type": "date_picker",
- "hint": "Mother/guardian DOB",
- "look_up": "true",
- "expanded": false,
- "duration": {
- "label": "Age"
- },
- "min_date": "01-01-1900",
- "max_date": "today-10y"
- },
- {
- "key": "Mother_Guardian_NRC",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "NRC_Number",
- "entity_id": "mother",
- "type": "edit_text",
- "hint": "Mother/guardian NRC number",
- "v_regex": {
- "value": "([0-9]{6}/[0-9]{2}/[0-9])|\s*",
- "err": "Number must take the format of ######/##/#"
- }
- },
- {
- "key": "Mother_Guardian_Number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Mother/guardian phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(09[5-7][0-9]{7})|\s*",
- "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length"
- }
- },
- {
- "key": "Father_Guardian_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Father/guardian full name",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "Father_Guardian_NRC",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Father_NRC_Number",
- "type": "edit_text",
- "hint": "Father/guardian NRC number",
- "v_regex": {
- "value": "([0-9]{6}/[0-9]{2}/[0-9])|\s*",
- "err": "Number must take the format of ######/##/#"
- }
- },
- {
- "key": "Place_Birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "Place of birth *",
- "values": [
- "Health facility",
- "Home"
- ],
- "openmrs_choice_ids": {
- "Health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "v_required": {
- "value": true,
- "err": "Please enter the place of birth"
- }
- },
- {
- "key": "Birth_Facility_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "tree",
- "hint": "Which health facility was the child born in? *",
- "tree": [],
- "v_required": {
- "value": true,
- "err": "Please enter the birth facility name"
- },
- "relevance": {
- "step1:Place_Birth": {
- "type": "string",
- "ex": "equalTo(., \"Health facility\")"
- }
- }
- },
- {
- "key": "Birth_Facility_Name_Other",
- "openmrs_entity_parent": "163531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Other health facility *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please specify the health facility the child was born in"
- },
- "relevance": {
- "step1:Birth_Facility_Name": {
- "type": "string",
- "ex": "equalTo(., \"[\"Other\"]\")"
- }
- }
- },
- {
- "key": "Residential_Area",
- "openmrs_entity_parent": "usual_residence",
- "openmrs_entity": "person_address",
- "openmrs_entity_id": "address3",
- "openmrs_data_type": "text",
- "type": "tree",
- "hint": "Child's residential area *",
- "tree": [],
- "v_required": {
- "value": true,
- "err": "Please enter the child's residential area"
- }
- },
- {
- "key": "Residential_Area_Other",
- "openmrs_entity_parent": "usual_residence",
- "openmrs_entity": "person_address",
- "openmrs_entity_id": "address5",
- "type": "edit_text",
- "hint": "Other residential area *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please specify the residential area"
- },
- "relevance": {
- "step1:Residential_Area": {
- "type": "string",
- "ex": "equalTo(., \"[\"Other\"]\")"
- }
- }
- },
- {
- "key": "Residential_Address",
- "openmrs_entity_parent": "usual_residence",
- "openmrs_entity": "person_address",
- "openmrs_entity_id": "address2",
- "type": "edit_text",
- "hint": "Home address *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please enter the home address"
- }
- },
- {
- "key": "Physical_Landmark",
- "openmrs_entity_parent": "usual_residence",
- "openmrs_entity": "person_address",
- "openmrs_entity_id": "address1",
- "type": "edit_text",
- "hint": "Landmark",
- "edit_type": "name"
- },
- {
- "key": "CHW_Name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "CHW_Name",
- "type": "edit_text",
- "hint": "CHW name",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\s\.\-]*",
- "err": "Please enter a valid name"
- }
- },
- {
- "key": "CHW_Phone_Number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "CHW_Phone_Number",
- "type": "edit_text",
- "hint": "CHW phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(09[5-7][0-9]{7})|\s*",
- "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length"
- }
- },
- {
- "key": "PMTCT_Status",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "spinner",
- "hint": "HIV exposure",
- "values": [
- "CE",
- "MSU",
- "CNE"
- ],
- "openmrs_choice_ids": {
- "CE": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "MSU": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "CNE": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/hia2_monthly_report.json b/opensrp-bidan/src/main/res/assets/json.form/hia2_monthly_report.json
deleted file mode 100644
index 32f6b56..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/hia2_monthly_report.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "count": "1",
- "encounter_type": "HIA2 Monthly Report",
- "entity_id": "",
- "relational_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location": "",
- "look_up": {
- "entity_id": "",
- "value": ""
- }
- },
- "step1": {
- "title": "",
- "sections": []
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/out_of_catchment_service.json b/opensrp-bidan/src/main/res/assets/json.form/out_of_catchment_service.json
deleted file mode 100644
index 3c5b706..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/out_of_catchment_service.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "count": "1",
- "encounter_type": "Out of Catchment Service",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location":""
- },
- "step1": {
- "title": "Record out of catchment area service",
- "fields": [
- {
- "key": "ZEIR_ID",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "BIDAN ID *",
- "scanButtonText": "Scan QR Code",
- "read_only": true,
- "value": "",
- "v_required": {
- "value": "true",
- "err": "Enter the child's BIDAN ID"
- }
- },
- {
- "key": "OA_Service_Date",
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date",
- "type": "date_picker",
- "hint": "Service date *",
- "expanded": false,
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Enter the service date"
- }
- },
- {
- "key": "Weight_Kg",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Child's weight (kg)",
- "v_min": {
- "value": "0.1",
- "err": "Weight must be greater than 0"
- },
- "v_numeric": {
- "value": "true",
- "err": "Enter a valid weight"
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/report_deceased.json b/opensrp-bidan/src/main/res/assets/json.form/report_deceased.json
deleted file mode 100644
index 306af95..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/report_deceased.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "count": "1",
- "encounter_type": "Death",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location": ""
- },
- "step1": {
- "title": "Report Deceased",
- "fields": [
- {
- "key": "Date_of_Death",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "date",
- "type": "date_picker",
- "hint": "Date of death *",
- "expanded": false,
- "min_date": "01-01-1900",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Date cannot be past today's date"
- },
- "constraints": [
- {
- "type": "date",
- "ex": "greaterThanEqualTo(., step1:Date_Birth)",
- "err": "Date of death can't occur before date of birth"
- }
- ]
- },
- {
- "key": "Cause_Death",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Suspected cause of death",
- "edit_type": "name"
- },
- {
- "key": "Place_Death",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "Where did the death occur? *",
- "values": [
- "Health facility",
- "Home"
- ],
- "openmrs_choice_ids": {
- "Health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "v_required": {
- "value": "true",
- "err": "Please select one option"
- }
- },
- {
- "key": "Date_Birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "date_picker",
- "hint": "Child's DOB",
- "read_only": true,
- "hidden": true
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/stock_adjustment_form.json b/opensrp-bidan/src/main/res/assets/json.form/stock_adjustment_form.json
deleted file mode 100644
index 4afe813..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/stock_adjustment_form.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "count": "1",
- "encounter_type": "",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location":""
- },
- "step1": {
- "title": "[vaccine] Stock Loss/Adjustment",
- "fields": [
- {
- "key": "Date_Stock_loss_adjustment",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "date_picker",
- "hint": "Date of [vaccine] stock loss/adjustment *",
- "expanded": false,
- "min_date": "today-1m",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Enter the service date"
- }
- },
- {
- "key": "Reason_for_adjustment",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "select one",
- "type": "radio",
- "label": "Reason for [vaccine] adjustment *",
- "options":[
- {
- "key":"Physical_recount",
- "text":"Physical recount"
- },
- {
- "key":"Other",
- "text":"Other"
- }
- ],
- "value": "Physical_recount",
- "v_required": {
- "value": true,
- "err": ""
- }
- },
- {
- "key": "adjusted_Stock_TO_Other",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "edit_text",
- "hint": "Please specify: *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please specify where else the stock was adjusted from"
- },
- "relevance": {
- "step1:Reason_for_adjustment": {
- "type": "string",
- "ex": "equalTo(., \"Other\")"
- }
- }
- },
- {
- "key": "Vials_Adjustment",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Vials [vaccine] adjustment *",
- "number_picker":"true",
- "value": "0",
- "v_required": {
- "value": "true",
- "err": "Please enter the value for adjustment"
- },
- "v_regex": {
- "value": "-?[1-9]\\d*|0",
- "err": "Please enter a valid value"
- }
- },
- {
- "key":"Balance",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type":"label",
- "text":""
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/stock_issued_form.json b/opensrp-bidan/src/main/res/assets/json.form/stock_issued_form.json
deleted file mode 100644
index 3fc34c3..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/stock_issued_form.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "count": "1",
- "encounter_type": "",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location":""
- },
- "step1": {
- "title": "[vaccine] Stock Issued",
- "fields": [
- {
- "key": "Date_Stock_Issued",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "date_picker",
- "hint": "Date [vaccine] stock issued *",
- "expanded": false,
- "min_date": "today-1m",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Enter the service date"
- }
- },
- {
- "key": "Issued_Stock_To",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "select one",
- "type": "radio",
- "label": "Issued to *",
- "options":[
- {
- "key":"C/C",
- "text":"Children's Clinic (C/C)"
- },
- {
- "key":"Other",
- "text":"Other"
- }
- ],
- "value": "C/C",
- "v_required": {
- "value": true,
- "err": "Please enter the place where stock was issued"
- }
- },
- {
- "key": "Issued_Stock_TO_Other",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "edit_text",
- "hint": "Please specify: *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please specify where else the stock was received from"
- },
- "relevance": {
- "step1:Issued_Stock_To": {
- "type": "string",
- "ex": "equalTo(., \"Other\")"
- }
- }
- },
- {
- "key": "Vials_Issued",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Vials [vaccine] issued *",
- "v_min": {
- "value": "1",
- "err": "issued vials must be greater than 0"
- },
- "v_numeric": {
- "value": "true",
- "err": "Enter a valid vial number"
- },
- "v_required": {
- "value": "true",
- "err": "Enter the Vials Issued"
- }
- },
- {
- "key": "Vials_Wasted",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Wasted vials",
- "v_min": {
- "value": "0",
- "err": "value cannot be less than zero"
- },
- "v_numeric": {
- "value": "true",
- "err": "Enter a valid vial number"
- }
- },
- {
- "key":"Balance",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type":"label",
- "text":""
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/json.form/stock_received_form.json b/opensrp-bidan/src/main/res/assets/json.form/stock_received_form.json
deleted file mode 100644
index 9c5c942..0000000
--- a/opensrp-bidan/src/main/res/assets/json.form/stock_received_form.json
+++ /dev/null
@@ -1,142 +0,0 @@
-{
- "count": "1",
- "encounter_type": "",
- "entity_id": "",
- "metadata": {
- "start": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "start",
- "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "end": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "end",
- "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "today": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "encounter",
- "openmrs_entity_id": "encounter_date"
- },
- "deviceid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "deviceid",
- "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "subscriberid": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "subscriberid",
- "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "simserial": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "simserial",
- "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "phonenumber": {
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_data_type": "phonenumber",
- "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "encounter_location":""
- },
- "step1": {
- "title": "[vaccine] Stock Received",
- "fields": [
- {
- "key": "Date_Stock_Received",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "date_picker",
- "hint": "Date [vaccine] stock received *",
- "expanded": false,
- "min_date": "today-1m",
- "max_date": "today",
- "v_required": {
- "value": "true",
- "err": "Enter the service date"
- }
- },
- {
- "key": "Received_Stock_From",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "select one",
- "type": "radio",
- "label": "Received from *",
- "options":[
- {
- "key":"DHO",
- "text":"DHO"
- },
- {
- "key":"Other",
- "text":"Other"
- }
- ],
- "value": "DHO",
- "v_required": {
- "value": true,
- "err": "Please enter the place from where stock was received"
- }
- },
- {
- "key": "Received_Stock_From_Other",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "edit_text",
- "hint": "Please specify: *",
- "edit_type": "name",
- "v_required": {
- "value": true,
- "err": "Please specify where else the stock was received from"
- },
- "relevance": {
- "step1:Received_Stock_From": {
- "type": "string",
- "ex": "equalTo(., \"Other\")"
- }
- }
- },
- {
- "key": "Vials_Received",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "edit_text",
- "hint": "Vials [vaccine] received *",
- "v_min": {
- "value": "1",
- "err": "issued vials must be greater than 0"
- },
- "v_numeric": {
- "value": "true",
- "err": "Enter a valid vial number"
- },
- "v_required": {
- "value": "true",
- "err": "Enter the vials received"
- }
- },
- {
- "key":"Balance",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type":"label",
- "text":""
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/recurring_service_types.json b/opensrp-bidan/src/main/res/assets/recurring_service_types.json
deleted file mode 100644
index f5d4512..0000000
--- a/opensrp-bidan/src/main/res/assets/recurring_service_types.json
+++ /dev/null
@@ -1,456 +0,0 @@
-[
- {
- "type": "Vit A",
- "service_logic": "",
- "units": "IU",
- "openmrs_service_name": {
- "parent_entity": "",
- "entity": "concept",
- "entity_id": "161534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_date": {
- "parent_entity": "",
- "entity": "encounter",
- "entity_id": "encounter_date"
- },
- "services": [
- {
- "id": "10",
- "name": "Vit A IFC 2",
- "dose": "50,000",
- "schedule": {
- "due": {
- "reference": "dob",
- "offset": "+0d"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+6m"
- }
- }
- },
- {
- "id": "11",
- "name": "Vit A 1",
- "dose": "100,000",
- "schedule": {
- "due": {
- "reference": "multiple",
- "multiple": {
- "condition": "OR",
- "prerequisites": [
- "Vit A IFC 2",
- "dob"
- ]
- },
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "12",
- "name": "Vit A 2",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 1",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "13",
- "name": "Vit A 3",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 2",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "14",
- "name": "Vit A 4",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 3",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "15",
- "name": "Vit A 5",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 4",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "16",
- "name": "Vit A 6",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 5",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "17",
- "name": "Vit A 7",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 6",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "18",
- "name": "Vit A 8",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 7",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "19",
- "name": "Vit A 9",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 8",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "20",
- "name": "Vit A 10",
- "dose": "200,000",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Vit A 9",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- }
- ]
- },
- {
- "type": "Deworming",
- "service_logic": "",
- "units": "mg",
- "openmrs_service_name": {
- "parent_entity": "",
- "entity": "concept",
- "entity_id": "159922AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_date": {
- "parent_entity": "",
- "entity": "encounter",
- "entity_id": "encounter_date"
- },
- "services": [
- {
- "id": "1",
- "name": "Deworming 1",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "dob",
- "offset": "+12m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "2",
- "name": "Deworming 2",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 1",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "3",
- "name": "Deworming 3",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 2",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "4",
- "name": "Deworming 4",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 3",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "5",
- "name": "Deworming 5",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 4",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "6",
- "name": "Deworming 6",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 5",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "7",
- "name": "Deworming 7",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 6",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "8",
- "name": "Deworming 8",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 7",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "9",
- "name": "Deworming 9",
- "dose": "500",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "Deworming 8",
- "offset": "+6m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- }
- ]
- },
- {
- "type": "ITN",
- "service_logic": "",
- "units": "",
- "openmrs_service_name": {
- "parent_entity": "",
- "entity": "concept",
- "entity_id": "159855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_date": {
- "parent_entity": "",
- "entity": "date",
- "entity_id": "159432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "services": [
- {
- "id": "21",
- "name": "ITN 1",
- "dose": "",
- "schedule": {
- "due": {
- "reference": "dob",
- "offset": "+0d"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "22",
- "name": "ITN 2",
- "dose": "",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "ITN 1",
- "offset": "+12m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "23",
- "name": "ITN 3",
- "dose": "",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "ITN 2",
- "offset": "+12m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "24",
- "name": "ITN 4",
- "dose": "",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "ITN 3",
- "offset": "+12m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- },
- {
- "id": "25",
- "name": "ITN 5",
- "dose": "",
- "schedule": {
- "due": {
- "reference": "prerequisite",
- "prerequisite": "ITN 4",
- "offset": "+12m"
- },
- "expiry": {
- "reference": "dob",
- "offset": "+5y"
- }
- }
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/services.json b/opensrp-bidan/src/main/res/assets/services.json
deleted file mode 100644
index ba75344..0000000
--- a/opensrp-bidan/src/main/res/assets/services.json
+++ /dev/null
@@ -1,17 +0,0 @@
-[
- {
- "name": "Recurring Services",
- "id": "Recurring_Services",
- "services": [
- {
- "type": "Vit A"
- },
- {
- "type": "Deworming"
- },
- {
- "type": "ITN"
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/special_vaccines.json b/opensrp-bidan/src/main/res/assets/special_vaccines.json
deleted file mode 100644
index cec30d4..0000000
--- a/opensrp-bidan/src/main/res/assets/special_vaccines.json
+++ /dev/null
@@ -1,32 +0,0 @@
-[
- {
- "name": "BCG 2",
- "type": "BCG",
- "openmrs_date": {
- "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "BCG",
- "offset": "+84d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+1y"
- }
- ]
- }
- }
-]
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/sync_filters.json b/opensrp-bidan/src/main/res/assets/sync_filters.json
deleted file mode 100644
index c7dddcd..0000000
--- a/opensrp-bidan/src/main/res/assets/sync_filters.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "_id": "_design/cloudantFilter",
- "filters": {
- "locationId": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if ( doc.locationId != req.query.locationId ){ return false; } return true; }",
- "providerId": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if ( doc.providerId == req.query.providerId ){ return true; } return false; }",
- "team": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if(req.query.team){ if(req.query.team.split(',').indexOf(doc.providerId) >= 0){ return true; } } return false; }"
- }
-}
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/vaccine_type.json b/opensrp-bidan/src/main/res/assets/vaccine_type.json
deleted file mode 100644
index c6e1c62..0000000
--- a/opensrp-bidan/src/main/res/assets/vaccine_type.json
+++ /dev/null
@@ -1,44 +0,0 @@
-[
- {
- "doses": "20",
- "name": "BCG",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- },
- {
- "doses": "20",
- "name": "OPV",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- },
- {
- "doses": "1",
- "name": "Penta",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- },
- {
- "doses": "2",
- "name": "PCV",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- },
- {
- "doses": "1",
- "name": "Rota",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- },
- {
- "doses": "10",
- "name": "M/MR",
- "openmrs_parent_entity_id": "",
- "openmrs_date_concept_id": "",
- "openmrs_dose_concept_id": ""
- }
-]
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/assets/vaccines.json b/opensrp-bidan/src/main/res/assets/vaccines.json
deleted file mode 100644
index fa526f9..0000000
--- a/opensrp-bidan/src/main/res/assets/vaccines.json
+++ /dev/null
@@ -1,597 +0,0 @@
-[
- {
- "name": "Birth",
- "id": "Birth",
- "days_after_birth_due": 0,
- "vaccines": [
- {
- "name": "OPV 0",
- "type": "OPV",
- "openmrs_date": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 0
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+0d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+13d"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "OPV 4"
- }
- ]
- }
- },
- {
- "name": "BCG",
- "type": "BCG",
- "openmrs_date": {
- "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+0d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+1y"
- }
- ]
- }
- }
- ]
- },
- {
- "name": "6 Weeks",
- "id": "Six_Wks",
- "days_after_birth_due": 42,
- "vaccines": [
- {
- "name": "OPV 1",
- "type": "OPV",
- "openmrs_date": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+42d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,10m"
- }
- ]
- }
- },
- {
- "name": "Penta 1",
- "type": "Penta",
- "openmrs_date": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+42d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,10m"
- }
- ]
- }
- },
- {
- "name": "PCV 1",
- "type": "PCV",
- "openmrs_date": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+42d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,10m"
- }
- ]
- }
- },
- {
- "name": "Rota 1",
- "type": "Rota",
- "openmrs_date": {
- "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+42d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+7m"
- }
- ]
- }
- }
- ]
- },
- {
- "name": "10 Weeks",
- "id": "Ten_Wks",
- "days_after_birth_due": 70,
- "vaccines": [
- {
- "name": "OPV 2",
- "type": "OPV",
- "openmrs_date": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "OPV 1",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,11m"
- }
- ]
- }
- },
- {
- "name": "Penta 2",
- "type": "Penta",
- "openmrs_date": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "Penta 1",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,11m"
- }
- ]
- }
- },
- {
- "name": "PCV 2",
- "type": "PCV",
- "openmrs_date": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "PCV 1",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+4y,11m"
- }
- ]
- }
- },
- {
- "name": "Rota 2",
- "type": "Rota",
- "openmrs_date": {
- "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "Rota 1",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+8m"
- }
- ]
- }
- }
- ]
- },
- {
- "name": "14 Weeks",
- "id": "Fourteen_Weeks",
- "days_after_birth_due": 98,
- "vaccines": [
- {
- "name": "OPV 3",
- "type": "OPV",
- "openmrs_date": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 3
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "OPV 2",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+5y"
- }
- ]
- }
- },
- {
- "name": "Penta 3",
- "type": "Penta",
- "openmrs_date": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 3
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "Penta 2",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+5y"
- }
- ]
- }
- },
- {
- "name": "PCV 3",
- "type": "PCV",
- "openmrs_date": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 3
- },
- "schedule": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "PCV 2",
- "offset": "+28d",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+5y"
- }
- ]
- }
- }
- ]
- },
- {
- "name": "9 Months",
- "id": "Nine_Months",
- "days_after_birth_due": 274,
- "vaccines": [
- {
- "name": "Measles 1 / MR 1",
- "type": "Measles / MR",
- "vaccine_separator": " / ",
- "openmrs_date": {
- "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/162586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 1
- },
- "schedule": {
- "Measles 1": {
- "due": [
- {
- "reference": "dob",
- "offset": "+9m",
- "window": "+10d"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "MR 1"
- }
- ]
- },
- "MR 1": {
- "due": [
- {
- "reference": "dob",
- "offset": "+9m",
- "window": "+10d"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "Measles 1"
- }
- ]
- }
- }
- },
- {
- "name": "OPV 4",
- "type": "OPV",
- "openmrs_date": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 4
- },
- "schedule": {
- "due": [
- {
- "reference": "dob",
- "offset": "+9m",
- "window": "+10d"
- }
- ],
- "expiry": [
- {
- "reference": "dob",
- "offset": "+5y"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "OPV 0"
- },
- {
- "type": "given",
- "vaccine": "OPV 3",
- "comparison": "at_least",
- "value": "-28d"
- }
- ]
- }
- }
- ]
- },
- {
- "name": "18 Months",
- "id": "Eighteen_Months",
- "days_after_birth_due": 548,
- "vaccines": [
- {
- "name": "Measles 2 / MR 2",
- "type": "Measles / MR",
- "vaccine_separator": " / ",
- "openmrs_date": {
- "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/162586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- "openmrs_calculate": {
- "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "entity": "concept",
- "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "calculation": 2
- },
- "schedule": {
- "Measles 2": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "Measles 1",
- "offset": "+9m",
- "window": "+10d"
- },
- {
- "reference": "prerequisite",
- "prerequisite": "MR 1",
- "offset": "+9m"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "MR 2"
- }
- ]
- },
- "MR 2": {
- "due": [
- {
- "reference": "prerequisite",
- "prerequisite": "MR 1",
- "offset": "+9m",
- "window": "+10d"
- },
- {
- "reference": "prerequisite",
- "prerequisite": "Measles 1",
- "offset": "+9m"
- }
- ],
- "conditions": [
- {
- "type": "not_given",
- "vaccine": "Measles 2"
- }
- ]
- }
- }
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_add.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_add.png
new file mode 100755
index 0000000..8f619f8
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_clear.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_clear.png
new file mode 100755
index 0000000..4f145fa
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_clear.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_out_catchment.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_out_catchment.png
new file mode 100755
index 0000000..0f3d701
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_out_catchment.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_sync.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_sync.png
new file mode 100755
index 0000000..15b7d75
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_action_sync.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_add.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_add.png
new file mode 100644
index 0000000..ca5464f
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_bell.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_bell.png
new file mode 100644
index 0000000..9abfa61
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_bell.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_edit.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_edit.png
new file mode 100755
index 0000000..e85a83d
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_edit.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_search.png b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_search.png
new file mode 100644
index 0000000..a9d68be
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-hdpi/ic_icon_search.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_bg.xml b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_bg.xml
new file mode 100644
index 0000000..d5e0bb3
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_bg.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_disabled_bg.xml b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_disabled_bg.xml
new file mode 100644
index 0000000..108018b
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_disabled_bg.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_enabled_bg.xml b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_enabled_bg.xml
new file mode 100644
index 0000000..3ea4f7a
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable-mdpi/advanced_search_enabled_bg.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_add.png b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_add.png
new file mode 100755
index 0000000..ec72fc5
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_clear.png b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_clear.png
new file mode 100755
index 0000000..ef1f137
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_clear.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_out_catchment.png b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_out_catchment.png
new file mode 100755
index 0000000..8c70a2f
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_out_catchment.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_sync.png b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_sync.png
new file mode 100755
index 0000000..11b61d7
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-mdpi/ic_action_sync.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/hia_big.png b/opensrp-bidan/src/main/res/drawable-xhdpi/hia_big.png
new file mode 100644
index 0000000..39e92b3
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/hia_big.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_add.png b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_add.png
new file mode 100755
index 0000000..acf4ca0
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_clear.png b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_clear.png
new file mode 100755
index 0000000..5c79f8c
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_clear.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_out_catchment.png b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_out_catchment.png
new file mode 100755
index 0000000..47f8207
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_out_catchment.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_sync.png b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_sync.png
new file mode 100755
index 0000000..0a3016a
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_action_sync.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/ic_icon_status_inactive.png b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_icon_status_inactive.png
new file mode 100644
index 0000000..fa0b3d0
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/ic_icon_status_inactive.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/stockreg.png b/opensrp-bidan/src/main/res/drawable-xhdpi/stockreg.png
new file mode 100644
index 0000000..35ddf22
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/stockreg.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xhdpi/zeirbig.png b/opensrp-bidan/src/main/res/drawable-xhdpi/zeirbig.png
new file mode 100644
index 0000000..41cf090
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xhdpi/zeirbig.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_add.png b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_add.png
new file mode 100755
index 0000000..b71f579
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_clear.png b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_clear.png
new file mode 100755
index 0000000..910b9da
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_clear.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_out_catchment.png b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_out_catchment.png
new file mode 100755
index 0000000..3e16f5b
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_out_catchment.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_sync.png b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_sync.png
new file mode 100755
index 0000000..93e5295
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxhdpi/ic_action_sync.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_add.png b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_add.png
new file mode 100755
index 0000000..bf61ec1
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_add.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_clear.png b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_clear.png
new file mode 100755
index 0000000..1d7c1ef
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_clear.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_out_catchment.png b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_out_catchment.png
new file mode 100755
index 0000000..0330dcd
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_out_catchment.png differ
diff --git a/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_sync.png b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_sync.png
new file mode 100755
index 0000000..ff3cd44
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable-xxxhdpi/ic_action_sync.png differ
diff --git a/opensrp-bidan/src/main/res/drawable/advanced_search_rdb_stoke_color_list.xml b/opensrp-bidan/src/main/res/drawable/advanced_search_rdb_stoke_color_list.xml
new file mode 100644
index 0000000..4d4bd34
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable/advanced_search_rdb_stoke_color_list.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable/bg_texture_blue.png b/opensrp-bidan/src/main/res/drawable/bg_texture_blue.png
new file mode 100644
index 0000000..39ab381
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable/bg_texture_blue.png differ
diff --git a/opensrp-bidan/src/main/res/drawable/bidan_logo.png b/opensrp-bidan/src/main/res/drawable/bidan_logo.png
new file mode 100644
index 0000000..dcea566
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable/bidan_logo.png differ
diff --git a/opensrp-bidan/src/main/res/drawable/drawer_item_background.xml b/opensrp-bidan/src/main/res/drawable/drawer_item_background.xml
new file mode 100644
index 0000000..5742fb3
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable/drawer_item_background.xml
@@ -0,0 +1,18 @@
+
+
+ -
+
+ android:color="@android:color/white" />
+
+
+
+ -
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable/light_grey_background.xml b/opensrp-bidan/src/main/res/drawable/light_grey_background.xml
new file mode 100644
index 0000000..d0f49db
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable/light_grey_background.xml
@@ -0,0 +1,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable/message_box.png b/opensrp-bidan/src/main/res/drawable/message_box.png
new file mode 100644
index 0000000..434121a
Binary files /dev/null and b/opensrp-bidan/src/main/res/drawable/message_box.png differ
diff --git a/opensrp-bidan/src/main/res/drawable/name_inits_bg.xml b/opensrp-bidan/src/main/res/drawable/name_inits_bg.xml
new file mode 100644
index 0000000..881ee0e
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable/name_inits_bg.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/drawable/round_white_background.xml b/opensrp-bidan/src/main/res/drawable/round_white_background.xml
new file mode 100644
index 0000000..a6f3dfa
--- /dev/null
+++ b/opensrp-bidan/src/main/res/drawable/round_white_background.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/activity_main_bidan.xml b/opensrp-bidan/src/main/res/layout/activity_main_bidan.xml
new file mode 100644
index 0000000..bd4f806
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/activity_main_bidan.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/advanced_search_list.xml b/opensrp-bidan/src/main/res/layout/advanced_search_list.xml
new file mode 100644
index 0000000..354e2fa
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/advanced_search_list.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/advanced_search_section.xml b/opensrp-bidan/src/main/res/layout/advanced_search_section.xml
new file mode 100644
index 0000000..3cc5968
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/advanced_search_section.xml
@@ -0,0 +1,12 @@
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/custom_nav_view_base.xml b/opensrp-bidan/src/main/res/layout/custom_nav_view_base.xml
new file mode 100644
index 0000000..388f04d
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/custom_nav_view_base.xml
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/nav_header_base.xml b/opensrp-bidan/src/main/res/layout/nav_header_base.xml
new file mode 100644
index 0000000..f8c43ee
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/nav_header_base.xml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/opensrp-bidan/src/main/res/layout/smart_register_nav_bar_customized.xml b/opensrp-bidan/src/main/res/layout/smart_register_nav_bar_customized.xml
new file mode 100644
index 0000000..4a03955
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/smart_register_nav_bar_customized.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/layout/smart_registers_home_bidan.xml b/opensrp-bidan/src/main/res/layout/smart_registers_home_bidan.xml
new file mode 100644
index 0000000..4e7bf4e
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/smart_registers_home_bidan.xml
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/opensrp-bidan/src/main/res/layout/tool_bar.xml b/opensrp-bidan/src/main/res/layout/tool_bar.xml
new file mode 100644
index 0000000..3417296
--- /dev/null
+++ b/opensrp-bidan/src/main/res/layout/tool_bar.xml
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher.png b/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index cde69bc..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher_round.png b/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 9a078e3..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-hdpi/logo.png b/opensrp-bidan/src/main/res/mipmap-hdpi/logo.png
new file mode 100644
index 0000000..ac362e9
Binary files /dev/null and b/opensrp-bidan/src/main/res/mipmap-hdpi/logo.png differ
diff --git a/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher.png b/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index c133a0c..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher_round.png b/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index efc028a..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-mdpi/logo.png b/opensrp-bidan/src/main/res/mipmap-mdpi/logo.png
new file mode 100644
index 0000000..ac362e9
Binary files /dev/null and b/opensrp-bidan/src/main/res/mipmap-mdpi/logo.png differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher.png b/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index bfa42f0..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index 3af2608..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xhdpi/logo.png b/opensrp-bidan/src/main/res/mipmap-xhdpi/logo.png
new file mode 100644
index 0000000..ac362e9
Binary files /dev/null and b/opensrp-bidan/src/main/res/mipmap-xhdpi/logo.png differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher.png b/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 324e72c..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index 9bec2e6..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xxhdpi/logo.png b/opensrp-bidan/src/main/res/mipmap-xxhdpi/logo.png
new file mode 100644
index 0000000..ac362e9
Binary files /dev/null and b/opensrp-bidan/src/main/res/mipmap-xxhdpi/logo.png differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index aee44e1..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index 34947cd..0000000
Binary files a/opensrp-bidan/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/opensrp-bidan/src/main/res/values-in/strings.xml b/opensrp-bidan/src/main/res/values-in/strings.xml
new file mode 100644
index 0000000..504fc84
--- /dev/null
+++ b/opensrp-bidan/src/main/res/values-in/strings.xml
@@ -0,0 +1,491 @@
+
+
+
+ Masukan user name
+ Masukan kata kunci
+ Log Masuk
+ logo
+ spacer
+ Memuat…
+ Tolong tunggu
+ Log masuk gagal
+ Tolong cek masukan, apa sudah benar
+
+ Apa kamu yakin untuk kembali? Semua data yang telah dimasukan di form ini akan di hapus.
+
+ Konfirmasi penutupan form
+ Iya
+ Tidak
+ ANC Ke:
+ PNC Visit
+ Nama (Z ke A)
+ Umur
+ EC Number
+ Tanggal Persalinan
+ SC
+ ST
+ Prioritas Tinggi (PT)
+ HRP
+ BPL
+ Dusun
+ Nama (A ke Z)
+ Resiko Tinggi (RT)
+ No Ibu
+ Hari Tafsiran Persalinan (HTP)
+ Keluarga Berencana (KB)
+
+ Nama
+ No Ec.
+ GPLSA
+ Metode FP
+ Anak
+ Status
+
+
+ ANAK
+ NAMA
+ Tgl Periksa
+ HTP
+ Kunjungan
+ No Ibu
+ STATUS
+ OBSETRI
+
+ Kartu Ibu
+ KB
+ Cari
+
+ Semua Eligible Couples
+ Cari EC Register
+ Cari FP Register
+ Cari PNC Register
+ Cari Child Register
+ Diurutkan Berdasar:
+ , Dusun:
+ ({0})
+
+ Laki\n{0}
+ Perempuan\n{0}
+ Tidak ada FP
+
+ Kelahiran:
+ LMP:
+ EDD:
+ ANC
+ PNC
+ FP
+ No. strips:
+ No. Given:
+ G
+ P
+ L
+ S
+ A
+
+ Semua
+ O/A
+ L/P
+ EC:
+ KI
+ KB
+
+ Daftar ANC
+ Daftar KB
+ Dokumentasi Persalinan
+ Rencana Persalinan
+
+ Daftar PNC
+ Register KB
+ Register Anak
+ FP Change
+ Change FP
+ Record ECP
+ Edit EC
+ Close EC
+ 26/03 - 25/04
+ Ubah Bahasa
+ Edit Kartu Ibu
+ Tutup Kartu Ibu
+ Update KB
+ Edit KB
+ Tutup KB
+
+
+ Register Anak
+ Tutup Anak
+ Imunisasi Bayi
+ Edit Anak
+ Kunjungan Bayi
+ Kunjungan Balita
+ Kunjungan Neonatal
+ KUNJ NEONATAL
+ Kunjungan
+ Edit ANC
+ Edit PNC
+ PNC Visit
+ Postpartum KB
+ Tanggal Lahir :
+
+
+ Resiko
+ Trimester
+ Imunisasi
+ Usia Klinis
+ Komplikasi
+ Kondisi
+ Dok Persalinan
+ Tanda Vital
+ Pemeriksaan
+
+ Riwayat Kunjungan
+ Persalinan Di
+ Tidak bisa memutar video.
+ Tidak bisa memutar video dikarenakan kesalahan teknis.
+ Mohon pasang aplikasi IEC untuk memutar video.
+ Efek Samping
+ Tutup PNC
+ "HTP: "
+
+ Kontrasepsi
+ Pelayanan
+ Metode
+ Faktor Risk
+ Tanggal Lahir
+ Tgl Lahir
+ Dok Prsalinan
+
+ Bidan OpenSRP
+
+ Eligible Couple
+ FP
+ ANC
+ PNC
+ Child
+ Reporting
+ Register
+ Videos
+
+ Confirm Log out
+ Are you sure you want to log out? All the data will be
+ cleared.
+
+ forms unsynced
+
+ "Next >>"
+ "<< Previous"
+ Page {0} of {1}
+
+ Gravida
+ Parity
+ Abortus
+ Alive
+
+ (O/A)
+
+ Kunjungan ANC
+ Hb Test
+ IFA
+ TT
+ Delivery Plan
+ PNC Registration
+ ANC Investigations
+ Kartu Partograf
+ Tutup ANC
+ Tidak ada komplikasi
+
+ Reporting
+ Videos
+
+ Anak
+ Overview
+ Imunisasi
+ Imunisasi 0-9
+ Imunisasi 9+
+ ID NO
+ SICK STATUS
+ BCG
+ HEP B BIRTH
+ OPV
+ PENTAVALENT
+ MEASLES
+ OPV BOOSTER
+ DPT BOOSTER
+ VITAMIN A
+ Thayi:
+ Mother EC:
+ Age
+ HR
+ Child Immunizations
+ Child Illness
+ Child Close
+ Vitamin A
+ PNC
+ Pentavalent 2
+ BCG
+ Pentavalent 3
+ Pentavalent 1
+ OPV 0
+ OPV 1
+ OPV 2
+ OPV 3
+ DPT Boost. 1
+ DPT Boost. 2
+ OPV Boost
+ Measles
+ Measles Booster
+ Measles B
+ Hep B
+ JE
+ MMR
+ Vitamin A
+ Illness Visit
+
+ Sick Visit
+ Illness Report: %s
+ Date:
+ BCG
+ Pada
+ Hep B
+ OPV
+ TT
+ IFA
+ Pentavalent
+ Measles
+ OPV Booster
+ DPT Booster
+ Vitamin A
+ Pentav 1
+ Pentav 2
+ Pentav 3
+ DPT B1
+ DPT B2
+ Pentav
+ STATUS
+ Suhu:
+
+ FP
+ PNC
+ SIDE EFFECTS
+ FOLLOW UP/REFILL
+ RISKS
+ Condom
+ DMPA/Injectable
+ IUCD
+ OCP
+ Female Sterilization
+ Male Sterilization
+ Others
+
+ ECP
+ Traditional Methods
+ LAM
+ Centchroman
+ None - PS
+ None - SS
+
+ All EC
+ High Priority (HP)
+ 2+ Children
+ 1 Child
+ Anak
+ "Due "
+ Jenis:
+ FP Prioritization
+ Add FP
+ FP Videos
+
+ THAYI NO.
+ DELIVERY INFO
+ COMPLICATIONS
+ PP FP
+ Anak
+ Hari Lagi
+ FIRST 7 DAYS
+ PNC VISITS
+ Overview
+ PNC Visits
+ Kunjungan PNC
+ Postpartum KB
+ Referred
+ referral
+ follow-up
+ refill
+ Update
+ ANC:
+ Hb Test
+ day (s) past due
+ LMP:
+ Minggu
+ ANC
+ BP
+ Berat
+ Search ANC Register
+ Overview
+ ANC Visits
+ TT
+ Hb/IFA
+ Delivery Plan
+ " g/dl
+ " Tablets
+ ID
+ ANC STATUS
+ PLAN
+ UPDATE REFILL
+ ANC1
+ ANC2
+ ANC3
+ ANC4
+ Other
+ VISITS
+ TT
+ TT 1
+ TT 2
+ TT Booster
+ IFA
+ HB
+ DELIVERY PLAN
+ Transport:
+ Has companion:
+ Asha:
+ Contact:
+ Risks reviewed:
+ Tgl:
+ Place:
+ Type:
+ PP FP
+ Wt: %1$s kg
+ PNC
+ expected
+ actual
+ done
+ missed
+ yellow
+ green
+ red
+ ari
+ sam
+ PNC Visit
+ Hb
+ BCG/Pol1
+ DPT/HB1/Pol2
+ DPT/HB2/Pol3
+ DPT/HB3/Pol4
+ Campak
+ "Pilih nama lagi"
+ "Bidan"
+ Daftar resiko yang dimiliki
+ Daftar resiko yang dimiliki
+ Resiko
+
+ Lihat lebih...
+ Sembunyikan . . .
+ Ibu sudah terdaftar di ANC
+ Ibu sudah terdaftar di PNC
+ Kunjungan ANC Integrasi
+ Kunjungan ANC Tes Lab
+ bulan lagi
+ bulan ini
+ sudah melahirkan
+ Berat Badan:
+ LILA:
+
+ HTP:
+ Tempat:
+ Tipe:
+ Ibu
+ ANAK
+ Tgl Lahir:
+ Tmpt:
+ B.Lahir:
+ Tgl Kunj.:
+ ANAK
+ KOHORT IBU
+ KOHORT KB
+
+ Nama Ibu:
+ Nama Ayah:
+ Status Pelayanan: ANC
+ Status Pelayanan: PNC
+ Kunjungan Ke:
+ Tgl Kunj:
+ NAMA:
+ NIK:
+ Nama Suami:
+ Tanggal Lahir:
+ No HP:
+
+
+ Informasi Dasar
+ Resiko
+ DesaDusun
+ Dusun
+ Umur
+ Alamat Domisili
+ Pendidikan
+ Agama
+ Pekerjaan
+ Gakin
+ Asuransi
+ Golongan Darah
+
+
+ Ibu Terlalu Muda:
+ Ibu Terlalu Tua:
+ Kekurangan Energi Kronis:
+ Riwayat Abortus:
+ Riwayat Cesar:
+ Ringkasan Resiko:
+ Resiko TInggi HIV/AIDS
+ Resiko Tinggi STIBBVs
+ Resiko TInggi Ectopic Kehamilan
+ Penyakit jantung Rekam
+ Gangguan ginjal
+ Gangguan jantung
+ Asthma
+ Tuberculosis
+ Resiko Tinggi Malaria
+ Resiko Tinggi Kehamilan PIH
+ Resiko Tinggi Kehamilan Diabetes
+ Resiko Tinggi Kehamilan Anemia
+ Resiko Tinggi persalinan Malpresentasi Janin
+ Resiko Tinggi persalinan Besar Janin
+ Resiko Tinggi persalinan Jumlah Janin
+ Resiko Tinggi persalinan TB
+ Resiko Tinggi persalinan Banyak Anak
+ Resiko Tinggi Post Partum Forceps
+ Resiko Tinggi PostPartum Vacum
+ Resiko Tinggi PostPartum PreEclampsia/ Eclampsia
+ Resiko Tinggi PostPartum Maternal Sepsis
+ Resiko Tinggi Infeksi PostPartum
+ Resiko Tinggi PostPartum Hemorrhage
+ Resiko Tinggi PostPartum PIH
+ Resiko Tinggi PostPartum Distosia
+ Resiko Tinggi PostPartum Sectio Caesaria
+ Resiko Tinggi PostPartum Sectio Caesaria
+ Jenis Kontrasepsi
+ Systolic
+ Diastolic
+ ALKI /HB
+ ALKI / LILA
+ ALKI / Penyakit Kronis
+ ALKI /Ims
+ Keterangan tentang peserta KB
+ Keterangan Ganti Cara
+ Ringkasan
+ Usia Klinis:
+ STATUS KLINIS
+ Tinggi:
+ Bln
+ Status Pelayanan: KB
+ Tgl Persalinan:
+ HTP sudah lewat
+ FE:
+
+ Status Gizi:
+ Mother already registered
+ kia-report.sid-indonesia.org/login/auth
+
+ BIDAN
+ No HP:
+
+
diff --git a/opensrp-bidan/src/main/res/values/colors.xml b/opensrp-bidan/src/main/res/values/colors.xml
index 3ab3e9c..58b53b2 100644
--- a/opensrp-bidan/src/main/res/values/colors.xml
+++ b/opensrp-bidan/src/main/res/values/colors.xml
@@ -3,4 +3,103 @@
#3F51B5
#303F9F
#FF4081
-
+
+ #ffffff
+ #000000
+ #A9A9A9
+ #CCCCCC
+ #999999
+ #EE999999
+ #B5B5B5
+
+ #208CC5
+ #737373
+ #ff196d99
+
+
+ #219e05
+ #29C606
+ #b8f5b2
+ #2b84c1
+ #35a6e2
+ #d4edfa
+ #b73bb6
+ #de47dc
+ #f7dbf7
+
+ #358CB7
+ #ddf0fa
+ #276C91
+ #358CB7
+ #737373
+
+ #494949
+ #616161
+
+ #585858
+ #3e3e3e
+ #212121
+
+ #FFED18
+ #3D9EC9
+
+ #aa737373
+ #494949
+ #eeff1c
+
+ #1a93d2
+
+ #d9d9d9
+ #494949
+ #f5f5f5
+ #333333
+ #389cc8
+ #e6e6e6
+ #389cc8
+ #004C99
+ #EEB4B4
+ #44ffffff
+ #44389cc8
+ #bb389cc8
+ #1a1a1a
+ #494949
+
+ #cae2ed
+ #F04646
+ #389cc8
+ #25aa4a
+ #FFBB04
+
+ #f5f5f5
+
+ #EDCA00
+ #d13f3f
+ #25aa4a
+
+ #43ae23
+ #d13f3f
+ #edca00
+
+ #2b475e
+
+ #4fb45b
+
+
+ #a3c639
+ #85a71d
+ #ff0
+ #ccc
+ #e91e63
+
+
+ #008be6
+ #3495bf
+ #389cc8
+ #267ea5
+ #ebebeb
+ #f4f4f4
+ #d8d8d8
+ #227532
+ #b1312c
+ #222539
+
diff --git a/opensrp-bidan/src/main/res/values/dimens.xml b/opensrp-bidan/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..155cb4d
--- /dev/null
+++ b/opensrp-bidan/src/main/res/values/dimens.xml
@@ -0,0 +1,112 @@
+
+
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 0dp
+ 72dp
+ 1dp
+ 65dp
+ 65dp
+ 5dp
+ 5dp
+ 5dp
+ 35dp
+ 32dp
+ 5dp
+ 30dp
+ 3dp
+ 5dp
+ 16sp
+ 19sp
+ 24sp
+ 22sp
+ 49dp
+ 30dp
+ 25dp
+ 50dp
+ 120dp
+ 16sp
+ 150dp
+ 50dp
+ 80dp
+ 50dp
+ 1dp
+ 10dp
+ 2dp
+ 22sp
+ 50dp
+ 540dp
+ 10dp
+ 3dp
+ 22dp
+ 22dp
+ 45dp
+ 15dp
+ 10dp
+ 5dp
+ 25dp
+ 25dp
+
+ 20dp
+ 20dp
+ 16dp
+ 8dp
+ 30dp
+
+ 100dp
+ 24dp
+ 50dp
+ 3dp
+ 18sp
+ 14sp
+ 10dp
+ 5dp
+ 2.5dp
+ 16dp
+ 100dp
+ 100dp
+ 90dp
+ 14dp
+ 80dp
+ 2dp
+ 350dp
+ 130dp
+ 200dp
+ 28dp
+ 20dp
+ 16dp
+ 5dp
+ 20sp
+ 16sp
+ 10dp
+ 20dp
+ 150dp
+ 70dp
+ 70dp
+ 22sp
+ 33dp
+ 5dp
+ 1.5dp
+ 350dp
+ 20dp
+ 15dp
+ 18sp
+ 85dp
+ 85dp
+ 35dp
+ 175dp
+ 19.5sp
+ 11.5sp
+
diff --git a/opensrp-bidan/src/main/res/values/strings.xml b/opensrp-bidan/src/main/res/values/strings.xml
index da04b6d..6de230f 100644
--- a/opensrp-bidan/src/main/res/values/strings.xml
+++ b/opensrp-bidan/src/main/res/values/strings.xml
@@ -4,5 +4,52 @@
No internet connection. Please ensure data connectivity
Login failed. Try later
Please check the credentials
+ CHILDREN
+ KOHORT MOTHER
+ KOHORT KB
+
+ Sync%1$s
+ (last %1$s)
+ Open navigation drawer
+ Close navigation drawer
+ Search limits
+ Client status
+ Active
+ Inactive
+
+ Lost to Follow-Up
+ Lost to\nFollow-Up
+ status
+
+ ZEIR ID
+ ZEIR ID number
+ First Name
+ First name
+ Last Name
+ Last name
+ Mother/Guardian Name
+ Mother or guardian name
+ Mother/Guardian NRC
+ Mother or guardian NRC number
+ Mother/Guardian Phone Number
+ Mother or guardian phone number
+ Date of birth range
+ Select start date
+ Select end date
+ Please update at least one search parameter
+ No vaccination record found
+ %1$s matching results found
+ "Check for child's BCG scar"
+ Confirm move
+ Edit
+ Save
+ Search
+ Cancel
+ Advanced Search
+ No Records Found
+ Search name or ID
+ Alphabetical (Name)
+ BIDAN ID
+
diff --git a/opensrp-bidan/src/main/res/values/styles.xml b/opensrp-bidan/src/main/res/values/styles.xml
index 512797e..ed0d956 100644
--- a/opensrp-bidan/src/main/res/values/styles.xml
+++ b/opensrp-bidan/src/main/res/values/styles.xml
@@ -1,13 +1,144 @@
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+