Add outside area bed workflow

- Add input for writing bed number in NuevoIngreso and EditIngreso
- Auto-complete area when selecting bed from dropdown
- Automatically create new bed with 'Fuera de area' when typing number
- Modify finalizarInternacion to delete bed only for outside area
- Add two-mode selection: select bed or write bed
This commit is contained in:
2026-04-23 20:09:33 -03:00
parent ccb2d9c80b
commit eadf44a168
4 changed files with 249 additions and 79 deletions
+2
View File
@@ -194,6 +194,7 @@ function AppContent() {
camas={store.camas}
areas={store.areas}
onIniciarInternacion={store.iniciarInternacion}
onAgregarCama={store.agregarCama}
onVolver={() => store.setVista('internaciones')}
getAreaName={(areaId) => store.areas.find(a => a.id === areaId)?.nombre || ''}
/>
@@ -219,6 +220,7 @@ function AppContent() {
camas={store.camas}
areas={store.areas}
onActualizarInternacion={store.actualizarInternacion}
onAgregarCama={store.agregarCama}
onVolver={() => store.setVista('historiaclinica')}
getAreaName={(areaId) => store.areas.find(a => a.id === areaId)?.nombre || ''}
/>