Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -230,20 +230,29 @@ if st.button("Buscar", type="primary"):
|
|
| 230 |
|
| 231 |
# Resumen de notificaci贸n
|
| 232 |
st.subheader("Informaci贸n de Notificaci贸n")
|
| 233 |
-
col1, col2, col3 = st.columns(3)
|
| 234 |
|
| 235 |
-
notif_inmediata = info.get("Notificaci贸n Inmediata", "NO") == "SI"
|
| 236 |
notif_super = info.get("Notificaci贸n superinmedita", "NO") == "SI"
|
| 237 |
|
| 238 |
-
if
|
| 239 |
-
st.
|
| 240 |
-
|
| 241 |
-
|
| 242 |
else:
|
| 243 |
-
st.info("**Notificaci贸n Semanal.**")
|
| 244 |
|
| 245 |
st.markdown(f"**Requisito:** {info.get('REQUISITO', 'No especificado')}")
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
|
| 248 |
# Detalles de c贸digos
|
| 249 |
st.subheader("C贸digos Relacionados (CIE-10 y CIE-11)")
|
|
|
|
| 230 |
|
| 231 |
# Resumen de notificaci贸n
|
| 232 |
st.subheader("Informaci贸n de Notificaci贸n")
|
|
|
|
| 233 |
|
|
|
|
| 234 |
notif_super = info.get("Notificaci贸n superinmedita", "NO") == "SI"
|
| 235 |
|
| 236 |
+
if notif_super:
|
| 237 |
+
st.error(f"**隆ATENCI脫N! Requiere Notificaci贸n SUPERINMEDIATA:** {info.get('Descripci贸n superinmediata', '')}")
|
| 238 |
+
elif info.get("Notificaci贸n Inmediata", "NO") == "SI":
|
| 239 |
+
st.warning("**Requiere Notificaci贸n Inmediata (dentro de las 24 horas).**")
|
| 240 |
else:
|
| 241 |
+
st.info("**Notificaci贸n Semanal Individual.**")
|
| 242 |
|
| 243 |
st.markdown(f"**Requisito:** {info.get('REQUISITO', 'No especificado')}")
|
| 244 |
+
|
| 245 |
+
# =========================================================================
|
| 246 |
+
# ========= INICIO DE LA CORRECCI脫N APLICADA ==============================
|
| 247 |
+
# =========================================================================
|
| 248 |
+
|
| 249 |
+
# Se saca la operaci贸n de reemplazo de la f-string para evitar el SyntaxError
|
| 250 |
+
fichas_texto = info.get('Fichas a Utilizar', 'No especificado').replace('+', '\n+ ')
|
| 251 |
+
st.markdown(f"**Fichas a utilizar:** {fichas_texto}")
|
| 252 |
+
|
| 253 |
+
# =========================================================================
|
| 254 |
+
# ========= FIN DE LA CORRECCI脫N APLICADA =================================
|
| 255 |
+
# =========================================================================
|
| 256 |
|
| 257 |
# Detalles de c贸digos
|
| 258 |
st.subheader("C贸digos Relacionados (CIE-10 y CIE-11)")
|