Circle V2 API Docs
    Preparing search index...
    reviewDashboardGroupedList: QueryProcedure<
        {
            input: {
                admissionDateRange?: { from: string; to: string };
                auditTemplateIds?: string[];
                authEndDateRange?: { from: string; to: string };
                authStartDateRange?: { from: string; to: string };
                clientSearch?: string;
                cursor?: number;
                dateRange?: { from: string; to: string };
                facilityIds?: string[];
                includeNullTriggers?: boolean;
                levelOfCareIds?: string[];
                limit?: number;
                offset?: number;
                profileIds?: string[];
                scoreRange?: { max?: number; min?: number };
                sortBy?:
                    | "created_at"
                    | "type"
                    | "trigger"
                    | "facility"
                    | "provider_name"
                    | "score"
                    | "patient_name"
                    | "assistant_name"
                    | "admission_date"
                    | "level_of_care"
                    | "auth_start_date"
                    | "auth_end_date";
                sortOrder?: "asc"
                | "desc";
                triggerIds?: string[];
                type?: "session_notes" | "chart_review";
            };
            meta: object;
            output: PaginatedResponse<
                {
                    admission_date: string
                    | null;
                    audit_template_id: string & { __brand: "AuditTemplateId" } | null;
                    audit_template_name: string;
                    auth_end_date: string | null;
                    auth_start_date: string | null;
                    case_id: number;
                    client_id: PatientId;
                    client_name: string;
                    facility_name: string;
                    level_of_care: string | null;
                    pass_count: number;
                    provider_name: string;
                    run_created_at: DbDate;
                    run_id: AuditRunId;
                    score_pct: number;
                    total_count: number;
                    total_rows: string;
                    trigger: string | null;
                    type: string;
                },
            >;
        },
    > = ...

    Returns flat run rows paginated by distinct client. Frontend uses TanStack grouping (via <DataTable grouping={["client_id"]} />) to render groups — server just guarantees that runs for the same client land on the same page.

    Items are structurally identical to ReviewDashboardListRow so the same columns hook works for both views.