From a5591c55d8f5adca9e2a19af38f3fa55e62edf74 Mon Sep 17 00:00:00 2001 From: snlavaise Date: Wed, 12 Aug 2026 00:58:06 +0000 Subject: [PATCH] =?UTF-8?q?Mostrar=20motivo=20de=20egreso=20espec=C3=ADfic?= =?UTF-8?q?o=20(Alta,=20Egreso=20Voluntario,=20=C3=93bito,=20Pase=20Servic?= =?UTF-8?q?io)=20en=20columna=20Estado=20de=20Internaciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/Internaciones.tsx | 59 ++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/src/sections/Internaciones.tsx b/src/sections/Internaciones.tsx index cae53c9..2c134df 100644 --- a/src/sections/Internaciones.tsx +++ b/src/sections/Internaciones.tsx @@ -504,15 +504,56 @@ export function Internaciones({ {paciente?.dni || '-'} - {internacion.activa ? ( - - Activa - - ) : ( - - Alta - - )} + {(() => { + if (internacion.activa) { + return ( + + Activa + + ); + } + const motivo = internacion.motivoEgreso; + if (motivo === 'Alta médica') { + return ( + + Alta + + ); + } + if (motivo === 'Egreso Voluntario') { + return ( + + Egreso Voluntario + + ); + } + if (motivo === 'Obito') { + return ( + + Óbito + + ); + } + if (motivo === 'Pase servicio') { + return ( + + Pase Servicio + + ); + } + if (motivo === 'Derivación') { + return ( + + Derivación + + ); + } + return ( + + Alta + + ); + })()} {fechaIng}