improvement: lab/clinic commiunication flow completely overhauled. no more shit.

This commit is contained in:
2026-07-13 22:53:23 +03:30
parent 2ad572f4c8
commit 27eae25f61
30 changed files with 1805 additions and 696 deletions

View 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;
}