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 */}
+
+
- {/* Columna 2: Datos de Ingreso */}
-
-
-
-
-
- Datos de Ingreso
-
-
+
+
+
+
+
+
+ Datos de Ingreso
+
+
+
+
+
+
- {/* Columna 3: Datos Clínicos */}
-
-
-
-
- Datos Clínicos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ Datos Clínicos
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Columna 4: Médico Ingresante */}
+
+
+
+
+
+
+ Médico Ingresante
+
+
+
+
+ setMedico(e.target.value)}
+ />
+
+
+
+
+
);
}
\ No newline at end of file
diff --git a/src/sections/NuevoIngreso.tsx b/src/sections/NuevoIngreso.tsx
index 6908160..e2ac411 100644
--- a/src/sections/NuevoIngreso.tsx
+++ b/src/sections/NuevoIngreso.tsx
@@ -1,4 +1,4 @@
-import { useState, useEffect } from 'react';
+import { useState } from 'react';
import { ArrowLeft, Save, X, Bed, Calendar, Stethoscope, User, ClipboardList } from 'lucide-react';
import { Card, CardContent } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
@@ -73,9 +73,6 @@ export function NuevoIngreso({ pacientes, camas, areas, onIniciarInternacion, on
};
const selectedPaciente = pacientes.find(p => p.id === pacienteSeleccionado);
- const camasDisponibles = camaSeleccionada
- ? []
- : camas.filter(c => c.estado === 'Disponible' && !c.pacienteId);
return (
@@ -104,10 +101,10 @@ export function NuevoIngreso({ pacientes, camas, areas, onIniciarInternacion, on
-
- {/* Columna 1: Datos del Paciente, Cama y Datos Adicionales */}
+
+ {/* Columna 1: Datos del Paciente */}
-
+
@@ -162,8 +159,11 @@ export function NuevoIngreso({ pacientes, camas, areas, onIniciarInternacion, on
)}
+
-
+ {/* Columna 2: Cama */}
+
+
@@ -179,7 +179,7 @@ export function NuevoIngreso({ pacientes, camas, areas, onIniciarInternacion, on
{camas.map(c => (
- {c.numero} - {getAreaName(c.areaId)} ({c.tipo})
+ {c.numero} - {getAreaName(c.areaId)}
))}
@@ -187,19 +187,18 @@ export function NuevoIngreso({ pacientes, camas, areas, onIniciarInternacion, on
-
-
+
- {/* Columna 2: Fechas y Médico */}
-
-
-
-
-
- Datos de Ingreso
-
-
+
+
+
+
+
+ Datos de Ingreso
+
+
+
+
+
+
+
- {/* Columna 3: Datos Clínicos */}
-
-
-
-
- Datos Clínicos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Datos Clínicos
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
);