EHR: Electronic Health Record (EHR) Data Processing and Analysis Tool

Process and analyze electronic health record (EHR) data. The 'EHR' package provides modules to perform diverse medication-related studies using data from EHR databases. Especially, the package includes modules to perform pharmacokinetic/pharmacodynamic (PK/PD) analyses using EHRs, as outlined in Choi, Beck, McNeer, Weeks, Williams, James, Niu, Abou-Khalil, Birdwell, Roden, Stein, Bejan, Denny, and Van Driest (2020) <doi:10.1002/cpt.1787>. Additional modules will be added in future. In addition, this package provides various functions useful to perform Phenome Wide Association Study (PheWAS) to explore associations between drug exposure and phenotypes obtained from EHR data, as outlined in Choi, Carroll, Beck, Mosley, Roden, Denny, and Van Driest (2018) <doi:10.1093/bioinformatics/bty306>.

Version: 0.4-11
Depends: R (≥ 2.10)
Imports: stats, utils, data.table, methods, lubridate, pkdata
Suggests: glmnet, logistf, medExtractR (≥ 0.4.1), knitr, rmarkdown, ggplot2, markdown
Published: 2022-12-19
DOI: 10.32614/CRAN.package.EHR
Author: Leena Choi ORCID iD [aut, cre], Cole Beck ORCID iD [aut], Hannah Weeks ORCID iD [aut], Elizabeth McNeer [aut], Nathan James ORCID iD [aut], Michael Williams [aut]
Maintainer: Leena Choi <leena.choi at>
License: GPL (≥ 3)
NeedsCompilation: no
CRAN checks: EHR results


Reference manual: EHR.pdf
Vignettes: 1. EHR Vignette for Extract-Med and Pro-Med-NLP
2. EHR Vignette for Structured Data
3. Dose Building Using Example Vanderbilt EHR Data
4. EHR Vignette for Build-PK-Oral


Package source: EHR_0.4-11.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): EHR_0.4-11.tgz, r-oldrel (arm64): EHR_0.4-11.tgz, r-release (x86_64): EHR_0.4-11.tgz, r-oldrel (x86_64): EHR_0.4-11.tgz
Old sources: EHR archive


Please use the canonical form to link to this page.