simple-server icon indicating copy to clipboard operation
simple-server copied to clipboard

Add sync to user endpoint for call results

Open prabhanshuguptagit opened this issue 2 years ago • 1 comments

Story card: sc-9057

Because

We should sync call results to devices since the client has started relying on these records to categorize patients in the overdue tab (under the collapsibles).

This addresses

Adds a GET /api/v4/call_results/sync endpoint to sync call results to devices

  • [ ] Adds an optional patient_id and facility_id to call results
  • [ ] Backfills the two columns for existing call results using these two columns
  • [ ] Adds to fill patient_id for new incoming call results

TODO:

  • [ ] Test how long the data migration takes on prod sized data

prabhanshuguptagit avatar Sep 02 '22 13:09 prabhanshuguptagit