Data mining approach to estimate the duration of drug therapy from longitudinal electronic medical records

Olga Montvida, Ognjen Arandelovic, Edward Reiner, Sanjoy K. Paul

Research output: Contribution to journalArticlepeer-review

13 Citations (Scopus)
1 Downloads (Pure)


Background: Electronic Medical Records (EMRs) from primary/ ambulatory care systems present a new and promising source of information for conducting clinical and translational research.

Objectives: To address the methodological and computational challenges in order to extract reliable medication information from raw data which is often complex, incomplete and erroneous. To assess whether the use of specific chaining fields of medication information may additionally improve the data quality.

Methods: Guided by a range of challenges associated with missing and internally inconsistent data, we introduce two methods for the robust extraction of patient-level medication data. First method relies on chaining fields to estimate duration of treatment (“chaining”), while second disregards chaining fields and relies on the chronology of records (“continuous”). Centricity EMR database was used to estimate treatment duration with both methods for two widely prescribed drugs among type 2 diabetes patients: insulin and glucagon-like peptide-1 receptor agonists.

Results: At individual patient level the “chaining” approach could identify the treatment alterations longitudinally and produced more robust estimates of treatment duration for individual drugs, while the “continuous” method was unable to capture that dynamics. At population level, both methods produced similar estimates of average treatment duration, however, notable differences were observed at individual-patient level.

Conclusion: The proposed algorithms explicitly identify and handle longitudinal erroneous or missing entries and estimate treatment duration with specific drug(s) of interest, which makes them a valuable tool for future EMR based clinical and pharmaco-epidemiological studies. To improve accuracy of real-world based studies, implementing chaining fields of medication information is recommended.
Original languageEnglish
Number of pages15
JournalOpen Bioinformatics Journal
Early online date31 Jul 2017
Publication statusPublished - 2017


  • Electronic medical records
  • Treatment duration
  • Data mining
  • Type 2 diabetes
  • Rule-based algorithm
  • Patient-level data aggregation


Dive into the research topics of 'Data mining approach to estimate the duration of drug therapy from longitudinal electronic medical records'. Together they form a unique fingerprint.

Cite this