From 7705e4147e5808f9ab70ee3f8e851a41bc6ca8b4 Mon Sep 17 00:00:00 2001 From: Santiago Lavaise Date: Tue, 14 Apr 2026 01:10:31 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20Layout=20NuevoIngreso=20igual=20a=20Edit?= =?UTF-8?q?Ingreso,=20cards=20del=20mismo=20tama=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/EditIngreso.tsx | 253 ++++++++++++++++------------------ src/sections/NuevoIngreso.tsx | 190 ++++++++++++------------- 2 files changed, 217 insertions(+), 226 deletions(-) diff --git a/src/sections/EditIngreso.tsx b/src/sections/EditIngreso.tsx index 7d70886..caf2c7b 100644 --- a/src/sections/EditIngreso.tsx +++ b/src/sections/EditIngreso.tsx @@ -20,16 +20,16 @@ interface EditIngresoProps { getAreaName: (areaId: string | undefined) => string; } -export function EditIngreso({ - internacion, - paciente: pacienteOriginal, +export function EditIngreso({ + internacion, + paciente: pacienteOriginal, cama: camaOriginal, - pacientes, + pacientes, camas, - areas, - onActualizarInternacion, - onVolver, - getAreaName + areas, + onActualizarInternacion, + onVolver, + getAreaName }: EditIngresoProps) { const [pacienteSeleccionado, setPacienteSeleccionado] = useState(internacion.pacienteId); const [busqueda, setBusqueda] = useState(''); @@ -96,16 +96,16 @@ export function EditIngreso({ -
+
{/* Columna 1: Datos del Paciente, Cama y Datos Adicionales */}
- +

Datos del Paciente

- + {selectedPaciente ? (
@@ -127,7 +127,7 @@ export function EditIngreso({ if (!q) { return
Escriba para buscar
; } - const matches = pacientes.filter(p => + const matches = pacientes.filter(p => p.apellido.toLowerCase().includes(q) || p.nombre.toLowerCase().includes(q) || p.dni.includes(q) @@ -151,16 +151,19 @@ export function EditIngreso({ )} +
- + {/* Columna 2: Cama */} +
+

Asignación de Cama

- +
- + setApache(e.target.value)} - /> -
-
- - setDerivacion(e.target.value)} - /> -
-
-
+
- {/* Columna 2: Datos de Ingreso */} -
- - -

- - Datos de Ingreso -

- + +
+ + +

+ + Datos de Ingreso +

+ +
- setFechaIngresoHospital(e.target.value)} />
- setFechaIngresoClinica(e.target.value)} />
-
- - setApache(e.target.value)} - /> -
+
- setDerivacion(e.target.value)} />
- - - - -

- - Médico Ingresante -

-
- - setMedico(e.target.value)} + + setApache(e.target.value)} />
-
-
-
+
+
+
- {/* Columna 3: Datos Clínicos */} -
- - -

- Datos Clínicos -

- -
- -