A Guide to Using Data From EPIC, MyChart, and Cogito for Behavioral, Social and Systems Science Research
July 27, 2026 · 819 KB
A 2017 Johns Hopkins guide for researchers on finding and extracting social and behavioural data from the EPIC electronic health record, MyChart and Cogito, and on the obstacles involved.
Overview
Researchers and administrators agree that patients' social circumstances, such as income, education, housing and relationships, play a critical role in their health and care. Johns Hopkins had a particular reason to care: Maryland's global budget system rewards hospitals for improving the health of whole populations. In January 2017 an advisory board of the Johns Hopkins Institute for Clinical and Translational Research funded a three-month project to see what social and behavioural data could be drawn from the institution's EPIC electronic medical record and its MyChart patient portal. Eric Ford, Julia Kim, Hadi Kharrazi, Kelly Gleason, Diana Gumas and Lisa DeCamp wrote this guide, dated 30 May 2017, as its first product.
Quick Guide and Background
The guide opens with a quick guide to getting data, distinguishing primary data collection from secondary use of existing records, and explaining extraction methods and modes. The background reviews frameworks for the social determinants of health, including a public health model, pathways linking socioeconomic status and health, and multilevel epidemiology. It groups determinants into sociodemographic, psychological, behavioural, individual social relationships, and neighbourhoods and communities.
Methods
The team used three approaches:
- An environmental scan of how electronic record vendors collect and organise social and behavioural data
- Interviews with Hopkins researchers and staff who had tried to extract such data
- An analysis of existing EPIC data, producing a matrix for coding social and behavioural variables in the next phase
Findings
The interviews revealed many practical problems. Data aren't harmonised across clinics, which collect and display information differently; a single variable such as gender could be recorded in 13 different ways. Clinics can build their own local forms, which suits their patients but scatters data. The back-end database doesn't always match what clinicians see on screen, and much information sits in unstructured notes.
The discussion identifies four main obstacles. Most social determinant measures aren't captured systematically, because they aren't needed for diagnosis or billing. Available measures must be constructed from database fields. Many researchers lack the database and research design skills their requests require. And there is no standard way to collect such measures for a study. The authors suggest linking records, adding outside data on neighbourhoods and using natural language processing to mine clinical notes.
Appendices
Appendices include interview notes, a data matrix of common variables, guidance on requesting data from the Center for Clinical Data Analysis, an FAQ on review by the Johns Hopkins Data Trust Council, and an FAQ on SlicerDicer, EPIC's tool for preliminary patient counts. A second, 12-month phase of the project was due to start in July 2017.
Why It Matters
The guide gives an honest account of how hard it is to use electronic health records for research on the social determinants of health.
