ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Reports: Case Follow-up Status: Connect with Admin settings #285

Open gmcressman opened 7 years ago

gmcressman commented 7 years ago

image

scloo commented 7 years ago

I have changed this to follow what is set in the system settings. However I noticed that there are still places in the codes where this 48hours have been hardcoded . For example, attributes like "casesWithoutCompleteHouseholdAfter48Hours". I'm not sure how this will affect the data already defined in the database if I set the value to follow what's in the Admin settings.

For example, in the CaseCounter view in couchdb, there are attributes like :

All these data attributes are hardcoded for 48 hours. Even though the System Settings allow a definable value for the Follow up limit. The couchdb views also need to be changed to cater for System Settings defined Followup value, as this too is hardcoded for 48 hours.

gmcressman commented 7 years ago

@mikeymckay - This is certainly part of making this app easier to adapt to other malaria elimination settings. In any malaria program, they may also change these settings over time. These time thresholds need to be soft. An authorized admin should be able to adjust them through the UI.