Welcome to the EHRtemporalVariability Shiny App! (public demo version)

Variability in healthcare processes, protocols or due to the system or human biases, can be a potential bias for the reuse of Electronic Health Records (EHRs), where unexpected batch-effects can be introduced. EHRtemporalVariability is an open-source R-package and Shiny-app for exploring and uncovering the effects of time in the statistical distributions of EHRs, namely dataset shifts. EHRtemporalVariability batches and visualizes EHRs temporal-evolution through dynamic heatmaps and non-parametric-information-geometry plots for coded, numerical and multivariate EHR data.

R package GitHub repo: https://github.com/hms-dbmi/EHRtemporalVariability.

Shiny app GitHub repo: https://github.com/hms-dbmi/EHRtemporalVariability-shiny.

To begin, you can use any of the next options:

  1. "Demo with real data" explores a case study of the app capabilities with the US National Hospital Discharge Survey open dataset.
  2. "Load your .RData" takes an .RData file generated by the EHRtemporalVariability R package to display and explore its results.

For further details see our vignette and publications.

If you use EHRtemporalVariability, please cite:

Carlos Sáez, Alba Gutiérrez-Sacristán, Isaac Kohane, Juan M García-Gómez, Paul Avillach. EHRtemporalVariability: delineating temporal dataset shifts in Electronic Health Records. (Submitted)

NHDS data

The National Hospital Discharge Survey (NHDS), which was conducted annually from 1965-2010, was a national probability survey designed to meet the need for information on characteristics of inpatients discharged from non-Federal short-stay hospitals in the United States. Data from the NHDS are available annually and are used to examine important topics of interest in public health and for a variety of activities by governmental, scientific, academic, and commercial institutions. This demo includes a total of 3,257,718 hospital discharges between 2000 and 2010. For more information visit https://www.cdc.gov/nchs/nhds/index.htm .


Using the EHRtemporalVariability R package allows more flexibility in raw data formatting and variable preprocessing, such as formatting ICD-9 codes, selecting or deriving specific variables, or even reducing the dimensionality of data. The resultant objects of classes 'DataTemporalMap' and 'IGTProjection' can be used as input for the shiny App. You can save them in a file to be uploaded herein by typing: save( dataTemporalMaps, igtProjections, file = “myResults.RData ). For more information read the accompaining vignette/case study.

Do not upload patient-level data

To see what a correctly formatted data set looks like download the NHDS demo file below (limited to a 10% random subsample of the NHDS data between 2000 and 2010).

Download the NHDS RData here!