The challenges of replication: A worked example of methods reproducibility using electronic health record data
Authors:
- Richard WilliamsRWRichard Williams
- Cathie SudlowCSCathie Sudlow
- on behalf of the CVD-COVID-UK/COVID-IMPACT ConsortiumOCon behalf of the CVD-COVID-UK/COVID-IMPACT Consortium
Open Access
- 18 July 2025
- journal article
- replication studies
- Published by Public Library of Science (PLoS) in PLOS ONE
- Vol. 20 (7) , e0326335
Abstract
Objective: The ability to reproduce the work of others is an essential part of the scientific disciplines. Replicating observational studies using electronic health record (EHR) data can be challenging due to complexities in data access, variations in EHR systems across institutions, and the potential for unaccounted confounding variables. Our aim is to identify the barriers to methods reproducibility for replication studies using EHR data. Methods: We replicated a study that examined the risk of hospitalisation following a positive COVID-19 test in individuals with diabetes. Using EHR data from the NHS England’s Secure Data Environment (SDE) covering the whole of England, UK (population 57m), we sought to replicate findings from the original study, which used data from Greater Manchester (a large urban region in the UK, population 2.9m). Both analyses were conducted in Trusted Research Environments (TREs) or SDEs, containing linked primary and secondary care data, however methods reproducibility was not straightforward. Differences between the environments that contributed to the difficulties were documented, categorized into themes, and converted into a list of recommendations for TRE/SDEs. Results: Small differences between the environments and the data sources led to several challenges in methods reproducibility. Our recommendations of TRE/SDEs should facilitate future replication studies. The recommendations include: a need for improved machine-readable metadata for EHR data; standardization of governance processes to facilitate federated analysis; mandating of code sharing; and for environments to have a support structure for data engineers and analysts. We also propose a new theme for research, “data reproducibility”, as the ability to prepare, extract and clean data from a different database for a replication study. Conclusion: Even with perfect code sharing, data reproducibility remains a challenge. Our recommendations have the potential to reduce the barriers to replication studies and therefore enhance the potential of observational studies using EHR data.Keywords
Funding Information
- The British Heart Foundation Data Science Centre (SP/19/3/34678)
- UK Research and Innovation (MC_PC_20058)
- NIHR Manchester Biomedical Research Centre (NIHR203308)
- the NIHR Applied Research Collaboration Greater Manchester (NIHR200174)
- the BHF Data Science Centre (HDRUK2023.0239)
- NIHR Research Professor (NIHR303137)
- British Heart Foundation (RG/18/13/33946)
- NIHR Cambridge Biomedical Research Centre (BRC-1215-20014)
- NIHR Cambridge Biomedical Research Centre (NIHR203312)
- Cambridge BHF Centre of Research Excellence (RE/18/1/34212)
- BHF Chair Award (CH/12/2/29428)
- Health Data Research UK (N/A)
This publication has 12 references indexed in Scilit:
- Replicating a COVID-19 study in a national England database to assess the generalisability of research with regional electronic health record dataBMJ Open, 2025
- Better, broader, safer: using health data for research and analysis (the Goldacre review)Journal of Radiological Protection, 2022
- Can Researchers Assess the Suitability of Datasets to Answer Their Research Questions, with Access to Metadata Only?2022
- The Risk Factors Potentially Influencing Hospital Admission in People with Diabetes, Following SARS-CoV-2 Infection: A Population-Level AnalysisDiabetes Therapy, 2022
- Improving reproducibility by using high-throughput observational studies with empirical calibrationPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2018
- Does health informatics have a replication crisis?Journal of the American Medical Informatics Association, 2018
- 1,500 scientists lift the lid on reproducibilityNature, 2016
- A methodological comparison of two European primary care databases and replication in a US claims database: inhaled long-acting beta-2-agonists and the risk of acute myocardial infarctionEuropean Journal of Clinical Pharmacology, 2016
- ClinicalCodes: An Online Clinical Codes Repository to Improve the Validity and Reproducibility of Research Using Electronic Medical RecordsPLOS ONE, 2014
- Evaluating the Impact of Database Heterogeneity on Observational Study ResultsAmerican Journal of Epidemiology, 2013