From 006b0c7a50443b65553816cc73f4481d9ff0d4f9 Mon Sep 17 00:00:00 2001 From: Sergio Nicolas Lavaise Date: Tue, 21 Apr 2026 09:48:23 -0300 Subject: [PATCH] Simplify: Lab results colors - green for normal, red for abnormal --- src/sections/HistoriaClinica.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index 6ac2993..aa5a413 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -635,9 +635,7 @@ function SeccionLaboratorios({ lab, patientId, add, update, del, addAcidoBase }: const getEstadoColor = (estado: ResultadoLaboratorio['estado']) => { switch (estado) { case 'Normal': return 'bg-green-100 text-green-800'; - case 'Alto': return 'bg-amber-100 text-amber-800'; - case 'Bajo': return 'bg-blue-100 text-blue-800'; - case 'Crítico': return 'bg-red-100 text-red-800'; + case 'Alto': case 'Bajo': case 'Crítico': return 'bg-red-100 text-red-800'; } }; @@ -654,10 +652,8 @@ function SeccionLaboratorios({ lab, patientId, add, update, del, addAcidoBase }: const getValorStyle = (l: Laboratorio, param: string) => { const r = l.resultados.find(r => r.parametro === param); if (!r) return ''; - if (r.estado === 'Crítico') return 'text-red-600 font-bold'; - if (r.estado === 'Alto') return 'text-amber-600'; - if (r.estado === 'Bajo') return 'text-blue-600'; - return 'text-green-600'; + if (r.estado === 'Normal') return 'text-green-600 font-medium'; + return 'text-red-600 font-bold'; }; const buildResultados = (): ResultadoLaboratorio[] => {