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..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 @@ -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}}" } }, { @@ -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}}", @@ -4123,15 +4148,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/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 8a0fb3c7e6..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,10 +281,14 @@ 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. -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 @@ -317,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. @@ -385,6 +391,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 @@ -503,6 +510,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?