improvement: duedate added for shipped cases. cases and tasks ui and ux updated accordingly.
This commit is contained in:
@@ -3,6 +3,8 @@ export type LabTaskStatus = 'IN_PROGRESS' | 'COMPLETED';
|
||||
export interface LabCaseListItem {
|
||||
id: string;
|
||||
sentAt: string | null;
|
||||
dueDate: string | null;
|
||||
isOverdue: boolean;
|
||||
isImportant: boolean;
|
||||
clinic: { id: string; name: string };
|
||||
patient: {
|
||||
@@ -79,6 +81,8 @@ export interface LabCaseAttachmentMeta {
|
||||
export interface LabCaseDetail {
|
||||
id: string;
|
||||
sentAt: string | null;
|
||||
dueDate: string | null;
|
||||
isOverdue: boolean;
|
||||
isImportant: boolean;
|
||||
clinic: { id: string; name: string };
|
||||
patient: {
|
||||
@@ -143,7 +147,8 @@ export type TaskSortField =
|
||||
| 'patient'
|
||||
| 'important'
|
||||
| 'prosthesis'
|
||||
| 'taskType';
|
||||
| 'taskType'
|
||||
| 'dueDate';
|
||||
|
||||
export interface ListLabTasksParams {
|
||||
q?: string;
|
||||
@@ -153,6 +158,7 @@ export interface ListLabTasksParams {
|
||||
important?: boolean;
|
||||
pinImportant?: boolean;
|
||||
assignedToMe?: boolean;
|
||||
overdue?: boolean;
|
||||
sentFrom?: string;
|
||||
sentTo?: string;
|
||||
stepCompleted?: string;
|
||||
@@ -196,6 +202,8 @@ export interface LabTaskListItem {
|
||||
stepLabel: string;
|
||||
status: LabTaskStatus;
|
||||
isImportant: boolean;
|
||||
caseDueDate: string | null;
|
||||
isCaseOverdue: boolean;
|
||||
assignee: LabTaskUser | null;
|
||||
assignedAt: string | null;
|
||||
lastStatusChangedAt: string | null;
|
||||
|
||||
@@ -109,6 +109,8 @@ export interface PastLabCase {
|
||||
prosthesisTypeCode: string;
|
||||
}>;
|
||||
sends?: LabCaseSendInfo[];
|
||||
dueDate?: string | null;
|
||||
taskProgress?: LabCaseTaskProgress | null;
|
||||
attachments?: TreatmentAttachmentMeta[];
|
||||
}
|
||||
|
||||
@@ -155,6 +157,8 @@ export interface LabCaseDraft {
|
||||
attachmentIds: string[];
|
||||
sentAt?: string | null;
|
||||
sends?: LabCaseSendInfo[];
|
||||
dueDate?: string | null;
|
||||
taskProgress?: LabCaseTaskProgress | null;
|
||||
}
|
||||
|
||||
export type SavedTreatmentDetailPayload = {
|
||||
@@ -180,6 +184,7 @@ export interface SaveLabCasePayload {
|
||||
prosthesisTypeCode: string;
|
||||
}>;
|
||||
attachmentIds?: string[];
|
||||
dueDate?: string | null;
|
||||
}
|
||||
|
||||
export interface SaveTreatmentPayload {
|
||||
@@ -201,6 +206,8 @@ export interface LabCaseResponse {
|
||||
teeth: string[];
|
||||
} | null;
|
||||
sends: LabCaseSendInfo[];
|
||||
dueDate: string | null;
|
||||
taskProgress?: LabCaseTaskProgress | null;
|
||||
toothProsthesis?: LabCaseToothProsthesisDraft[];
|
||||
attachments?: TreatmentAttachmentMeta[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user