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:
2026-04-24 10:50:05 -03:00
parent 175e2d285a
commit 705c200f1b
13 changed files with 694 additions and 2072 deletions
+1
View File
@@ -49,6 +49,7 @@
"input-otp": "^1.4.2",
"jspdf": "^4.2.1",
"lucide-react": "^0.562.0",
"mariadb": "^3.5.2",
"next-themes": "^0.4.6",
"pdf-lib": "^1.17.1",
"react": "^19.2.0",