Electronic health records (EHRs) offer the potential to study large numbers of patients but are designed for clinical practice, not research. Despite the increasing availability of EHR data, their use in research comes with its own set of challenges. In this article, we describe some important considerations and potential solutions for commonly encountered problems when working with large-scale, EHR-derived data for health services and community-relevant health research. Specifically, using EHR data requires the researcher to define the relevant patient subpopulation, reliably identify the primary care provider, recognize the EHR as containing episodic (i.e., unstructured longitudinal) data, account for changes in health system composition and treatment options over time, understand that the EHR is not always well-organized and accurate, design methods to identify the same patient across multiple health systems, account for the enormous size of the EHR, and consider barriers to data access. Associations found in the EHR may be nonrepresentative of associations in the general population, but a clear understanding of the EHR-based associations can be enormously valuable to the process of improving outcomes for patients in learning health care systems. In the context of building 2 large-scale EHR-derived data sets for health services research, we describe the potential pitfalls of EHR data and propose some solutions for those planning to use EHR data in their research. As ever greater amounts of clinical data are amassed in the EHR, use of these data for research will become increasingly common and important. Attention to the intricacies of EHR data will allow for more informed analysis and interpretation of results from EHR-based data sets.
Background: We evaluated whether a comprehensive ST‐segment–elevation myocardial infarction protocol (CSP) focusing on guideline‐directed medical therapy, transradial percutaneous coronary intervention, and rapid door‐to‐balloon time improves process and outcome metrics in patients with moderate or high socioeconomic deprivation. Methods and Results: A total of 1761 patients with ST‐segment–elevation myocardial infarction treated with percutaneous coronary intervention at a single hospital before (January 1, 2011–July 14, 2014) and after (July 15, 2014– July 15, 2019) CSP implementation were included in an observational cohort study. Neighborhood deprivation was assessed by the Area Deprivation Index and was categorized as low (≤50th percentile; 29.0%), moderate (51st –90th percentile; 40.8%), and high (>90th percentile; 30.2%). The primary process outcome was door‐to‐balloon time. Achievement of guideline‐recommend door‐to‐balloon time goals improved in all deprivation groups after CSP implementation (low, 67.8% before CSP versus 88.5% after CSP; moderate, 50.7% before CSP versus 77.6% after CSP; high, 65.5% before CSP versus 85.6% after CSP; all P <0.001). Median door‐to‐balloon time among emergency department/in‐hospital patients was significantly noninferior in higher versus lower deprivation groups after CSP (noninferiority limit=5 minutes; Pnoninferiority high versus moderate = 0.002, high versus low <0.001, moderate versus low = 0.02). In‐hospital mortality, the primary clinical outcome, was significantly lower after CSP in patients with moderate/high deprivation in unadjusted (before CSP 7.0% versus after CSP 3.1%; odds ratio [OR], 0.42 [95% CI, 0.25–0.72]; P =0.002) and risk‐adjusted (OR, 0.42 [95% CI, 0.23–0.77]; P =0.005) models. Conclusions: A CSP was associated with improved ST‐segment–elevation myocardial infarction care across all deprivation groups and reduced mortality in those from moderate or high deprivation neighborhoods. Standardized initiatives to reduce care variability may mitigate social determinants of health in time‐sensitive conditions such as ST‐segment–elevation myocardial infarction.
Limitations of statistics currently used to assess balance in observation samples include their insensitivity to shape discrepancies and their dependence upon sample size. The Jensen–Shannon divergence (JSD) is an alternative approach to quantifying the lack of balance among treatment groups that does not have these limitations. The JSD is an information-theoretic statistic derived from relative entropy, with three specific advantages relative to using standardized difference scores. First, it is applicable to cases in which the covariate is categorical or continuous. Second, it generalizes to studies in which there are more than two exposure or treatment groups. Third, it is decomposable, allowing for the identification of specific covariate values, treatment groups or combinations thereof that are responsible for any observed imbalance.
Background: Electronic health records (EHRs) provide researchers with abundant sample sizes, detailed clinical data, and other advantages for performing high-quality observational health research on diverse populations. We review and demonstrate strategies for the design and analysis of cohort studies on neighborhood diversity and health, including evaluation of the effects of race, ethnicity, and neighborhood socioeconomic position on disease prevalence and health outcomes, using localized EHR data. Methods: Design strategies include integrating and harmonizing EHR data across multiple local health systems and defining the population(s) of interest and cohort extraction procedures for a given analysis based on the goal(s) of the study. Analysis strategies address inferential goals, including the mechanistic study of social risks, statistical adjustment for differences in distributions of social and neighborhood-level characteristics between available EHR data and the underlying local population, and inference on individual neighborhoods. We provide analyses of local variation in mortality rates within Cuyahoga County, Ohio. Results: When the goal of the analysis is to adjust EHR samples to be more representative of local populations, sampling and weighting are effective. Causal mediation analysis can inform effects of racism (through racial residential segregation) on health outcomes. Spatial analysis is appealing for large-scale EHR data as a means for studying heterogeneity among neighborhoods even at a given level of overall neighborhood disadvantage. Conclusions: The methods described are a starting point for robust EHR-derived cohort analysis of diverse populations. The methods offer opportunities for researchers to pursue detailed analyses of current and historical underlying circumstances of social policy and inequality. Investigators can employ combinations of these methods to achieve greater robustness of results. Highlights: EHR data are an abundant resource for studying neighborhood diversity and health. When using EHR data for these studies, careful consideration of the goals of the study should be considered in determining cohort specifications and analytic approaches. Causal mediation analysis, stratification, and spatial analysis are effective methods for characterizing social mechanisms and heterogeneity across localized populations.
The contemporary scientific community places a growing emphasis on the reproducibility of research. The projects R package is a free, open-source package created in the interest of facilitating reproducible research workflows. It adds to existing software tools for reproducible research and introduces several practical features that are helpful for scientists and their collaborative research teams. For each individual project, it supplies a framework for storing raw and cleaned study data sets, and it provides script templates for protocol creation, data cleaning, data analysis and manuscript development. Internal databases of project and author information are generated and displayed, and manuscript title pages containing author lists and their affiliations are automatically generated from the internal database. File management tools allow teams to organize multiple projects. When used on a shared file system, multiple researchers can harmoniously contribute to the same project in a less punctuated manner, reducing the frequency of misunderstandings and the need for status updates.