opensrp / opensrp-client-chw

Reference OpenSRP application for Community Health Workers (CHWs)
Other
3 stars 21 forks source link

Relax date picker restrictions when recording vaccines #1400

Open isabelcshaw opened 3 years ago

isabelcshaw commented 3 years ago

Currently, when a user enters the forms to record vaccines, the date for which a received vaccine dose can be recorded is restricted to the medical schedule.

LMH has decided that because in reality, this will not always be followed perfectly on the ground, we don't want to prevent users to enter the correct data. Therefore, there shouldn't be any restriction when entering the vaccine date

The expectation is that the app will still default to the expected date as it does now, but the user can scroll in the date picker and select any date. The only constraints will be that the user cannot select a day before the child's DOB or a day beyond the current date.

isabelcshaw commented 3 years ago

After additional conversation with LMH, the decision here was to limit the logic so that the user can't input a dose of a vaccine before the prior one was given, but remove all other restrictions besides the child's DOB and today's date.

This would mean that: For Penta1 there are no date restrictions besides DOB and today's date For Penta 2, the additional restriction is that you can't choose a date before Penta1