diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx
index 222ca9b..4dac8f3 100644
--- a/src/sections/HistoriaClinica.tsx
+++ b/src/sections/HistoriaClinica.tsx
@@ -206,15 +206,7 @@ export function HistoriaClinica({
onEditarIngreso,
}: HistoriaClinicaProps) {
const [tabActivo, setTabActivo] = useState('evoluciones');
- const [detalleExpandido, setDetalleExpandido] = useState(false);
- const [editIngresoDialog, setEditIngresoDialog] = useState(false);
- const [editFechaIngreso, setEditFechaIngreso] = useState(internacion.fechaIngresoClinica);
- const [editMotivoConsulta, setEditMotivoConsulta] = useState(internacion.motivoConsulta || '');
- const [editDiagnostico, setEditDiagnostico] = useState(internacion.diagnosticoIngreso || '');
- const [editEnfermedadActual, setEditEnfermedadActual] = useState(internacion.enfermedadActual || '');
- const [editAntecedentes, setEditAntecedentes] = useState(internacion.antecedentesEnfermedadActual || '');
- const [editMedico, setEditMedico] = useState(internacion.medicoIngresante || '');
- const [editCamaId, setEditCamaId] = useState(internacion.camaId || '');
+
const calcularEdad = (fechaNacimiento: string) => {
const hoy = new Date();
@@ -250,18 +242,19 @@ export function HistoriaClinica({
-
-
-
-
+
+
+
+
+
@@ -472,105 +465,108 @@ export function HistoriaClinica({
+
+
+
+
+
+
+
+ Evoluciones
+ ({evoluciones.length})
+
-
-
-
-
-
- Evoluciones
- ({evoluciones.length})
-
+
+
+ Indicaciones
-
-
- Indicaciones
+
-
+
+
+ Laboratorio
+ ({laboratorios.length})
+
+
+
+ EAB
+ ({acidosBase.length})
+
+
+
+ Cultivos
+ ({cultivos.length})
+
+
+
+ ATB
+ ({atb.length})
+
+
+
+ Estudios
+ ({estudiosComplementarios.length})
+
+
+
+ Interconsultas
+ ({interconsultas.length})
+
+
+
+
-
-
- Laboratorio
- ({laboratorios.length})
-
-
-
- EAB
- ({acidosBase.length})
-
-
-
- Cultivos
- ({cultivos.length})
-
-
-
- ATB
- ({atb.length})
-
-
-
- Estudios
- ({estudiosComplementarios.length})
-
-
-
- Interconsultas
- ({interconsultas.length})
-
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
);
}
@@ -1388,10 +1384,10 @@ function SeccionEvoluciones({ evos, internacionId, add, update, del }: {
-
-
-
-
+
+
+
+
setMedico(e.target.value)} placeholder="Nombre del médico" />
@@ -1409,8 +1405,8 @@ function SeccionEvoluciones({ evos, internacionId, add, update, del }: {
{e.fecha} {e.hora}
Médico: {e.medico}
-
-
+
+
{svText && }
@@ -1602,6 +1598,7 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: {
Lactato
FiO2
PaFiO2
+ ...
@@ -1617,6 +1614,23 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: {
{a.sato2}
{a.lactato}
{a.fio2}
+ {(() => {
+ if (a.fio2 == null || a.fio2 <= 0) return —;
+
+ const pf = a.po2 / a.fio2;
+
+ const color =
+ pf > 300 ? "green" :
+ pf > 200 ? "yellow" :
+ pf > 100 ? "orange" :
+ "red";
+
+ return (
+
+ {pf.toFixed(1)}
+
+ );
+ })()}