feature: a minimal implementation of the appointment feature done.
This commit is contained in:
27
frontend/src/types/appointment.ts
Normal file
27
frontend/src/types/appointment.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { Patient } from './patient';
|
||||
|
||||
export const APPOINTMENT_PURPOSES = [
|
||||
'consultation',
|
||||
'filling',
|
||||
'endo',
|
||||
'visit',
|
||||
'hygiene',
|
||||
] as const;
|
||||
|
||||
export type AppointmentPurpose = (typeof APPOINTMENT_PURPOSES)[number];
|
||||
|
||||
export interface AppointmentColumnProvider {
|
||||
userId: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface AppointmentRecord {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
patientId: string;
|
||||
providerUserId: string;
|
||||
startAt: string;
|
||||
endAt: string;
|
||||
purpose: string;
|
||||
patient: Pick<Patient, 'id' | 'firstName' | 'lastName' | 'phone'>;
|
||||
}
|
||||
Reference in New Issue
Block a user