medExtractR: A medication extraction algorithm for electronic health records using the R programming language
Preprint
Abstract
Objective: We developed medExtractR, a natural language processing system to extract medication dose and timing information from clinical notes. Our system facilitates creation of medication-specific research datasets from electronic health records. Materials and Methods: Written using the R programming language, medExtractR combines lexicon dictionaries and regular expression patterns to identify relevant medication information (‘drug entities’). The system is designed to extract particular medications of interest, rather than all possible medications mentioned in a clinical note. MedExtractR was developed on notes from Vanderbilt University’s Synthetic Derivative, using two medications (tacrolimus and lamotrigine) prescribed with varying complexity, and with a third drug (allopurinol) used for testing generalizability of results. We evaluated medExtractR and compared it to three existing systems: MedEx, MedXN, and CLAMP. Results: On 50 test notes for each development drug and 110 test notes for the additional drug, medExtractR achieved high overall performance (F-measures > 0.95). This exceeded the performance of the three existing systems across all drugs, with the exception of a couple specific entity-level evaluations including dose amount for lamotrigine and allopurinol. Discussion: MedExtractR successfully extracted medication entities for medications of interest. High performance in entity-level extraction tasks provides a strong foundation for developing robust research datasets for pharmacological research. However, its targeted approach provides a narrower scope compared with existing systems. Conclusion: MedExtractR (available as an R package) achieved high performance values in extracting specific medications from clinical text, leading to higher quality research datasets for drug-related studies than some existing general-purpose medication extraction tools.Keywords
All Related Versions
- Published version: Journal of the American Medical Informatics Association, 27 (3), 407.
This publication has 21 references indexed in Scilit:
- Clinical information extraction applications: A literature reviewJournal of Biomedical Informatics, 2018
- CLAMP – a toolkit for efficiently building customized clinical natural language processing pipelinesJournal of the American Medical Informatics Association, 2017
- Natural language processing systems for capturing and standardizing unstructured clinical information: A systematic reviewJournal of Biomedical Informatics, 2017
- PheKB: a catalog and workflow for creating electronic phenotype algorithms for transportabilityJournal of the American Medical Informatics Association, 2016
- MedXN: an open source medication extraction and normalization tool for clinical textJournal of the American Medical Informatics Association, 2014
- The use of a DNA biobank linked to electronic medical records to characterize pharmacogenomic predictors of tacrolimus dose requirement in kidney transplant recipientsPharmacogenetics and Genomics, 2012
- Mayo clinical Text Analysis and Knowledge Extraction System (cTAKES): architecture, component evaluation and applicationsJournal of the American Medical Informatics Association, 2010
- An overview of MetaMap: historical perspective and recent advancesJournal of the American Medical Informatics Association, 2010
- MedEx: a medication information extraction system for clinical narrativesJournal of the American Medical Informatics Association, 2010
- A General Natural-language Text Processor for Clinical RadiologyJournal of the American Medical Informatics Association, 1994