feature: a very minimal patients feature implemented. it needs lots of improvments though
This commit is contained in:
57
frontend/src/types/patient.ts
Normal file
57
frontend/src/types/patient.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
export interface Patient {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone?: string | null;
|
||||
email?: string | null;
|
||||
dateOfBirth?: string | null;
|
||||
notes?: string | null;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface TreatmentHistoryItem {
|
||||
id: string;
|
||||
patientId: string;
|
||||
title: string;
|
||||
status: string;
|
||||
treatmentAt: string;
|
||||
tooth?: string | null;
|
||||
notes?: string | null;
|
||||
totalCost?: number | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface CreatePatientInput {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
dateOfBirth?: string;
|
||||
notes?: string;
|
||||
}
|
||||
|
||||
export interface CreateTreatmentHistoryInput {
|
||||
title: string;
|
||||
status: string;
|
||||
treatmentAt: string;
|
||||
tooth?: string;
|
||||
notes?: string;
|
||||
totalCost?: number;
|
||||
}
|
||||
|
||||
export interface PatientsListResponse {
|
||||
success: boolean;
|
||||
data: {
|
||||
items: Patient[];
|
||||
pagination: {
|
||||
page: number;
|
||||
limit: number;
|
||||
total: number;
|
||||
totalPages: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user