Why an async consult closed. Mirrors AsyncClosedReason in amplify/data/resource.ts.
AsyncClosedReason
amplify/data/resource.ts
accept_timeout
inactivity
consent_timeout
no_capacity
opted_out
cancelled
POST /v1/async-consults/{id}/close
escalated
declined
patient_closed
Why an async consult closed. Mirrors
AsyncClosedReasoninamplify/data/resource.ts.accept_timeout— resolve notice delivered, patient stayed silent through the acceptance window: resolved and accepted by timeout.inactivity— patient went quiet mid-thread; warned, then closed.consent_timeout— the invite was never consented within its validity window (7 days for partner-origin consults).no_capacity— consented but no physician could be assigned in time.opted_out— the patient opted out of messaging while the thread was open.cancelled— closed viaPOST /v1/async-consults/{id}/closeor by a physician/admin from the portal.escalated— the physician escalated to a live video consult.declined— the patient answered the consent prompt with "no"; no thread ever started (never rateable).patient_closed— the patient ended the open thread themselves.