improvement: sorts and filters updated for tasks feature.

This commit is contained in:
2026-07-13 13:22:38 +03:30
parent 4e6ed75844
commit 0d073f1ec0
16 changed files with 666 additions and 102 deletions

View File

@@ -3,6 +3,7 @@ export type LabTaskStatus = 'IN_PROGRESS' | 'COMPLETED';
export interface LabCaseListItem {
id: string;
sentAt: string | null;
isImportant: boolean;
clinic: { id: string; name: string };
patient: {
id: string;
@@ -148,15 +149,36 @@ export interface ListLabTasksParams {
status?: LabTaskStatus;
completed?: boolean;
important?: boolean;
pinImportant?: boolean;
sentFrom?: string;
sentTo?: string;
stepCompleted?: string;
labCaseId?: string;
sortBy?: TaskSortField;
sortDir?: 'asc' | 'desc';
page?: number;
limit?: number;
}
export interface LocateTaskPageParams {
taskId: string;
q?: string;
clinicOrganizationId?: string;
status?: LabTaskStatus;
important?: boolean;
pinImportant?: boolean;
stepCompleted?: string;
sortBy?: TaskSortField;
sortDir?: 'asc' | 'desc';
limit?: number;
}
export interface LocateTaskPageResult {
page: number;
found: boolean;
labCaseId: string;
}
export interface LabTaskListItem {
id: string;
labCaseId: string;