-
Notifications
You must be signed in to change notification settings - Fork 5
Customizing care recommendations
Each care recommendation involves a set of clinical interventions, grouped by some medical criteria, which are associated with certain clinical features presented by the patient. The list of recommendations is presented in the home screen of the Ebola Care Guidelines app. The information about these clinical recommendations, interventions, and features are stored in the app/src/main/assets/guidelines folder.
The app can list as many recommendations as one adds to the recommendations.txt file. Each recommendation follows the sme structure:
label=recommendation_oral_rehydration
icon=rehydration
description=oral_rehydration_description
guides={"dehydration_classification":{"en":{"file":"WHO_VHF_POCKET_16.02_en.pdf","page":84},"fr":{"file":"WHO_VHF_POCKET_16.02_fr.pdf","page":97}},"oral_dehydration_solution":{"en":{"file":"WHO_EVD_Manual_ECU_15.1_en.pdf","page":18},"fr":{"file":"WHO_EVD_Manual_ECU_15.1_fr.pdf","page":18}},"plan_a_rehydration":{"en":{"file":"WHO_VHF_POCKET_16.02_en.pdf","page":160},"fr":{"file":"WHO_VHF_POCKET_16.02_fr.pdf","page":180}},"plan_b_rehydration":{"en":{"file":"WHO_VHF_POCKET_16.02_en.pdf","page":161},"fr":{"file":"WHO_VHF_POCKET_16.02_fr.pdf","page":181}}}
presentation={Nausea:1,Diarrhoea:1,LossAppetite:1,HaemorrhagicEyes:1,BloodyDiarrhoea:1,Confusion:1,WellnessScale:4+}
In this format, each contains a property/value pair. For example, label=recommendation_oral_rehydration. The label, icon, and description properties are fairly straightforward. The only important aspect is the use not of explicit values, but rather of IDs that point to localized string values. In this example, the label's value recommendation_oral_rehydration points to a corresponding entry in the strings.xml file
<string name="recommendation_oral_rehydration">"Oral rehydration"</string>
The value in the icon property value should point to a valid drawable resource provided at different screen densities.
Finally, the specific guides are listed in json format in the guides property. Each guide comprises a name, and an entry in a specific document. For instance:
"dehydration_classification":{"en":{"file":"WHO_VHF_POCKET_16.02_en.pdf","page":84},"fr":{"file":"WHO_VHF_POCKET_16.02_fr.pdf","page":97}}
means that the dehydration_classification guide (this is a name string that's resolved in the appropriate language) should link to page 84 in the WHO_VHF_POCKET_16.02_en.pdf file, in the case of English, and to pag e97 in the WHO_VHF_POCKET_16.02_fr.pdf file in the case of French. All of these documents (in pdf format) should be copied inside the same folder.