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 -

- -
- -