Leis Machín, Angela 1974-Casadevall Aguilar, DavidAlbanell Mestres, JoanPosso, MargaritaMacià Guilà, Francesc AssísCastells, XavierRamírez Anguita, Juan ManuelMartínez Roldán, JordiFurlong, Laura I., 1971-Sanz, FerranRonzano, FrancescoMayer, Miguel Ángel, 1960-2022-09-082022-09-082022Leis A, Casadevall D, Albanell J, Posso M, Macià F, Castells X, Ramírez-Anguita JM, Martínez Roldán J, Furlong LI, Sanz F, Ronzano F, Mayer MA. Exploring the association of cancer and depression in electronic health records: combining encoded diagnosis and mining free-text clinical notes. JMIR Cancer. 2022 Jul 11;8(3):e39003. DOI: 10.2196/390032369-1999http://hdl.handle.net/10230/54018Background: 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.application/pdfeng© 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, Francesco Ronzano, Miguel A Mayer. Originally published in JMIR Cancer (https://cancer.jmir.org), 11.07.2022. This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Cancer, is properly cited. The complete bibliographic information, a link to the original publication on https://cancer.jmir.org/, as well as this copyright and license information must be included.Exploring the association of cancer and depression in electronic health records: combining encoded diagnosis and mining free-text clinical notesinfo:eu-repo/semantics/articlehttp://dx.doi.org/10.2196/39003CancerDepressionElectronic health recordsNatural language processingText mininginfo:eu-repo/semantics/openAccess