Description
When a clinician responds to a consultation, the response updates Supabase but not local IndexedDB. The CHW does not see the response until a sync pull.
Current State
- Clinician response form updates Supabase directly
- No local IndexedDB update
- CHW consultation status remains stale
Required Changes
- After Supabase update, also update local IndexedDB consultation record
- Add clinician response data (advice, diagnosis, prescription) locally
- Update consultation status locally
- Ensure CHW sees response immediately
Description
When a clinician responds to a consultation, the response updates Supabase but not local IndexedDB. The CHW does not see the response until a sync pull.
Current State
Required Changes