diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index c65ef94..f933cd6 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -31,6 +31,7 @@ import { } from 'lucide-react'; import { Card, CardContent } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; +import { ScrollArea } from '@/components/ui/scroll-area'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; @@ -1677,75 +1678,85 @@ const resetRes = () => { - {cs.length === 0 ?

No hay cultivos

: - cs.map(c => ( - -
-
-
-
- + {cs.length === 0 ? ( +
+ +

No hay cultivos

+
+ ) : ( + +
+ {cs.map(c => ( + + +
+
+
+
+ +
+
+

{c.fechaToma}

+
+ {c.tipoMuestra} + {getEstadoLabel(c.estado)} +
+
+
+
+ {c.estado === 'NAF/Pendiente' && ( + <> + + + + )} + {c.estado === 'Parcial' && ( + <> + + + + )} + {(c.estado === 'Positivo' || c.estado === 'Negativo') && } + +
+
+ {c.protocolo &&

Protocolo: {c.protocolo}

} + {c.observaciones &&

{c.observaciones}

} + {c.estado === 'Parcial' && c.germen && ( +
+

PARCIAL - Germen: {c.germen}

+ {(c.sensible || c.resistente) && ( +
+ {c.sensible &&

Sensible: {c.sensible}

} + {c.resistente &&

Resistente: {c.resistente}

} +
+ )} +
+ )} + {c.estado === 'Positivo' && c.germen && ( +
+

Germen: {c.germen}

+ {c.fechaResultado &&

Resultado: {c.fechaResultado}

} + {(c.sensible || c.resistente) && ( +
+ {c.sensible &&

Sensible a:

{c.sensible}

} + {c.resistente &&

Resistente a:

{c.resistente}

} +
+ )} +
+ )} + {c.estado === 'Negativo' && ( +
+

Sin crecimiento de microorganismos

+ {c.fechaResultado &&

Resultado: {c.fechaResultado}

} +
+ )}
-
-

{c.fechaToma}

-
- {c.tipoMuestra} - {getEstadoLabel(c.estado)} -
-
-
-
- {c.estado === 'NAF/Pendiente' && ( - <> - - - - )} - {c.estado === 'Parcial' && ( - <> - - - - )} - {(c.estado === 'Positivo' || c.estado === 'Negativo') && } - -
-
- {c.protocolo &&

Protocolo: {c.protocolo}

} - {c.observaciones &&

{c.observaciones}

} - {c.estado === 'Parcial' && c.germen && ( -
-

PARCIAL - Germen: {c.germen}

- {(c.sensible || c.resistente) && ( -
- {c.sensible &&

Sensible: {c.sensible}

} - {c.resistente &&

Resistente: {c.resistente}

} -
- )} -
- )} - {c.estado === 'Positivo' && c.germen && ( -
-

Germen: {c.germen}

- {c.fechaResultado &&

Resultado: {c.fechaResultado}

} - {(c.sensible || c.resistente) && ( -
- {c.sensible &&

Sensible a:

{c.sensible}

} - {c.resistente &&

Resistente a:

{c.resistente}

} -
- )} -
- )} - {c.estado === 'Negativo' && ( -
-

Sin crecimiento de microorganismos

- {c.fechaResultado &&

Resultado: {c.fechaResultado}

} -
- )} -
- - )) - } + + ))} +
+ + )}
); }