feature: Preview added for treatments.

This commit is contained in:
2026-05-07 14:20:50 +03:30
parent 58cb35e26d
commit c2d490a5e7
5 changed files with 234 additions and 12 deletions

View File

@@ -51,8 +51,19 @@ export interface TreatmentAttachmentMeta {
sizeBytes: number;
}
export const TREATMENT_TYPES = [
'consultation',
'filling',
'endo',
'visit',
'hygiene',
] as const;
export type TreatmentType = (typeof TREATMENT_TYPES)[number];
export interface PastTreatmentRecord {
id: string;
treatmentType: TreatmentType;
teeth: FdiToothId[];
notes?: string | null;
}
@@ -75,6 +86,7 @@ export interface LinkedOrganizationOption {
export interface TreatmentRecordDraft {
clientId: string;
treatmentType: TreatmentType;
teeth: FdiToothId[];
comment: string;
attachmentMetas: TreatmentAttachmentMeta[];