opensrp / opensrp-client-chw

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

Remove 24 hour sync hold on data #1290

Open isabelcshaw opened 4 years ago

isabelcshaw commented 4 years ago

There is a use case where a CHA may support a CHSS in data collection during an immunization day - aka the CHSS will dispense vaccines and the CHA will record the data. In this situation, the CHA will need to sync their data as soon as the day is over so that the CHSS can have it on their device. Because of this, we need to remove the 24 hold on syncing data.

@rkodev pls flag if there are any concerns here we are missing. I don't have full context on why this feature was originally built beyond wanting to ensure that a CHA could edit data if a mistake was made, so want to make sure we are jeopardizing anything major here.

rkodev commented 4 years ago

@isabelcshaw The only side effect will be the loss of editing functionality. Do you intend to completely remove the edit functionality? So we can handle the edit functionality in any of these ways

  1. Shorten the 24hr lock to 4hrs or any agreeable period. The only drawback will be events recorded late in the day cannot be synced. This would take a few hours.
  2. Provide a mechanism on the UI to confirm and permanently submit a visit, would involve adding a button on the U.I, this would take about 1-2 days.
  3. We can re-engineer and allow editing submitted events, i.e already synced vaccines, and allow editing the submitted events but this will be time-intensive. 3-5 days
isabelcshaw commented 4 years ago

@rkodev @paulinembabu as discussed today, I believe #2 is the likely way forward, but I will add a comment here once that is confirmed with LMH

isabelcshaw commented 4 years ago

@paulinembabu cc @rkodev LMH has decided that this is important enough to them that they would like to implement solution number three