Agregar campos condicionales de egreso a historia clinica y columna Fecha de Egreso a tabla de Internaciones
This commit is contained in:
@@ -366,6 +366,26 @@ export function HistoriaClinica({
|
|||||||
<p className="font-medium">{internacion.diagnosticoIngreso}</p>
|
<p className="font-medium">{internacion.diagnosticoIngreso}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{!internacion.activa && (
|
||||||
|
<>
|
||||||
|
<div>
|
||||||
|
<p className="text-gray-500">Fecha de Egreso</p>
|
||||||
|
<p className="font-medium">{internacion.fechaEgreso ? formatDateDDMMYYYY(internacion.fechaEgreso) : 'N/A'}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="text-gray-500">Diagnóstico de Egreso</p>
|
||||||
|
<p className="font-medium">{internacion.diagnosticoEgreso || 'N/A'}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="text-gray-500">Motivo de Egreso</p>
|
||||||
|
<p className="font-medium">
|
||||||
|
{internacion.motivoEgreso || 'N/A'}
|
||||||
|
{internacion.motivoEgreso === 'Pase servicio' && internacion.servicioAlQuePasa ? ` (${internacion.servicioAlQuePasa})` : ''}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
<Accordion type="single" collapsible>
|
<Accordion type="single" collapsible>
|
||||||
<AccordionItem value="item-1">
|
<AccordionItem value="item-1">
|
||||||
<AccordionTrigger>Detalle Episodio Actual</AccordionTrigger>
|
<AccordionTrigger>Detalle Episodio Actual</AccordionTrigger>
|
||||||
|
|||||||
@@ -458,6 +458,12 @@ export function Internaciones({
|
|||||||
<span>Fecha Ingreso</span>
|
<span>Fecha Ingreso</span>
|
||||||
</div>
|
</div>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
|
<TableHead className="text-center">
|
||||||
|
<div className="flex items-center justify-center gap-1.5">
|
||||||
|
<CalendarDays className="h-3.5 w-3.5 text-blue-600 dark:text-blue-400 shrink-0" />
|
||||||
|
<span>Fecha Egreso</span>
|
||||||
|
</div>
|
||||||
|
</TableHead>
|
||||||
<TableHead className="text-center">
|
<TableHead className="text-center">
|
||||||
<div className="flex items-center justify-center gap-1.5">
|
<div className="flex items-center justify-center gap-1.5">
|
||||||
<Clock className="h-3.5 w-3.5 text-blue-600 dark:text-blue-400 shrink-0" />
|
<Clock className="h-3.5 w-3.5 text-blue-600 dark:text-blue-400 shrink-0" />
|
||||||
@@ -511,6 +517,9 @@ export function Internaciones({
|
|||||||
<TableCell className="text-center text-xs whitespace-nowrap">
|
<TableCell className="text-center text-xs whitespace-nowrap">
|
||||||
{fechaIng}
|
{fechaIng}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
<TableCell className="text-center text-xs whitespace-nowrap">
|
||||||
|
{internacion.fechaEgreso ? formatDateDDMMYYYY(internacion.fechaEgreso) : '-'}
|
||||||
|
</TableCell>
|
||||||
<TableCell className="text-center text-xs whitespace-nowrap">
|
<TableCell className="text-center text-xs whitespace-nowrap">
|
||||||
{(() => {
|
{(() => {
|
||||||
const dias = calcularDiasDuracion(internacion);
|
const dias = calcularDiasDuracion(internacion);
|
||||||
|
|||||||
Reference in New Issue
Block a user