Harmonizing self-reported and free text medication data: a reproducible pipeline for gerontological research

Self-reported medication data collected as free text in gerontological and dementia research is often unstructured with inconsistent formatting. These circumstances pose a challenge for standardization and classification when preparing effective, reproducible analyses. Spelling variations, naming conventions, and reporting drug combinations can hinder mapping to standard pharmacologic vocabularies and compromise medication exposure assessments. We aimed to develop and implement a transparent, reproducible, and scalable data harmonization pipeline that ingests free-text medication records and classifies them according to American Hospital Formulary Service (AHFS) therapeutic categories. A four-phase curation pipeline processed 30,062 Research Electronic Data Capture (REDCap) medication records collected over nearly a decade of annual visits in The Driving Real-world In-Vehicle Evaluation System (DRIVES)Project. In Phase 1, the pipeline standardized medication names using deterministic and fuzzy matching techniques, incorporating Drug-Named-Entity Recognition (DER), the thefuzz Python library, and expert review. Phase 2 mapped drugs to AHFS categories via DrugBank and RxNorm. Phase 3 generated a wide-format dataset with binary class-level exposure indicators. Phase 4 involved a final quality review with auditable documentation. Out of 30,062 entries, 16,902 eligible prescription entries remained after the removal of vitamins, supplements, and over-the-counter (OTC) drugs. Of these, automated or semi-automated processes successfully standardized 94.2% of entries, with only 5.8% requiring further expert review. A total of 444 unique medications were successfully mapped to AHFS classifications. The curated dataset enables efficient integration into analytical models and supports reproducible assessment of medication exposure. This pipeline addresses a key methodological challenge in clinical research by providing a reproducible, scalable solution for harmonizing unstructured medication data and enhancing its analytical utility.

Authors

Institutions

Publication Details

Journal
BMC Medical Informatics and Decision Making
Published
2025-12-31
DOI
https://doi.org/10.1186/s12911-025-03332-w
Primary Topic
Biomedical Text Mining and Ontologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Harmonizing self-reported and free text medication data: a reproducible pipeline for gerontological research

Kaylin Taylor, Ganesh Muneshwar Babulal, David Brown, Kebede Beyene et al.
BMC Medical Informatics and Decision Making
Biomedical Text Mining and Ontologies
article

Harmonizing self-reported and free text medication data: a reproducible pipeline for gerontological research

Kaylin Taylor, Ganesh Muneshwar Babulal, David Brown, Kebede Beyene, David B. Carr, Yu Zhu, Matthew Blake, Semere Bekena, Chen Chen, Ramkrishna K. Singh
article en

Abstract

Self-reported medication data collected as free text in gerontological and dementia research is often unstructured with inconsistent formatting. These circumstances pose a challenge for standardization and classification when preparing effective, reproducible analyses. Spelling variations, naming conventions, and reporting drug combinations can hinder mapping to standard pharmacologic vocabularies and compromise medication exposure assessments. We aimed to develop and implement a transparent, reproducible, and scalable data harmonization pipeline that ingests free-text medication records and classifies them according to American Hospital Formulary Service (AHFS) therapeutic categories. A four-phase curation pipeline processed 30,062 Research Electronic Data Capture (REDCap) medication records collected over nearly a decade of annual visits in The Driving Real-world In-Vehicle Evaluation System (DRIVES)Project. In Phase 1, the pipeline standardized medication names using deterministic and fuzzy matching techniques, incorporating Drug-Named-Entity Recognition (DER), the thefuzz Python library, and expert review. Phase 2 mapped drugs to AHFS categories via DrugBank and RxNorm. Phase 3 generated a wide-format dataset with binary class-level exposure indicators. Phase 4 involved a final quality review with auditable documentation. Out of 30,062 entries, 16,902 eligible prescription entries remained after the removal of vitamins, supplements, and over-the-counter (OTC) drugs. Of these, automated or semi-automated processes successfully standardized 94.2% of entries, with only 5.8% requiring further expert review. A total of 444 unique medications were successfully mapped to AHFS classifications. The curated dataset enables efficient integration into analytical models and supports reproducible assessment of medication exposure. This pipeline addresses a key methodological challenge in clinical research by providing a reproducible, scalable solution for harmonizing unstructured medication data and enhancing its analytical utility.

BMC Medical Informatics and Decision MakingVol. 26(1)
Washington University in St. Louis (US)
Openalex Percentile: Top 35%
Biomedical Text Mining and Ontologies
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.