Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Type Alias AsyncClosedReason

    AsyncClosedReason:
        | "accept_timeout"
        | "inactivity"
        | "consent_timeout"
        | "no_capacity"
        | "opted_out"
        | "cancelled"
        | "escalated"
        | "declined"
        | "patient_closed"

    Why an async consult closed. Mirrors AsyncClosedReason in amplify/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 via POST /v1/async-consults/{id}/close or 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.