improvement: all clinic side ui components related to treatment types updated based on the new real world data.

This commit is contained in:
2026-07-07 13:13:04 +03:30
parent 667b08ed0c
commit ed7e7b1d8f
20 changed files with 321 additions and 148 deletions

View File

@@ -1,14 +1,11 @@
import type { Patient } from './patient';
export const APPOINTMENT_PURPOSES = [
'consultation',
'filling',
'endo',
'visit',
'hygiene',
] as const;
export type AppointmentPurpose = (typeof APPOINTMENT_PURPOSES)[number];
/**
* An appointment purpose is any treatment-type code selectable in the appointment
* context (see the treatment catalog with `?context=appointment`). Kept as a
* string so the set is driven by the DB catalog rather than a hardcoded union.
*/
export type AppointmentPurpose = string;
export interface AppointmentColumnProvider {
userId: string;

View File

@@ -4,6 +4,8 @@ export interface TreatmentCatalogEntry {
labDependent: boolean;
sortOrder: number;
label: string;
availableInAppointments: boolean;
availableInTreatment: boolean;
}
export interface ProsthesisCatalogEntry {