JRJuan Manuel Ramírez-Anguita

Juan Manuel Ramírez-Anguita

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Juan Manuel Ramírez-Anguita has a total of 208 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Risk Alert System to Facilitate Universal Suicide Risk Screening in Emergency Care: Protocol for a Prediction Model and Software Development Study Using a Co-Design Approach

    by Montserrat López-Fernández, Raúl Rodríguez Valderas, Ana Portillo-Van Diest, Gemma Vilagut, Miguel-Ángel Mayer, Ángela Leis, Montse Ferrer, Franco Amigo, Laura Latorre, Tatiana Leiss, et al.

    Background: Suicide is a leading cause of preventable mortality and a major contributor to years of life lost. Many people who later die by suicide present to emergency departments in the months before death, often for reasons not explicitly related to self-harm and without receiving a risk assessment. Universal suicide risk screening in emergency care can improve detection but is difficult to implement because of time constraints, workflow disruption, and limited capacity to respond to increased identification. Objective: The Clinical Risk Alert System for Suicide Risk Screening in Emergency Settings (CARES) project aims to lower the practical threshold for universal screening by developing a risk alert system software prototype for use among patients presenting to emergency care, prompting a brief, validated suicide risk screening and clinician-led assessment. Methods: CARES will develop machine learning–based prediction models for subsequent nonlethal intentional self-harm and suicide within 1, 6, and 12 months after discharge from an index emergency department visit, using linked, population-based electronic registries from Catalonia (Spain), including electronic health records, mortality data, administrative sociodemographic variables, and a specific self-harm register. Index visits will include emergency department contacts in individuals aged 6 years or older without self-harm–related chief complaints, with predictors defined from information recorded in the prior 12 months. Models will be trained with approaches addressing rare outcomes and unequal sampling probabilities, and evaluated using an independent test set and temporal validation. The risk alert system software prototype will be designed as a web-based application with a backend hosting trained models and a frontend that allows data entry and displays risk as descriptive text and visualizations in absolute and relative terms compared with same-age and same-sex peers. Implementation research will use a co-design process with a user advisory group (UAG; clinicians, people with lived experience, caregivers, and stakeholder organizations), guided by the Medical Research Council framework for complex interventions, to define alert thresholds, response pathways, usability requirements, and training needs. Results: The CARES project was funded in March 2023. The project uses linked electronic registry data from Catalonia covering 2014-2019, including 2,982,736 eligible emergency department index visits from 603,098 patients. The first UAG meeting was held in December 2024. As of May 2026, the project is developing the initial prediction models and software backend, while iteratively refining the frontend through UAG meetings. Data analysis is ongoing, and the main results are expected to be published in spring 2027. Conclusions: CARES will deliver an experimental proof-of-concept risk alert system designed to support future targeted suicide risk assessment within emergency workflows while keeping clinical decision-making with clinicians and patients. If feasible and acceptable, this approach could improve detection of otherwise unrecognized risk and inform future real-time integration and evaluation within routine emergency care. International Registered Report Identifier (IRRID): DERR1-10.2196/100498

  • Open Access

    Enhancing semantic interoperability in precision medicine: converting OMOP CDM to Beacon v2 in the Spanish IMPaCT-Data project

    by Manuel Rueda, Juan Manuel Ramírez-Anguita, Victoria López-Sánchez, Sergi Aguiló-Castillo, Maria Eugenia Gas López, Alberto Labarga, Miguel-Ángel Mayer, Javier Ripoll Esteve, Ivo G. Gut

    Objective: To evaluate a file-based approach for converting OMOP CDM data into GA4GH Beacon v2 format and outline an alternative on-the-fly architecture for real-time access, with the aim of enhancing semantic interoperability within Spain’s IMPaCT-Data program for personalized medicine. Materials and methods: We used the Convert-Pheno tool to transform OMOP CDM exports into Beacon v2 format using a file-based approach. In addition, we describe an architecture that connects PostgreSQL-based OMOP CDM instances directly to the Beacon v2 API, enabling real-time data access without intermediary text files. Results: We successfully converted OMOP CDM datasets from three research centers (CNAG, IIS La Fe, and HMar) to Beacon v2 format with high data completeness (≥ 99.9% across most domains). Discussion and conclusion: This study evaluates a file-based approach and describes an alternative on-the-fly architecture for integrating OMOP CDM data with Beacon v2. These approaches provide practical options for integrating OMOP CDM data with Beacon v2 in different deployment settings.

  • Open Access

    Risk Alert System to Facilitate Universal Suicide Risk Screening in Emergency Care: Protocol for a Prediction Model and Software Development Study Using a Co-Design Approach (Preprint)

    by Montserrat López-Fernández, Raúl Rodríguez Valderas, Ana Portillo-Van Diest, Gemma Vilagut, Miguel-Ángel Mayer, Ángela Leis, Montse Ferrer, Franco Amigo, Laura Latorre, Tatiana Leiss, et al.

    BACKGROUND Suicide is a leading cause of preventable mortality and a major contributor to years of life lost. Many people who later die by suicide present to emergency departments in the months before death, often for reasons not explicitly related to self-harm and without receiving a risk assessment. Universal suicide risk screening in emergency care can improve detection but is difficult to implement because of time constraints, workflow disruption, and limited capacity to respond to increased identification. OBJECTIVE The Clinical Risk Alert System for Suicide Risk Screening in Emergency Settings (CARES) project aims to lower the practical threshold for universal screening by developing a risk alert system software prototype for use among patients presenting to emergency care, prompting a brief, validated suicide risk screening and clinician-led assessment. METHODS CARES will develop machine learning–based prediction models for subsequent nonlethal intentional self-harm and suicide within 1, 6, and 12 months after discharge from an index emergency department visit, using linked, population-based electronic registries from Catalonia (Spain), including electronic health records, mortality data, administrative sociodemographic variables, and a specific self-harm register. Index visits will include emergency department contacts in individuals aged 6 years or older without self-harm–related chief complaints, with predictors defined from information recorded in the prior 12 months. Models will be trained with approaches addressing rare outcomes and unequal sampling probabilities, and evaluated using an independent test set and temporal validation. The risk alert system software prototype will be designed as a web-based application with a backend hosting trained models and a frontend that allows data entry and displays risk as descriptive text and visualizations in absolute and relative terms compared with same-age and same-sex peers. Implementation research will use a co-design process with a user advisory group (UAG; clinicians, people with lived experience, caregivers, and stakeholder organizations), guided by the Medical Research Council framework for complex interventions, to define alert thresholds, response pathways, usability requirements, and training needs. RESULTS The CARES project was funded in March 2023. The project uses linked electronic registry data from Catalonia covering 2014-2019, including 2,982,736 eligible emergency department index visits from 603,098 patients. The first UAG meeting was held in December 2024. As of May 2026, the project is developing the initial prediction models and software backend, while iteratively refining the frontend through UAG meetings. Data analysis is ongoing, and the main results are expected to be published in spring 2027. CONCLUSIONS CARES will deliver an experimental proof-of-concept risk alert system designed to support future targeted suicide risk assessment within emergency workflows while keeping clinical decision-making with clinicians and patients. If feasible and acceptable, this approach could improve detection of otherwise unrecognized risk and inform future real-time integration and evaluation within routine emergency care. INTERNATIONAL REGISTERED REPORT DERR1-10.2196/100498

  • Open Access

    Predicting Intentional Self-Harm Following Psychiatric Discharge in Catalonia, Spain: Machine Learning Models from Linked Registry Data

    by Itxaso Alayo, Oriol Pujol, Franco Amigo, Laura Ballester, Roser Cirici Amell, Salvatore Fabrizio Contaldo, Montserrat Ferrer, Daniel Guinart, Laura Latorre Moreno, Angela Leis, et al.

    Introduction: Patients recently discharged from psychiatric hospitalization are at increased risk of intentional self-harm, including suicide. Using linked population-based registry data from Catalonia, Spain, we developed machine learning-based prediction models for post-discharge intentional self-harm across different follow-up horizons, sex, and age groups, and evaluated their generalizability and robustness with multiple validation strategies. Methods: Retrospective cohort study including 41,827 individuals accounting for 71,865 psychiatric hospitalizations with discharge at age ≥10 years, between January 1, 2015, and December 31, 2018, in Catalonia, Spain, with follow-up until December 31, 2019. Primary outcome was intentional self-harm (fatal or non-fatal) within 7, 30, 90, 180, and 365 days post-discharge. Models incorporated 247 predictors from electronic health records, including sociodemographic characteristics, mental and physical disorder categories, categories of dispensed psychotropic medication, and history of self-harm and psychiatric hospitalization. Model performance was evaluated using the area under the receiver operating characteristic curve (AUCROC) and the area under the precision-recall curve (AUCPR). Predictor importance was assessed using Shapley Additive Explanations (SHAP). Results: Within 365 days, 4,901 hospitalizations (6.8%) were followed by intentional self-harm. The 365-day model trained on the full cohort achieved a AUCROC of 0.819, in the test sample with adjusted AUCPR indicating a median 5.4-fold improvement over baseline prevalence. This model generalized well across event horizons and sex–age strata, outperforming subgroup-specific models when data sparsity limited performance. Separate models trained by event horizons, and stratified by sex, and sex–age groups achieved a median AUCROC of 0.775 (IQR 0.764–0.808), with adjusted AUCPR indicating a median 5.4-fold improvement over baseline prevalence (IQR 4.5–6.2). Key predictors included the recency of the last registered diagnosis of depressive episodes, recurrent depression, adjustment disorders, and schizophrenia, as well as recent SSRI dispensation and the number of childhood-onset disorder and musculoskeletal disease diagnoses in the previous five years. Predictor importance varied considerably across sex–age strata, with smaller differences across horizons. Subject-level and temporal split validation strategies reduced performance (AUCROC 0.711–0.746), though estimates remained clinically informative (2.8–3.1-fold improvement over baseline prevalence). Conclusions: Machine learning models using routinely collected health records predicted intentional self-harm after psychiatric hospitalization with good discrimination and clinically meaningful precision–recall performance. A single 365-day model generalized well across horizons and demographic groups, suggesting that one broadly trained model may provide a pragmatic and scalable approach for clinical implementation.

  • Open Access

    Real World Data and Real World Evidence Using TriNetX: The TauliMar Clinical Research Network

    by Angela Leis, Marc Fradera, Cleofé Peña-Gómez, Pelayo Aguilera, Gema Hernandez, Alejandro Parralejo, Juan-Manuel Ramírez-Anguita, Miguel-Angel Mayer

    TriNetX is a global health research network that connects healthcare organizations and pharmaceutical companies to facilitate clinical research using real-world data (RWD). We present the TauliMar Network that was created under TriNetX as a unique collaboration in Europe between Hospital del Mar and Hospital Parc Taulí in Spain. The network’s first ongoing studies explore the link between COVID-19, type 2 diabetes, and depression through inflammatory pathways, and the potential repurposing of antilipemic drugs such as statins for treating depression. The collaboration increases patient sample size and diversity, and enhances statistical power, all while ensuring data privacy and regulatory compliance.


  • Open Access

    Enhancing Semantic Interoperability in Precision Medicine: Converting OMOP CDM to Beacon v2 in the Spanish IMPaCT-Data Project

    by Manuel Rueda, Juan Manuel Ramírez-Anguita, Victoria López-Sánchez, Sergi Aguiló-Castillo, Maria Eugenia Gas López, Alberto Labarga, Miguel-Ángel Mayer, Javier Ripoll Esteve, Ivo G. Gut

    Objective: To introduce novel methods to convert OMOP CDM data into GA4GH Beacon v2 format, enhancing semantic interoperability within Spain’s IMPaCT-Data program for personalized medicine. Materials and Methods: We utilized a file-based approach with the Convert-Pheno tool to transform OMOP CDM exports into Beacon v2 format. Additionally, we developed a direct connection from PostgreSQL OMOP CDM to the Beacon v2 API, enabling real-time data access without intermediary text files. Results: We successfully converted OMOP CDM datasets from three research centers (CNAG, IIS La Fe, and HMar) to Beacon v2 format with nearly 100% data completeness. The direct connection approach improved data freshness and adaptability for dynamic environments. Discussion and Conclusion: This study introduces two methodologies for integrating OMOP CDM data with Beacon v2, offering performance optimization or real-time access. These methodologies can be adopted by other centers to enhance interoperability and collaboration in health data sharing.

  • Open Access

    Trends of use of drugs with suggested shortages and their alternatives across 52 real world data sources and 18 countries in Europe and North America

    by Marta Pineda-Moncusí, Alexandros Rekkas, Álvaro Martínez Pérez, Angela Leis, Carlos Lopez Gomez, Eric Fey, Erwin Bruninx, Filip Maljković, Francisco Sánchez-Sáez, Jordi Rodeiro, et al.

    Importance Drug production not meeting the demand leaves affected patients in a vulnerable position. Objective To describe incidence and prevalence of medicines with suggested shortages in at least one European country Design We performed a descriptive cohort study between 2010 in a network of databases which have mapped their data to the Observational Medical Outcomes Partnership (OMOP) Common Data Model (CDM). Setting Setting included primary care, secondary care, and various disease registries whose previously collected data was leveraged. Participants We included all patients with at least 365 days of history on the database. Exposures We investigated all medicines with a suggested shortage in at least one European country for more than 365 days (n=18). Furthermore, we assessed their alternatives as well (n=39). Main outcomes and measures We estimated annual incidence rates and period prevalence of all medicines with suggested shortages and their alternatives. A drop in incidence or prevalence of more than 33% after the shortage announce by the European Medicines Agency was considered confirmation of a shortage. Results Among 41 databases from Europe and the United States, we observed shortages according to incidence for 12 drugs and shortages according to prevalence for 4 drugs. The drugs varenicline, cetrorelix, and amoxicillin plus clavulanate were in shortage in the most countries. Conclusion and relevance We compiled and analysed data of annual incidence and prevalence of 57 medicines among 41 databases in Europe and the United States. We detected shortages of several drugs and suggest monitoring and stewardship for drug availability.


  • HONEUR – Partnerschaftliche Datenanalyse von lokalen Real-World Daten

    by Oliver Maaßen, Kristina Bardenheuer, Angela Leis, Juan Manuel Ramírez-Anguita, Holger Bartz, Miguel-Angel Mayer

  • Open Access

    Exploring the Association of Cancer and Depression in Electronic Health Records: Combining Encoded Diagnosis and Mining Free-Text Clinical Notes

    by Angela Leis, David Casadevall, Joan Albanell, Margarita Posso, Francesc Macià, Xavier Castells, Juan Manuel Ramírez-Anguita, Jordi Martínez Roldán, Laura I Furlong, Ferran Sanz, et al.

    Background: A cancer diagnosis is a source of psychological and emotional stress, which are often maintained for sustained periods of time that may lead to depressive disorders. Depression is one of the most common psychological conditions in patients with cancer. According to the Global Cancer Observatory, breast and colorectal cancers are the most prevalent cancers in both sexes and across all age groups in Spain. Objective: This study aimed to compare the prevalence of depression in patients before and after the diagnosis of breast or colorectal cancer, as well as to assess the usefulness of the analysis of free-text clinical notes in 2 languages (Spanish or Catalan) for detecting depression in combination with encoded diagnoses. Methods: We carried out an analysis of the electronic health records from a general hospital by considering the different sources of clinical information related to depression in patients with breast and colorectal cancer. This analysis included ICD-9-CM (International Classification of Diseases, Ninth Revision, Clinical Modification) diagnosis codes and unstructured information extracted by mining free-text clinical notes via natural language processing tools based on Systematized Nomenclature of Medicine Clinical Terms that mentions symptoms and drugs used for the treatment of depression. Results: We observed that the percentage of patients diagnosed with depressive disorders significantly increased after cancer diagnosis in the 2 types of cancer considered—breast and colorectal cancers. We managed to identify a higher number of patients with depression by mining free-text clinical notes than the group selected exclusively on ICD-9-CM codes, increasing the number of patients diagnosed with depression by 34.8% (441/1269). In addition, the number of patients with depression who received chemotherapy was higher than those who did not receive this treatment, with significant differences (P<.001). Conclusions: This study provides new clinical evidence of the depression-cancer comorbidity and supports the use of natural language processing for extracting and analyzing free-text clinical notes from electronic health records, contributing to the identification of additional clinical data that complements those provided by coded data to improve the management of these patients.


  • Open Access

    Exploring the Association of Cancer and Depression in Electronic Health Records: Combining Encoded Diagnosis and Mining Free-Text Clinical Notes (Preprint)

    by Angela Leis, David Casadevall, Joan Albanell, Margarita Posso, Francesc Macià, Xavier Castells, Juan Manuel Ramírez-Anguita, Jordi Martínez Roldán, Laura I Furlong, Ferran Sanz, et al.

    BACKGROUND A cancer diagnosis is a source of psychological and emotional stress, which are often maintained for sustained periods of time that may lead to depressive disorders. Depression is one of the most common psychological conditions in patients with cancer. According to the Global Cancer Observatory, breast and colorectal cancers are the most prevalent cancers in both sexes and across all age groups in Spain. OBJECTIVE This study aimed to compare the prevalence of depression in patients before and after the diagnosis of breast or colorectal cancer, as well as to assess the usefulness of the analysis of free-text clinical notes in 2 languages (Spanish or Catalan) for detecting depression in combination with encoded diagnoses. METHODS We carried out an analysis of the electronic health records from a general hospital by considering the different sources of clinical information related to depression in patients with breast and colorectal cancer. This analysis included ICD-9-CM (International Classification of Diseases, Ninth Revision, Clinical Modification) diagnosis codes and unstructured information extracted by mining free-text clinical notes via natural language processing tools based on Systematized Nomenclature of Medicine Clinical Terms that mentions symptoms and drugs used for the treatment of depression. RESULTS We observed that the percentage of patients diagnosed with depressive disorders significantly increased after cancer diagnosis in the 2 types of cancer considered—breast and colorectal cancers. We managed to identify a higher number of patients with depression by mining free-text clinical notes than the group selected exclusively on ICD-9-CM codes, increasing the number of patients diagnosed with depression by 34.8% (441/1269). In addition, the number of patients with depression who received chemotherapy was higher than those who did not receive this treatment, with significant differences (P<.001). CONCLUSIONS This study provides new clinical evidence of the depression-cancer comorbidity and supports the use of natural language processing for extracting and analyzing free-text clinical notes from electronic health records, contributing to the identification of additional clinical data that complements those provided by coded data to improve the management of these patients.