Lifecycle of an async (messaging-based) consult thread. Mirrors the AsyncConsultStatus enum in amplify/data/resource.ts.
AsyncConsultStatus
amplify/data/resource.ts
invited
consent: 'embed'
consent_timeout
queued
active
resolve_requested
closed
Lifecycle of an async (messaging-based) consult thread. Mirrors the
AsyncConsultStatusenum inamplify/data/resource.ts.invited— consult created, patient hasn't consented yet. Withconsent: 'embed'the embedded widget collects consent; partner-origin invites stay valid for 7 days before auto-closing (consent_timeout).queued— patient consented but no physician had capacity yet; assigned automatically the moment one becomes available.active— assigned to exactly one physician; patient messages route to them and their replies flow back.resolve_requested— the physician marked it resolved; the patient has a bounded window to reply (reply reopens toactive, silence closes as accepted).closed— terminal; why is in AsyncConsultResource.closedReason.