improvement: sorts and filters updated for tasks feature.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user