Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Mental Health

Date Submitted: Dec 9, 2025
Date Accepted: Jul 8, 2026

The final, peer-reviewed published version of this preprint can be found here:

Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study

Wang B, Miller-Fleming TW, Yu D, Hucks D, Gantz E, Johnston R, Maxwell-Horn A, Cox N, Sutcliffe J, Mathews CA, McArthur E, Hatfield H, Kabir D, Dankese A, Giangrande EJ, Fortgang RG, Wang SB, Karmacharya R, Roffman JL, Scharf JM, Smoller JW, Soda T, Crowley JJ, Davis LK

Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study

JMIR Ment Health 2026;13:e89213

DOI: 10.2196/89213

Electronic Health Record-Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study

  • Bo Wang; 
  • Tyne W. Miller-Fleming; 
  • Dongmei Yu; 
  • Donald Hucks; 
  • Emily Gantz; 
  • Rebecca Johnston; 
  • Angela Maxwell-Horn; 
  • Nancy Cox; 
  • James Sutcliffe; 
  • Carol A. Mathews; 
  • Evonne McArthur; 
  • Helen Hatfield; 
  • Dia Kabir; 
  • Ashley Dankese; 
  • Evan J. Giangrande; 
  • Rebecca G. Fortgang; 
  • Shirley B. Wang; 
  • Rakesh Karmacharya; 
  • Joshua L. Roffman; 
  • Jeremiah M. Scharf; 
  • Jordan W. Smoller; 
  • Takahiro Soda; 
  • James J. Crowley; 
  • Lea K. Davis

ABSTRACT

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 two 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 validation was performed using OCD polygenic risk scores (PRS) derived from the most recent OCD GWAS.

Results:

Expert chart reviews demonstrated our algorithm combining both 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 a reduced case yield. Furthermore, at both sites, algorithm-determined cases exhibited significantly elevated PRS relative to controls, providing genetic validation 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 demonstrates genetic validity, supporting its utility for large-scale genetic studies and advancing understanding of the disorder’s complex etiology.


 Citation

Please cite as:

Wang B, Miller-Fleming TW, Yu D, Hucks D, Gantz E, Johnston R, Maxwell-Horn A, Cox N, Sutcliffe J, Mathews CA, McArthur E, Hatfield H, Kabir D, Dankese A, Giangrande EJ, Fortgang RG, Wang SB, Karmacharya R, Roffman JL, Scharf JM, Smoller JW, Soda T, Crowley JJ, Davis LK

Electronic Health Record–Based Phenotyping for Obsessive-Compulsive Disorder: Algorithm Development and Multicenter Validation Study

JMIR Ment Health 2026;13:e89213

DOI: 10.2196/89213

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.