Skip to content

Clinician consultation sync to local IndexedDB #560

Description

@Mosss-OS

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

  1. After Supabase update, also update local IndexedDB consultation record
  2. Add clinician response data (advice, diagnosis, prescription) locally
  3. Update consultation status locally
  4. Ensure CHW sees response immediately

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions