diff --git a/src/sections/Evoluciones.tsx b/src/sections/Evoluciones.tsx index fa5f80c..601c515 100644 --- a/src/sections/Evoluciones.tsx +++ b/src/sections/Evoluciones.tsx @@ -423,57 +423,59 @@ export function Evoluciones({ const signosTexto = getSignosVitalesTexto(evolucion.signosVitales); const estaExpandida = evolucionExpandida === evolucion.id; - return ( - - -
-
-
-
- -
-
-

- {paciente ? `${paciente.apellido}, ${paciente.nombre}` : 'Paciente no encontrado'} -

-
- - - {evolucion.fecha} - - - - {evolucion.hora} - - {evolucion.medico} -
-
-
-
- - {onActualizarEvolucion && ( - - )} - -
-
+return ( + + +
+ {/* Patient Info */} +
+
+
+ +
+
+

+ {paciente ? `${paciente.apellido}, ${paciente.nombre}` : 'Paciente no encontrado'} +

+
+ + + {evolucion.fecha} + + + + {evolucion.hora} + + {evolucion.medico} +
+
+
+
+ + {onActualizarEvolucion && ( + + )} + +
+
- {signosTexto && ( -
+ {signosTexto && ( +

Signos Vitales: {signosTexto} diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index b269320..cd949eb 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -322,7 +322,7 @@ export function HistoriaClinica({ Detalle Episodio Actual -

+
@@ -465,39 +465,35 @@ export function HistoriaClinica({ - - - - + + + + Evoluciones ({evoluciones.length}) - + Laboratorio ({laboratorios.length}) - + EAB ({acidosBase.length}) - + Cultivos ({cultivos.length}) - - - ATB - - + Estudios ({estudiosComplementarios.length}) - + Interconsultas ({interconsultas.length}) @@ -506,7 +502,7 @@ export function HistoriaClinica({ - + @@ -910,7 +906,7 @@ function SeccionLaboratorios({ lab, patientId, add, update, del, addAcidoBase }: }); return ( -
+
@@ -1150,88 +1146,90 @@ function SeccionLaboratorios({ lab, patientId, add, update, del, addAcidoBase }: -{labs.length === 0 ? ( -

No hay laboratorios

- ) : ( -
- - - - - setLabSortAsc(!labSortAsc)}> - Fecha {labSortAsc ? '↑' : '↓'} - - Hto - Hb - GB - Plaq - Gluc - Urea - Creat. - Na+ - K+ - Cl- - BT - BDir - GOT - GPT - TP - KPTT - RIN - Acciones - - - - {labs.map(l => ( - - {l.fecha} {l.hora || ''} - {getValor(l, 'Hematocrito')} - {getValor(l, 'Hemoglobina')} - {getValor(l, 'Leucocitos')} - {getValor(l, 'Plaquetas')} - {getValor(l, 'Glucemia')} - {getValor(l, 'Urea')} - {getValor(l, 'Creatinina')} - {getValor(l, 'Sodio')} - {getValor(l, 'Potasio')} - {getValor(l, 'Cloro')} - {getValor(l, 'Bilirrubina Total')} - {getValor(l, 'Bilirrubina Directa')} - {getValor(l, 'GOT')} - {getValor(l, 'GPT')} - {getValor(l, 'Tiempo de Protrombina')} - {getValor(l, 'KPTT')} - {getValor(l, 'INR')} - - - - - - - loadEdit(l)}> - - Editar - - del(l.id)} className="text-red-600"> - - Eliminar - - { setObsLab(l); setObsDialog(true); }}> - - Ver Observaciones - - - - - - ))} - -
-
+ {labs.length === 0 ? ( +

No hay laboratorios

+ ) : ( +
+
+ + + + setLabSortAsc(!labSortAsc)}> + Fecha {labSortAsc ? '↑' : '↓'} + + Hto + Hb + GB + Plaq + Gluc + Urea + Creat. + Na+ + K+ + Cl- + BT + BDir + GOT + GPT + TP + KPTT + RIN + + + + + + {labs.map(l => ( + + {l.fecha} {l.hora || ''} + {getValor(l, 'Hematocrito')} + {getValor(l, 'Hemoglobina')} + {getValor(l, 'Leucocitos')} + {getValor(l, 'Plaquetas')} + {getValor(l, 'Glucemia')} + {getValor(l, 'Urea')} + {getValor(l, 'Creatinina')} + {getValor(l, 'Sodio')} + {getValor(l, 'Potasio')} + {getValor(l, 'Cloro')} + {getValor(l, 'Bilirrubina Total')} + {getValor(l, 'Bilirrubina Directa')} + {getValor(l, 'GOT')} + {getValor(l, 'GPT')} + {getValor(l, 'Tiempo de Protrombina')} + {getValor(l, 'KPTT')} + {getValor(l, 'INR')} + + + + + + + loadEdit(l)}> + + Editar + + del(l.id)} className="text-red-600"> + + Eliminar + + { setObsLab(l); setObsDialog(true); }}> + + Ver Observaciones + + + + + + ))} + +
+
+
)} +
); } @@ -1564,7 +1562,7 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: {

{a.fecha} {a.hora}

-
+
{a.fio2 && a.po2 && PaFiO2: {Math.round(a.po2 / a.fio2 * 100) / 100}} {a.fio2 && FiO₂:{a.fio2}}