From 52b7458fa53e17119ee05815514f6748ac507418 Mon Sep 17 00:00:00 2001 From: maulidkategile Date: Sat, 17 Sep 2022 20:33:46 +0300 Subject: [PATCH 1/2] create summary's user interface --- .../chw/hf/fragment/LDAmtslSummary.java | 25 + .../res/layout/fragment_ld_amtsl_summary.xml | 594 ++++++++++++++++++ .../src/main/res/values/strings.xml | 20 + 3 files changed, 639 insertions(+) create mode 100644 opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java create mode 100644 opensrp-chw-hf/src/main/res/layout/fragment_ld_amtsl_summary.xml diff --git a/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java b/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java new file mode 100644 index 000000000..727803d2f --- /dev/null +++ b/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java @@ -0,0 +1,25 @@ +package org.smartregister.chw.hf.fragment; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import org.smartregister.chw.hf.R; + +public class LDAmtslSummary extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + return inflater.inflate(R.layout.fragment_ld_amtsl_summary, container, false); + } +} \ No newline at end of file diff --git a/opensrp-chw-hf/src/main/res/layout/fragment_ld_amtsl_summary.xml b/opensrp-chw-hf/src/main/res/layout/fragment_ld_amtsl_summary.xml new file mode 100644 index 000000000..de95c8e9d --- /dev/null +++ b/opensrp-chw-hf/src/main/res/layout/fragment_ld_amtsl_summary.xml @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/opensrp-chw-hf/src/main/res/values/strings.xml b/opensrp-chw-hf/src/main/res/values/strings.xml index 8fc082ea8..68e122bd6 100644 --- a/opensrp-chw-hf/src/main/res/values/strings.xml +++ b/opensrp-chw-hf/src/main/res/values/strings.xml @@ -443,5 +443,25 @@ Allow Phone Number Collection Facility Healthcare Worker collect user phone numbers to be used for monitoring, evaluation and analysis of visits conducted by clients at the health facility. + Uterotonic + Placenta and Membrane + The method used to remove/deliver the placenta + Expulsion of the Placenta and Membranes + Type of incomplete placenta + Was the placenta/product removed by hand? + MVA.D&C was conducted? + Was the client administered antibiotics ? + Removal Date + How long did it take to remove the placenta? (In minutes) + Estimated blood loss (mls) + Provided blood transfusion? + Name of the Provider who removed the placenta + Uterus Massage + Massage the Uterus after delivery of placenta + Reason for not massaging uterus after delivery + Pre-Eclampsia and Eclampsia Management + Does the client have signs of pre-eclampsia/eclampsia? + Was the client administered Magnesium Sulphate? + Reason for not administering magnesium sulphate From e6d0d987a48ee09c0b47130512a56ccfaf64b8c1 Mon Sep 17 00:00:00 2001 From: maulidkategile Date: Sat, 17 Sep 2022 20:57:52 +0300 Subject: [PATCH 2/2] find the textviews by their ids --- .../chw/hf/fragment/LDAmtslSummary.java | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java b/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java index 727803d2f..6ffa297c9 100644 --- a/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java +++ b/opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/fragment/LDAmtslSummary.java @@ -7,10 +7,28 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.TextView; import org.smartregister.chw.hf.R; public class LDAmtslSummary extends Fragment { + private TextView uterotonic; + private TextView method_used_to_remove_the_placenta; + private TextView placenta_and_membrane_expulsion; + private TextView type_of_incomplete_placenta; + private TextView placenta_removed_by_hand; + private TextView conducted_mva; + private TextView administered_antibiotics; + private TextView removal_date; + private TextView removal_duration; + private TextView estimated_blood_loss; + private TextView provided_blood_transfusion; + private TextView name_of_the_provider_who_removed_the_placenta; + private TextView uterus_massage_after_delivery; + private TextView reason_for_not_massaging_uterus_after_delivery; + private TextView has_signs_of_eclampsia; + private TextView administered_magnesium_sulphate; + private TextView reason_for_not_administering_magnesium_sulphate; @Override public void onCreate(Bundle savedInstanceState) { @@ -20,6 +38,24 @@ public void onCreate(Bundle savedInstanceState) { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - return inflater.inflate(R.layout.fragment_ld_amtsl_summary, container, false); + View rootView = inflater.inflate(R.layout.fragment_ld_amtsl_summary, container, false); + uterotonic = rootView.findViewById(R.id.amtsl_uterotonic); + method_used_to_remove_the_placenta = rootView.findViewById(R.id.amtsl_method_used_to_remove_the_placenta); + placenta_and_membrane_expulsion = rootView.findViewById(R.id.amtsl_placenta_and_membrane_expulsion); + type_of_incomplete_placenta = rootView.findViewById(R.id.amtsl_type_of_incomplete_placenta); + placenta_removed_by_hand = rootView.findViewById(R.id.amtsl_placenta_removed_by_hand); + conducted_mva = rootView.findViewById(R.id.amtsl_conducted_mva); + administered_antibiotics = rootView.findViewById(R.id.amtsl_administered_antibiotics); + removal_date = rootView.findViewById(R.id.amtsl_removal_date); + removal_duration = rootView.findViewById(R.id.amtsl_removal_duration); + estimated_blood_loss = rootView.findViewById(R.id.amtsl_estimated_blood_loss); + provided_blood_transfusion = rootView.findViewById(R.id.amtsl_provided_blood_transfusion); + name_of_the_provider_who_removed_the_placenta = rootView.findViewById(R.id.amtsl_name_of_the_provider_who_removed_the_placenta); + uterus_massage_after_delivery = rootView.findViewById(R.id.amtsl_uterus_massage_after_delivery); + reason_for_not_massaging_uterus_after_delivery = rootView.findViewById(R.id.amtsl_reason_for_not_massaging_uterus_after_delivery); + has_signs_of_eclampsia = rootView.findViewById(R.id.amtsl_has_signs_of_eclampsia); + administered_magnesium_sulphate = rootView.findViewById(R.id.amtsl_administered_magnesium_sulphate); + reason_for_not_administering_magnesium_sulphate = rootView.findViewById(R.id.amtsl_reason_for_not_administering_magnesium_sulphate); + return rootView; } } \ No newline at end of file