Circle V2 API Docs
    Preparing search index...
    reviewDashboardGroupedList: QueryProcedure<
        {
            input: {
                admissionDateRange?: { from: string; to: string };
                admissionStatus?: "all" | "active" | "discharged";
                auditTemplateIds?: string[];
                authEndDateRange?: { from: string; to: string };
                authStartDateRange?: { from: string; to: string };
                clientSearch?: string;
                criteriaStatuses?: ("pass" | "fail" | "needs_review")[];
                cursor?: number;
                dateRange?: { from: string; to: string };
                facilityIds?: string[];
                facilityIdsForLoc?: string[];
                hasUnansweredManual?: boolean;
                includeNullTriggers?: boolean;
                levelOfCareIds?: string[];
                limit?: number;
                offset?: number;
                profileIds?: string[];
                scoreRange?: { max?: number; min?: number };
                sortBy?:
                    | "created_at"
                    | "type"
                    | "trigger"
                    | "admission_date"
                    | "facility"
                    | "provider_name"
                    | "score"
                    | "patient_name"
                    | "level_of_care"
                    | "assistant_name"
                    | "auth_start_date"
                    | "auth_end_date";
                sortOrder?: "asc"
                | "desc";
                triggerIds?: string[];
                type?: "chart_review" | "session_notes";
            };
            meta: object;
            output: PaginatedResponse<
                {
                    admission_date: string
                    | null;
                    audit_template_id: string & { __brand: "AuditTemplateId" } | null;
                    audit_template_name: string | null;
                    auth_end_date: string | null;
                    auth_start_date: string | null;
                    case_id: CaseId | null;
                    client_id: PatientId;
                    client_name: string;
                    criteria: {
                        latest_trail_comment: string | null;
                        manual: boolean;
                        question: string | null;
                        question_id: AuditQuestionId;
                        question_order: number | null;
                        question_type: "pass_fail" | "summary";
                        reason: string[] | null;
                        recommendation: string | null;
                        response: string | null;
                        response_created_at: DbDate | null;
                        response_id: AuditResponseId | null;
                        status: string | null;
                        user_action_status: string | null;
                    }[];
                    facility_name: string;
                    level_of_care: string
                    | null;
                    manual_pending_count: number;
                    pass_count: number;
                    provider_name: string;
                    run_created_at: DbDate | null;
                    run_id: AuditRunId | null;
                    score_pct: number;
                    total_count: number;
                    total_rows: string;
                    trigger: string | null;
                    type: string | null;
                },
            >;
        },
    > = ...

    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.