OpenSAFELY: A platform for analysing electronic health records designed for reproducible research
- PMID: 38783412
- PMCID: PMC7616137
- DOI: 10.1002/pds.5815
OpenSAFELY: A platform for analysing electronic health records designed for reproducible research
Abstract
Electronic health records (EHRs) and other administrative health data are increasingly used in research to generate evidence on the effectiveness, safety, and utilisation of medical products and services, and to inform public health guidance and policy. Reproducibility is a fundamental step for research credibility and promotes trust in evidence generated from EHRs. At present, ensuring research using EHRs is reproducible can be challenging for researchers. Research software platforms can provide technical solutions to enhance the reproducibility of research conducted using EHRs. In response to the COVID-19 pandemic, we developed the secure, transparent, analytic open-source software platform OpenSAFELY designed with reproducible research in mind. OpenSAFELY mitigates common barriers to reproducible research by: standardising key workflows around data preparation; removing barriers to code-sharing in secure analysis environments; enforcing public sharing of programming code and codelists; ensuring the same computational environment is used everywhere; integrating new and existing tools that encourage and enable the use of reproducible working practices; and providing an audit trail for all code that is run against the real data to increase transparency. This paper describes OpenSAFELY's reproducibility-by-design approach in detail.
Keywords: OpenSAFELY; electronic health records; open science; reproducibility; research platform.
© 2024 The Authors. Pharmacoepidemiology and Drug Safety published by John Wiley & Sons Ltd.
Conflict of interest statement
Conflicts of interest
BG has received research funding from the Bennett Foundation, the Laura and John Arnold Foundation, the NHS National Institute for Health Research (NIHR), the NIHR School of Primary Care Research, NHS England, the NIHR Oxford Biomedical Research Centre, the Mohn-Westlake Foundation, NIHR Applied Research Collaboration Oxford and Thames Valley, the Wellcome Trust, the Good Thinking Foundation, Health Data Research UK, the Health Foundation, the World Health Organisation, UKRI MRC, Asthma UK, the British Lung Foundation, and the Longitudinal Health and Wellbeing strand of the National Core Studies programme; he also receives personal income from speaking and writing for lay audiences on the misuse of science. BMK is also employed by NHS England working on medicines policy and clinical lead for primary care medicines data.
Figures

References
-
- Orsini LS, Berger M, Crown W, et al. Improving transparency to build trust in real-world secondary data studies for hypothesis testing—Why, what, and how: recommendations and a road map from the real-world evidence transparency initiative. Value Health. 2020;23(9):1128–1136. doi: 10.1016/j.jval.2020.04.002. - DOI - PubMed
-
- Goldacre B, Morley J. Better, broader, safer: using health data for research and analysis. A review commissioned by the Secretary of State for Health and Social Care. Department of Health and Social Care; Published online 2022.
Publication types
MeSH terms
Grants and funding
- 222097/WT_/Wellcome Trust/United Kingdom
- 224485/Z/21/Z/WT_/Wellcome Trust/United Kingdom
- MR/W016729/1/MRC_/Medical Research Council/United Kingdom
- MC_PC_20059/MRC_/Medical Research Council/United Kingdom
- COV-LT-0009/DH_/Department of Health/United Kingdom
- MC_PC_20058/MRC_/Medical Research Council/United Kingdom
- 224485/WT_/Wellcome Trust/United Kingdom
- COV-LT2-0073/National Institute for Health and Care Research
- 222097/Z/20/Z/WT_/Wellcome Trust/United Kingdom
- COV-LT-0009/National Institute for Health and Care Research
- HDRUK2021.000/Health Data Research UK
- MC_PC_20058/UK Research and Innovation
- NIHR135559/National Institute for Health and Care Research
- 220283/Z/20/Z/WT_/Wellcome Trust/United Kingdom
- MR/V015737/1/MRC_/Medical Research Council/United Kingdom
- MC_PC_20030/MRC_/Medical Research Council/United Kingdom
- COV-LT2-0073/DH_/Department of Health/United Kingdom
- 220283/WT_/Wellcome Trust/United Kingdom
LinkOut - more resources
Full Text Sources
Medical