simple-server
simple-server copied to clipboard
Add sync to user endpoint for call results
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
andfacility_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
This pull request has been linked to Shortcut Story #9057: Add sync_to_user endpoint for call results.