Skip to content

EHR

0.4-11

Electronic Health Record (EHR) Data Processing and Analysis Tool

0packages depend
3.4Kdownloads / year
test coverage
0/13checks pass

Overview

About
Maintained by Leena ChoiFirst published 2017-10-2010 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 6.8 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
6
Dependencies · direct
Check history
  • NOTE2026-06-09
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-25
    0 OK · 12 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-30
    0 OK · 13 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
97%
Documented parameters
100%
Return-value docs
100%
References docs
4%

Downloads

3.4K
CRAN downloads in the past year
Rank #14,259 · ~9/day · ~281/mo
Daily download trend is not available in this view yet.
16630 days
73990 days
3.4K1 year
Compare downloads with other packages →
Also on726 r2u24 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-06-09

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/choileena/choileena.github.io on 2026-08-23.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (6)
statsutilsdata.tablemethodslubridatepkdata
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (6)
Author, Maintainer
Author
Author · added in 0.4-0
Author · added in 0.3-0
Author · added in 0.3-0
Author · added in 0.4-0
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4-11Latest
    2022-12-19 · current release · diff ↗
  • 0.4-10
    2022-10-11 · diff ↗
  • 0.4-8
    2022-06-21 · diff ↗
  • unarchivedReturned to CRAN
    2022-06-21
  • R
    R 4.2.0 released · 2022-04-22
  • archivedRemoved from CRAN
    2022-04-07
    resubmitted without corrected check error 'coercion to logical' errors
  • 0.4-5
    2022-04-06 · diff ↗
  • unarchivedReturned to CRAN
    2022-04-06
  • archivedRemoved from CRAN
    2022-04-04
    'coercion to logical' errors were not corrected in time See https://www.stats.ox.ac.uk/pub/bdr/LENGTH1/
  • 0.4-4
    2021-10-07 · diff ↗
  • 0.4-1
    2021-06-09 · diff ↗
  • 0.4-0
    2021-06-05 · diff ↗
Show 10 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3-1
    2020-10-08 · diff ↗
  • unarchivedReturned to CRAN
    2020-10-08
  • archivedRemoved from CRAN
    2020-09-20
    problems were not corrected in time Calls model.frame with 'data = sys.parent()', which has never worked and is now an error
  • 0.3-0
    2020-09-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1-3
    2017-10-20
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-10-20
Total releases
10 / 9 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 2.10
Bundled data
231 KB / 7 files
Download size
1.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("EHR")
Choi, L., Beck, C., James, N., McNeer, E., Weeks, H., & Williams, M. (2022). EHR: Electronic Health Record (EHR) Data Processing and Analysis Tool (Version 0.4-11) [Computer software]. https://doi.org/10.32614/CRAN.package.EHR

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for EHR version 0.4-11 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy