Migrate to MariaDB backend and fix bed management
- Switch from SQLite to MariaDB for database backend - Fix bed state updates on admission (iniciarInternacion) - Fix bed updates on admission edit (actualizarInternacion) - Fix bed updates on discharge (finalizarInternacion): delete if fuera de area, mark available otherwise - Fix NuevoIngreso to wait for cama creation before creating internacion - Fix patient undefined check in Cultivos - Update CORS to allow all origins - Remove unused files
This commit is contained in:
@@ -17,10 +17,10 @@ interface MapaCamasProps {
|
||||
pacientes: Paciente[];
|
||||
internaciones: Internacion[];
|
||||
onActualizarCama: (id: string, datos: Partial<Cama>) => void;
|
||||
onAgregarCama: (cama: Omit<Cama, 'id'>) => string;
|
||||
onAgregarCama: (cama: Omit<Cama, 'id'>) => any;
|
||||
onEliminarCama: (id: string) => void;
|
||||
onIniciarInternacion: (internacion: Omit<Internacion, 'id' | 'activa'>) => void;
|
||||
onAgregarArea: (area: Omit<Area, 'id'>) => string;
|
||||
onIniciarInternacion: (internacion: Omit<Internacion, 'id' | 'activa'>) => Promise<string>;
|
||||
onAgregarArea: (area: Omit<Area, 'id'>) => any;
|
||||
onActualizarArea: (id: string, datos: Partial<Area>) => void;
|
||||
onEliminarArea: (id: string) => void;
|
||||
getPacienteById: (id: string) => Paciente | undefined;
|
||||
|
||||
Reference in New Issue
Block a user