Fix: Leucocitos range in lab values

This commit is contained in:
2026-04-21 09:59:55 -03:00
parent 006b0c7a50
commit a968bc34cc
+5 -5
View File
@@ -119,7 +119,7 @@ const RANGOS_LABORATORIO: Record<string, { min: number; max: number }> = {
'Hemoglobina': { min: 12, max: 14 },
'Leucocitos': { min: 4000, max: 11000 },
'Plaquetas': { min: 150000, max: 400000 },
'Glucemia': { min: 70, max: 100 },
'Glucosa': { min: 70, max: 100 },
'Urea': { min: 17, max: 48.5 },
'Creatinina': { min: 0.5, max: 1.2 },
'Sodio': { min: 135, max: 145 },
@@ -653,7 +653,7 @@ function SeccionLaboratorios({ lab, patientId, add, update, del, addAcidoBase }:
const r = l.resultados.find(r => r.parametro === param);
if (!r) return '';
if (r.estado === 'Normal') return 'text-green-600 font-medium';
return 'text-red-600 font-bold';
return 'text-red-600 font-medium';
};
const buildResultados = (): ResultadoLaboratorio[] => {
@@ -1617,9 +1617,9 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: {
const badgeClass =
pf > 300 ? "bg-green-500 text-white hover:bg-green-600 dark:bg-green-600 dark:hover:bg-green-500" :
pf > 200 ? "bg-yellow-500 text-white hover:bg-yellow-600 dark:bg-yellow-600 dark:hover:bg-yellow-500" :
pf > 100 ? "bg-orange-500 text-white hover:bg-orange-600 dark:bg-orange-600 dark:hover:bg-orange-500" :
"bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500";
pf > 200 ? "bg-yellow-500 text-white hover:bg-yellow-600 dark:bg-yellow-600 dark:hover:bg-yellow-500" :
pf > 100 ? "bg-orange-500 text-white hover:bg-orange-600 dark:bg-orange-600 dark:hover:bg-orange-500" :
"bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500";
return (
<Badge className={badgeClass}>