From c5f90dba03abf11a6406d84916daf63d9a60b4cb Mon Sep 17 00:00:00 2001 From: qaziabubakar-vd Date: Mon, 27 Jun 2022 12:37:41 +0500 Subject: [PATCH 1/4] add child mauc color spinner --- .../assets/json.form/child_sick_form.json | 19 +++++++++++++++---- .../main/resources/child_sick_form.properties | 5 ++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/opensrp-chw/src/main/assets/json.form/child_sick_form.json b/opensrp-chw/src/main/assets/json.form/child_sick_form.json index 1e74e1c0a5..f7d42aa9cc 100644 --- a/opensrp-chw/src/main/assets/json.form/child_sick_form.json +++ b/opensrp-chw/src/main/assets/json.form/child_sick_form.json @@ -4123,15 +4123,26 @@ }, { "key": "muac", - "type": "edit_text", + "type": "spinner", "openmrs_entity": "concept", "openmrs_entity_id": "1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "openmrs_entity_parent": "", "edit_type": "number", "hint": "{{child_sick_form.step9.muac.hint}}", - "v_required": { - "value": "true", - "err": "{{child_sick_form.step9.muac.v_required.err}}" + "values": [ + "{{child_sick_form.step9.muac.value[0]}}", + "{{child_sick_form.step9.muac.value[1]}}", + "{{child_sick_form.step9.muac.value[2]}}" + ], + "keys": [ + "Green", + "Yellow", + "Red" + ], + "openmrs_choice_ids": { + "Green": "green", + "Yellow": "yellow", + "Red": "red" } }, { diff --git a/opensrp-chw/src/main/resources/child_sick_form.properties b/opensrp-chw/src/main/resources/child_sick_form.properties index 8a0fb3c7e6..b366328e70 100644 --- a/opensrp-chw/src/main/resources/child_sick_form.properties +++ b/opensrp-chw/src/main/resources/child_sick_form.properties @@ -284,7 +284,10 @@ child_sick_form.step6.malaria_treat.options.paracetamol_mal.text = Given one dos child_sick_form.step6.measles_symptoms.options.measles_runny_nose.text = Runny nose child_sick_form.step6.malaria_treat_note.toaster_info_text = MALARIA child_sick_form.step6.fever_note.text = By history or feels hot or temperature 37.5°C* or above. -child_sick_form.step9.muac.hint = What is the child's MUAC reading (in mm)? +child_sick_form.step9.muac.hint = What is the child's MUAC reading in color? +child_sick_form.step9.muac.value[0]=Green +child_sick_form.step9.muac.value[1]=Yellow +child_sick_form.step9.muac.value[2]=Red child_sick_form.step9.sev_acute_maln_treat.options.sam_maln_return.text = Advised mother when to return immediately child_sick_form.step4.pneumonia_treatment.options.inhaled_broncodilator.text = Inhaled bronchodilator given for 5 days child_sick_form.step8.anaemia_treat.options.give_iron.text = Iron given From 9c1f62d0951478180ab7661ab050b228fb567ca9 Mon Sep 17 00:00:00 2001 From: qaziabubakar-vd Date: Mon, 27 Jun 2022 16:37:34 +0500 Subject: [PATCH 2/4] 2016_height_and_weight_changes --- .../src/main/assets/json.form/child_sick_form.json | 12 ++++++------ .../src/main/resources/child_sick_form.properties | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/opensrp-chw/src/main/assets/json.form/child_sick_form.json b/opensrp-chw/src/main/assets/json.form/child_sick_form.json index f7d42aa9cc..e46e9dde69 100644 --- a/opensrp-chw/src/main/assets/json.form/child_sick_form.json +++ b/opensrp-chw/src/main/assets/json.form/child_sick_form.json @@ -80,9 +80,9 @@ "openmrs_entity_parent": "", "edit_type": "number", "hint": "{{child_sick_form.step1.child_height.hint}}", - "v_required": { - "value": "true", - "err": "{{child_sick_form.step1.child_height.v_required.err}}" + "v_regex": { + "value": "^([1-9]|[1-9][0-9]|1[0-4][0-9]|149)$", + "err": "{{child_sick_form.step1.child_height.v_regex.error}}" } }, { @@ -93,9 +93,9 @@ "openmrs_entity_parent": "", "edit_type": "number", "hint": "{{child_sick_form.step1.child_weight.hint}}", - "v_required": { - "value": "true", - "err": "{{child_sick_form.step1.child_weight.v_required.err}}" + "v_regex": { + "value": "^(1\\.1|99\\.1|((\\-([1-9]|1[0-9])(\\.\\d{1})?)|([1-9]|[1-8][0-9]|9[0-9]|99)(\\.\\d{1})?))$", + "err": "{{child_sick_form.step1.child_weight.v_regex.error}}" } }, { diff --git a/opensrp-chw/src/main/resources/child_sick_form.properties b/opensrp-chw/src/main/resources/child_sick_form.properties index b366328e70..97605bdcd5 100644 --- a/opensrp-chw/src/main/resources/child_sick_form.properties +++ b/opensrp-chw/src/main/resources/child_sick_form.properties @@ -388,6 +388,7 @@ child_sick_form.step10.child_hiv_test.v_required.err = Please select one child_sick_form.step5.diarrhoea.v_required.err = Please select one child_sick_form.step1.child_height.v_required.err = Please enter the child's height child_sick_form.step1.child_height.hint = Take the child's height (cm) +child_sick_form.step1.child_height.v_regex.error = height should be 1 to 149 child_sick_form.step9.uncomplicated_sam_note.text = Child has: UNCOMPLICATED SEVERE ACUTE MALNUTRITION\n- Give oral antibiotics for 5 days\n- Give ready-to-use therapeutic food for a child aged 6 months or more\n- Counsel the mother on how to feed the child\n- Assess for possible TB infection\n- Advise mother when to return immediately\n- Follow up in 7 days child_sick_form.step8.palmar_pallor.options.severe.text = Child has severe palmar pallor child_sick_form.step10.hiv_unlikely_note.text = Child: HIV INFECTION UNLIKELY\n- Treat, counsel and follow-up existing infections @@ -506,6 +507,7 @@ child_sick_form.step4.pneumonia_treatment.options.oral_amoxicillin.text = Oral A child_sick_form.step7.ear_discharge.options.no.text = No child_sick_form.step4.breaths_minute2.hint = Number of breaths per minute child_sick_form.step1.child_weight.hint = Take the child's weight (kgs) +child_sick_form.step1.child_weight.v_regex.error = Weight should be between 1 to 99 child_sick_form.step6.fever_causes.v_required.err = Please select at least one child_sick_form.step5.drinking.options.drinking_poorly.text = Child is not able to drink or drinking poorly child_sick_form.step8.anaemia_treat_refer.label = Was child referred to the nearest hospital? From 81ad97837a29145f06f740d8910136df17279d98 Mon Sep 17 00:00:00 2001 From: qaziabubakar-vd Date: Wed, 29 Jun 2022 15:18:19 +0500 Subject: [PATCH 3/4] Add a question on why Malaria tests were not done, changes labels of question malaria_test_done and malaria_test_note, Malaria test calculation changes, add malaria_treat option act_treatment --- .../assets/json.form/child_sick_form.json | 27 ++++++++++++++++++- .../assets/rule/sick_child_calculation.yml | 2 +- .../main/assets/rule/sick_child_relevance.yml | 7 +++++ .../main/resources/child_sick_form.properties | 7 +++-- 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/opensrp-chw/src/main/assets/json.form/child_sick_form.json b/opensrp-chw/src/main/assets/json.form/child_sick_form.json index e46e9dde69..545a181fe7 100644 --- a/opensrp-chw/src/main/assets/json.form/child_sick_form.json +++ b/opensrp-chw/src/main/assets/json.form/child_sick_form.json @@ -1949,7 +1949,7 @@ "next": "step7", "fields": [ { - "key": "fever", + "key": "step3_main_symptoms", "type": "native_radio", "openmrs_entity": "concept", "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -2348,6 +2348,25 @@ "err": "{{child_sick_form.step6.malaria_test_done.v_required.err}}" } }, + { + "key": "malaria_test_not_done", + "type": "edit_text", + "openmrs_entity": "concept", + "openmrs_entity_id": "", + "openmrs_entity_parent": "", + "hint": "{{child_sick_form.step6.malaria_test_not_done.hint}}", + "relevance": { + "rules-engine": { + "ex-rules": { + "rules-file": "sick_child_relevance.yml" + } + } + }, + "v_required": { + "value": "true", + "err": "{{child_sick_form.step6.malaria_test_not_done.v_required.error}}" + } + }, { "key": "malaria_results", "type": "native_radio", @@ -2841,6 +2860,12 @@ "value": false, "openmrs_choice_id": "5839AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, + { + "key": "act_treatment", + "text": "{{child_sick_form.step6.malaria_treat.options.act_treatment.text}}", + "value": false, + "openmrs_choice_id": "5839AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, { "key": "paracetamol_mal", "text": "{{child_sick_form.step6.malaria_treat.options.paracetamol_mal.text}}", diff --git a/opensrp-chw/src/main/assets/rule/sick_child_calculation.yml b/opensrp-chw/src/main/assets/rule/sick_child_calculation.yml index 9c63574668..4ac16aa614 100644 --- a/opensrp-chw/src/main/assets/rule/sick_child_calculation.yml +++ b/opensrp-chw/src/main/assets/rule/sick_child_calculation.yml @@ -173,7 +173,7 @@ description: Malaria test calculation priority: 1 condition: "step6_fever.contains('yes')" actions: - - 'calculation = (((step2_danger_signs.contains("None") && step4_severe_pneumonia == 0 && step5_sev_dehydration == 0 && step5_sev_persistent_diarrhoea == 0 && step6_fever.contains("yes") && step6_malaria_risk.contains("high") && step6_travel_malaria_area.contains("yes")) || (step6_fever_causes.contains("none_fever_cause") && step6_malaria_risk.contains("low") && step6_travel_malaria_area.contains("no")))? 1 : 0)' + - 'calculation = (((step2_danger_signs.contains("None") && step4_severe_pneumonia == 0 && step5_sev_dehydration == 0 && step5_sev_persistent_diarrhoea == 0 && step6_fever.contains("yes") && step6_malaria_risk.contains("high") && step6_travel_malaria_area.contains("yes")) || (step6_fever_causes.contains("none_fever_cause") && step6_malaria_risk.contains("low") && step6_travel_malaria_area.contains("no")) || (step6_fever.contains("yes") && step6_fever_everyday("yes")))? 1 : 0)' --- name: step6_vsf_disease description: Dysentry calculation diff --git a/opensrp-chw/src/main/assets/rule/sick_child_relevance.yml b/opensrp-chw/src/main/assets/rule/sick_child_relevance.yml index 4e7cb0ef77..752d0709c6 100644 --- a/opensrp-chw/src/main/assets/rule/sick_child_relevance.yml +++ b/opensrp-chw/src/main/assets/rule/sick_child_relevance.yml @@ -377,6 +377,13 @@ condition: "step6_fever.contains('yes')" actions: - "isRelevant = true" --- +name: step6_malaria_test_not_done +description: Days child has had fever +priority: 1 +condition: "step6_malaria_test_done.contains('no')" +actions: + - "isRelevant = true" +--- name: step6_fever_everyday description: Has fever been present every day priority: 1 diff --git a/opensrp-chw/src/main/resources/child_sick_form.properties b/opensrp-chw/src/main/resources/child_sick_form.properties index 97605bdcd5..9f16914859 100644 --- a/opensrp-chw/src/main/resources/child_sick_form.properties +++ b/opensrp-chw/src/main/resources/child_sick_form.properties @@ -150,7 +150,7 @@ child_sick_form.step8.feeding_problem_follow_up.toaster_info_text = Child has fe child_sick_form.step4.pneumonia_treatment.v_required.err = Please select at least one child_sick_form.step6.illness_fever_treat_note.text = FEVER child_sick_form.step5.sev_dehydratn_treat3.options.sev_deh_other_fluids.text = Given fluid for severe dehydration (Plan C) -child_sick_form.step6.malaria_test_done.label = Was Malaria test done? +child_sick_form.step6.malaria_test_done.label = Was Malaria test (RDT) done ? child_sick_form.step6.no_malaria_treat_note.toaster_info_text = Child has: FEVER:\nNO MALARIA\n- Give one dose of paracetamol in clinic for high fever (38.5°C or above)\n- Give appropriate antibiotic treatment for an identified bacterial\ncause of fever\n- Advise mother when to return immediately\n- Follow-up in 3 days if fever persists\n- If fever is present every day for more than 7 days, refer for\nassessment child_sick_form.step9.acute_maln_treat.v_required.err = Please select at least one child_sick_form.step4.cough_cold_treatment.options.referred_tb_asthma.text = Referred for possible TB or asthma assessment @@ -281,6 +281,7 @@ child_sick_form.step6.illness_fever_treat.options.follow_up_fever.text = Schedul child_sick_form.step7.ear_discharge.label = Is there ear discharge? child_sick_form.step6.vsf_disease2_treat.options.treat_low_blood_vsf2.text = Treated the child to prevent low blood sugar child_sick_form.step6.malaria_treat.options.paracetamol_mal.text = Given one dose of Paracetamol in clinic for high fever (38.5°C or above) +child_sick_form.step6.malaria_treat.options.act_treatment.text = Artemisinin-based combination therapy (ACT) Treatment given child_sick_form.step6.measles_symptoms.options.measles_runny_nose.text = Runny nose child_sick_form.step6.malaria_treat_note.toaster_info_text = MALARIA child_sick_form.step6.fever_note.text = By history or feels hot or temperature 37.5°C* or above. @@ -320,9 +321,11 @@ child_sick_form.step6.complicated_measles_note.toaster_info_text = Child has: SE child_sick_form.step4.hiv_exposure.options.dont_know.text = Don't know child_sick_form.step6.fever_everyday.label = Has the fever been present everyday?\n\nIf fever has been more than 7 days child_sick_form.step5.drinking.options.drinking_eargerly.text = Child is drinking eagerly, thirsty -child_sick_form.step6.malaria_test_note.text = Do a malaria test +child_sick_form.step6.malaria_test_note.text = Do an RDT for malaria test. child_sick_form.step6.complicated_measles_treat.options.tetracycline_cm.text = Clouding of the cornea or pus draining from the eye present, applied tetracycline eye ointment child_sick_form.step6.fever_period.v_required.err = Please enter the number of days +child_sick_form.step6.malaria_test_not_done.hint=Why was Malaria test not done ? +child_sick_form.step6.malaria_test_not_done.v_required.error=Reason for not conducting Malaria Test child_sick_form.step9.no_acute_maln_treat.options.no_acute_maln_follow_up.text = Scheduled a follow-up after 7 days child_sick_form.step10.hiv_exposed.label = HIV treatment given for exposed child: child_sick_form.step4.bronchodilator.text = Give a trial of rapid acting bronchodilator up to 3 times, 15-20 minutes apart. From 814c42645e4ffeac8accdad3bfad6e5282a889c8 Mon Sep 17 00:00:00 2001 From: Qazi Abubakar Date: Thu, 30 Jun 2022 12:56:21 +0500 Subject: [PATCH 4/4] Fixed key for fever --- opensrp-chw/src/main/assets/json.form/child_sick_form.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensrp-chw/src/main/assets/json.form/child_sick_form.json b/opensrp-chw/src/main/assets/json.form/child_sick_form.json index 545a181fe7..4f54a51f0a 100644 --- a/opensrp-chw/src/main/assets/json.form/child_sick_form.json +++ b/opensrp-chw/src/main/assets/json.form/child_sick_form.json @@ -1949,7 +1949,7 @@ "next": "step7", "fields": [ { - "key": "step3_main_symptoms", + "key": "fever", "type": "native_radio", "openmrs_entity": "concept", "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",