Circle V2 API Docs
    Preparing search index...
    listAllIdsForPatient: QueryProcedure<
        {
            input: {
                cursor?: number;
                dateFrom?: string;
                dateTo?: string;
                externalDocumentType?: unknown;
                fileType?: unknown;
                patientId: string;
                search?: string;
                sortOrder?: "asc"
                | "desc";
                treatmentEpisodeId?: string;
            };
            meta: object;
            output: PatientChartId[];
        },
    > = ...

    Backs "Select all", which must cover the whole filtered set, not the loaded pages.