Validation of Treatment Discontinuation in Claims Data Using NLP and Electronic Health Records

Abstract Measuring medication discontinuation in claims data primarily relies on the gaps between prescription fills, but such definitions are rarely validated. This study aimed to establish a natural language processing (NLP)-based framework to validate claims-based discontinuation algorithms for commonly used medications against NLP-based reference standards from electronic health records (EHRs). We identified 35,010 patients receiving antipsychotic medications (APMs), benzodiazepines, warfarin, or direct oral anticoagulants (DOACs) from EHRs at the Mass General Brigham in 2007-2020. These EHR data were linked with 82,455 Medicare Part D claims. An NLP-aided chart review was applied to determine medication discontinuation from EHRs (reference standard). In claims data, we defined discontinuation based on a prescription gap larger than 15-90 days (claims-based algorithms). Sensitivity, specificity, and predictive values of claims-based algorithms against the reference standard were calculated. We found that the sensitivity and specificity of 90-day-gap-based algorithms were 0.49 and 0.82 for haloperidol, 0.47 and 0.86 for atypical APMs, 0.54 and 0.75 for benzodiazepines, 0.40 and 0.81 for warfarin, and 0.46 and 0.89 for DOACs, respectively. The corresponding estimates for 15-day-gap-based algorithms were 0.71 and 0.58 for haloperidol, 0.61 and 0.64 for atypical APMs, 0.75 and 0.45 for benzodiazepines, 0.64 and 0.50 for warfarin, and 0.61 and 0.66 for DOACs, respectively. Positive predictive values were primarily affected by medication discontinuation rates and less by gap lengths. In summary, the accuracy of claims-based discontinuation algorithms differs by medications and prescription gaps. This study demonstrates the scalability and utility of the NLP-based validation framework for multiple medications.

Authors

Institutions

Publication Details

Journal
Innovation in Aging
Published
2025-12-01
DOI
https://doi.org/10.1093/geroni/igaf122.356
Primary Topic
Pharmacovigilance and Adverse Drug Reactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Validation of Treatment Discontinuation in Claims Data Using NLP and Electronic Health Records

Chun‐Ting Yang, J. C. Lin, Jie Yang, Dae Hyun Kim et al.
Innovation in Aging
Pharmacovigilance and Adverse Drug Reactions
article

Validation of Treatment Discontinuation in Claims Data Using NLP and Electronic Health Records

Chun‐Ting Yang, J. C. Lin, Jie Yang, Dae Hyun Kim, Kerry Ngan, Jun Liu
article en

Abstract

Abstract Measuring medication discontinuation in claims data primarily relies on the gaps between prescription fills, but such definitions are rarely validated. This study aimed to establish a natural language processing (NLP)-based framework to validate claims-based discontinuation algorithms for commonly used medications against NLP-based reference standards from electronic health records (EHRs). We identified 35,010 patients receiving antipsychotic medications (APMs), benzodiazepines, warfarin, or direct oral anticoagulants (DOACs) from EHRs at the Mass General Brigham in 2007-2020. These EHR data were linked with 82,455 Medicare Part D claims. An NLP-aided chart review was applied to determine medication discontinuation from EHRs (reference standard). In claims data, we defined discontinuation based on a prescription gap larger than 15-90 days (claims-based algorithms). Sensitivity, specificity, and predictive values of claims-based algorithms against the reference standard were calculated. We found that the sensitivity and specificity of 90-day-gap-based algorithms were 0.49 and 0.82 for haloperidol, 0.47 and 0.86 for atypical APMs, 0.54 and 0.75 for benzodiazepines, 0.40 and 0.81 for warfarin, and 0.46 and 0.89 for DOACs, respectively. The corresponding estimates for 15-day-gap-based algorithms were 0.71 and 0.58 for haloperidol, 0.61 and 0.64 for atypical APMs, 0.75 and 0.45 for benzodiazepines, 0.64 and 0.50 for warfarin, and 0.61 and 0.66 for DOACs, respectively. Positive predictive values were primarily affected by medication discontinuation rates and less by gap lengths. In summary, the accuracy of claims-based discontinuation algorithms differs by medications and prescription gaps. This study demonstrates the scalability and utility of the NLP-based validation framework for multiple medications.

Innovation in AgingVol. 9(Supplement_2)
Brigham and Women's Hospital (US), Hebrew SeniorLife (US)
Quality Education
Openalex Percentile: Top 31%
Pharmacovigilance and Adverse Drug Reactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.