Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study
JMIR Mental Health · 2026-10-02 · 13 · e89213-e89213
DOI: 10.2196/89213 ↗At a glance
Validierungsstudie in JMIR Mental Health, published online on 2026-10-02. Written by Bo Wang and 23 co-authors. Institution: Massachusetts General Hospital, Richard B. Simches Research Building, 185 Cambridge Street, 2nd Floor, Boston, MA, 02141, United States. Major MEDLINE topics: Obsessive-Compulsive Disorder, Electronic Health Records, Phenotype, Algorithms. 37 references. The full text is freely available in PubMed Central. Funded by: NIH HHS, NCATS NIH HHS, NIMH NIH HHS.
Abstract (original language)
Background
Obsessive-compulsive disorder (OCD) is a common psychiatric disorder, with two-thirds of affected individuals reporting severe impairment. Despite its substantial burden and moderate heritability, the etiology of OCD remains poorly understood, and treatments are often suboptimal. Although recent genome-wide association studies (GWAS) have identified some risk loci, much of the genetic architecture of OCD remains undiscovered, underscoring the need for scalable approaches to identify large, well-defined patient cohorts.
Objective
This study aimed to develop and validate a scalable electronic health record (EHR)–based phenotyping algorithm for identifying OCD cases to support large-scale genetic and translational research.
Methods
We leveraged EHR-linked biobank data from 2 large hospital systems, namely Vanderbilt University Medical Center (VUMC) and Mass General Brigham (MGB), to develop a high-throughput phenotyping algorithm integrating diagnostic codes, medication records, and natural language processing (NLP) of clinical notes. Algorithm performance was evaluated through expert chart review, and genetic analyses were performed in individuals of European genetic ancestry using the polygenic scores (PGS) of OCD, major depressive disorder (MDD), and height derived from the most recent GWAS.
Results
Expert chart reviews demonstrated our algorithm combining both International Statistical Classification of Diseases ( ICD ) codes and NLP achieved the highest positive predictive values (PPV) for OCD case identification (0.84 at VUMC; 0.91 at MGB) compared to using either ICD codes or NLP alone, albeit with reduced case yield. At both sites, algorithm-defined OCD cases of European genetic ancestry showed significantly higher OCD PGS than controls. In sensitivity analyses adjusting for MDD status, OCD PGS associations were more robust than MDD PGS associations, while height PGS showed no association, supporting the genetic plausibility and relative specificity of the phenotype.
Conclusions
This study presents a scalable and cost-efficient EHR-based approach for identifying OCD cases across health systems. The algorithm achieves high PPV, and among individuals of European genetic ancestry, algorithm-defined cases show significant OCD PGS enrichment, supporting its utility for large-scale genetic studies and advancing understanding of the disorder’s complex etiology.
Subjects
MeSH terms (MEDLINE)
Author keywords
Authors and institutions
- Massachusetts General Hospital, Richard B. Simches Research Building, 185 Cambridge Street, 2nd Floor, Boston, MA, 02141, United States.
- Broad Institute of MIT and Harvard, Boston, MA, United States.
- Department of Psychiatry, Harvard Medical School, Boston, MA, United States.
- Vanderbilt Genetics Institute, Vanderbilt University, Nashville, TN, United States.
- Vanderbilt University Medical Center, Nashville, TN, United States.
- Department of Psychiatry, University of Florida, Gainesville, FL, United States.
Funding
- NIH HHS
- NCATS NIH HHS
- NIMH NIH HHS
- NCRR NIH HHS
- NICHD NIH HHS
- NIGMS NIH HHS
- NHGRI NIH HHS
- NHLBI NIH HHS
Cite
APA
Wang, B., Miller-Fleming, T. W., Yu, D., Hucks, D., Gantz, E., Johnston, R., Maxwell-Horn, A., Cox, N., Sutcliffe, J., Mathews, C. A., McArthur, E., McGuire, P. L., Kabir, D., Dankese, A., Giangrande, E. J., Fortgang, R. G., Wang, S. B., Karmacharya, R., Roffman, J. L., …, & Davis, L. K. (2026). Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study. JMIR Mental Health, 13, e89213-e89213. https://doi.org/10.2196/89213
Vancouver
Wang B, Miller-Fleming TW, Yu D, Hucks D, Gantz E, Johnston R, et al. Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study. JMIR Mental Health. 2026;13:e89213-e89213. doi:10.2196/89213
BibTeX
@article{Wang2026,
author = {Wang, Bo and Miller-Fleming, Tyne W and Yu, Dongmei and Hucks, Donald and Gantz, Emily and Johnston, Rebecca and Maxwell-Horn, Angela and Cox, Nancy and Sutcliffe, James and Mathews, Carol A and McArthur, Evonne and McGuire, Patrick L and Kabir, Dia and Dankese, Ashley and Giangrande, Evan J and Fortgang, Rebecca G and Wang, Shirley B and Karmacharya, Rakesh and Roffman, Joshua L and Scharf, Jeremiah M and Smoller, Jordan W and Soda, Takahiro and Crowley, James J and Davis, Lea K},
title = {Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study},
journal = {JMIR Mental Health},
year = {2026},
volume = {13},
pages = {e89213--e89213},
doi = {10.2196/89213}
}
EUVIMED