improvement: lab/clinic commiunication flow completely overhauled. no more shit.
This commit is contained in:
45
frontend/src/types/lab-case-activity.ts
Normal file
45
frontend/src/types/lab-case-activity.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
export type LabCaseActivityType =
|
||||
| 'CASE_SENT'
|
||||
| 'CLINIC_COMMENT'
|
||||
| 'LAB_COMMENT'
|
||||
| 'CASE_IMPORTANT'
|
||||
| 'CASE_AMENDED'
|
||||
| 'TASK_COMPLETED';
|
||||
|
||||
export interface LabCaseActivityItem {
|
||||
id: string;
|
||||
labCaseId: string;
|
||||
type: LabCaseActivityType;
|
||||
createdAt: string;
|
||||
actorName: string | null;
|
||||
commentBody?: string | null;
|
||||
stepLabel?: string | null;
|
||||
visibleToClinic?: boolean;
|
||||
}
|
||||
|
||||
export interface PatientLabCaseProsthesisGroup {
|
||||
prosthesisTypeCode: string;
|
||||
teeth: string[];
|
||||
}
|
||||
|
||||
export interface PatientLabCaseSummary {
|
||||
labCaseId: string;
|
||||
patientId: string;
|
||||
patientFirstName: string;
|
||||
patientLastName: string;
|
||||
treatmentId: string;
|
||||
appointmentId: string | null;
|
||||
treatmentAt: string;
|
||||
detailClientId: string;
|
||||
teeth: string[];
|
||||
prosthesisGroups: PatientLabCaseProsthesisGroup[];
|
||||
toothCount: number;
|
||||
labOrganizationId: string | null;
|
||||
labName: string;
|
||||
sentAt: string | null;
|
||||
dueDate: string | null;
|
||||
isOverdue: boolean;
|
||||
taskProgress: { completed: number; total: number };
|
||||
hasUnread: boolean;
|
||||
lastActivity: LabCaseActivityItem | null;
|
||||
}
|
||||
Reference in New Issue
Block a user