feature: phase0 - Global patients + mobile normalization
This commit is contained in:
@@ -25,5 +25,5 @@ export interface AppointmentRecord {
|
||||
startAt: string;
|
||||
endAt: string;
|
||||
purpose: string;
|
||||
patient: Pick<Patient, 'id' | 'firstName' | 'lastName' | 'phone'>;
|
||||
patient: Pick<Patient, 'id' | 'firstName' | 'lastName' | 'mobile'>;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
export interface Patient {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone?: string | null;
|
||||
mobile: string;
|
||||
email?: string | null;
|
||||
dateOfBirth?: string | null;
|
||||
notes?: string | null;
|
||||
isActive: boolean;
|
||||
createdByOrganizationId?: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export interface Patient {
|
||||
export interface CreatePatientInput {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone?: string;
|
||||
mobile: string;
|
||||
email?: string;
|
||||
dateOfBirth?: string;
|
||||
notes?: string;
|
||||
@@ -33,3 +33,9 @@ export interface PatientsListResponse {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface CreatePatientResponse {
|
||||
success: boolean;
|
||||
data: Patient;
|
||||
existing?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user