UX Pacientes: drawer de ficha clicable global, cumpleanos en dashboard/agenda, badges VIP/alergias/adeudo en ficha y POS
This commit is contained in:
@@ -74,6 +74,8 @@ export interface Appointment {
|
||||
phone_confirmed_by?: string | null;
|
||||
// Timestamp del check-in de llegada (2da confirmación)
|
||||
arrived_at?: string | null;
|
||||
// El paciente cumple años el día de la cita (badge pastel en agenda)
|
||||
patient_birthday?: boolean;
|
||||
}
|
||||
|
||||
export interface Bloqueo {
|
||||
@@ -432,6 +434,7 @@ export interface Birthday {
|
||||
id: number;
|
||||
name: string;
|
||||
phone: string;
|
||||
whatsapp?: string;
|
||||
birth_date: string;
|
||||
occurs_on: string;
|
||||
turning_age: number;
|
||||
@@ -1058,6 +1061,11 @@ export const odooApi = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async getPatient(id: number): Promise<{ status: string; patient: Patient }> {
|
||||
const { data } = await axios.get(`${ODOO_BASE}/skeen/frontend/v1/patients/${id}`);
|
||||
return data;
|
||||
},
|
||||
|
||||
async createPatient(patient: Partial<Patient>): Promise<{ status: string; patient: Patient }> {
|
||||
const { data } = await axios.post(`${ODOO_BASE}/skeen/frontend/v1/patients`, patient);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user