JairoCesar commited on
Commit
0b65481
路
verified 路
1 Parent(s): 2f59c3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -8
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 notif_inmediata or notif_super:
239
- st.success("**Requiere Notificaci贸n Inmediata.**")
240
- if notif_super:
241
- st.warning(f"**隆ATENCI脫N! Requiere Notificaci贸n SUPERINMEDIATA:** {info.get('Descripci贸n superinmediata', '')}")
242
  else:
243
- st.info("**Notificaci贸n Semanal.**")
244
 
245
  st.markdown(f"**Requisito:** {info.get('REQUISITO', 'No especificado')}")
246
- st.markdown(f"**Fichas a utilizar:** {info.get('Fichas a Utilizar', 'No especificado').replace('+', '\n+')}")
 
 
 
 
 
 
 
 
 
 
 
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)")