Harmonising electronic health records for reproducible research: challenges, solutions and recommendations from a UK-wide COVID-19 research collaboration

Hoda Abbasizanjani, Fatemeh Torabi, Stuart Bedston, Thomas Bolton, Gareth Davies, Spiros C. Denaxas, Rowena Griffiths, Laura Herbert, Sam Hollings, Spencer Keene, Kamlesh Khunti, Emily Lowthian, Jane Lyons, Mehrdad A. Mizani, John Nolan, Cathie Sudlow, Venexia Walker, William Whiteley, Angela M. Wood, Ashley AkbariBMC Medical Informatics Decis. Mak 2023

TL;DR

This paper presents a robust, four-layer methodology for harmonizing electronic health records (EHRs) across different UK health data repositories (Trusted Research Environments or TREs). This approach is crucial for enabling large-scale, reproducible research on critical public health issues like the relationship between COVID-19 and cardiovascular diseases, by ensuring data consistency and comparability across diverse data sources.

What Problem Does This Paper Address?

The COVID-19 pandemic highlighted the urgent need for efficient, collaborative research using electronic health records (EHRs). However, a significant challenge lies in harmonizing data from various healthcare systems and nations, especially when these data reside within different "Trusted Research Environments" (TREs). TREs, while essential for data security, often have distinct data access policies, governance structures, and data formats. This heterogeneity makes it difficult to combine and analyze data at an individual level, hindering the ability to conduct cross-validation, achieve sufficient statistical power, and investigate health inequalities. The paper aims to address this by developing and detailing a reproducible method for harmonizing EHR data from different UK TREs, specifically focusing on the SAIL Databank in Wales and NHS Digital's TRE in England.

Methods

The authors developed a four-layer harmonization process designed for reproducibility and scalability:

  • Layer 1: Raw Data: This layer involves accessing the original, unprocessed data sources within each TRE.
  • Layer 2: Curated Data: Raw data is cleaned, quality-checked, and linked to create "Research Ready Data Assets" (RRDAs). This involves applying common quality checks, linkage procedures, and pre-processing steps.
  • Layer 3: Phenotyped Data: This layer involves defining and extracting specific clinical events or characteristics (phenotypes) from the curated data. This often requires mapping different coding systems (e.g., ICD-10, Read V2, SNOMED-CT) to a unified standard.
  • Layer 4: Project-Specific Data: The final layer involves creating harmonized data tables tailored to the specific requirements of individual research projects. This ensures that all data tables, column names, and applicable values are consistent across TREs, enabling direct comparison and meta-analysis of results.

The methodology emphasizes transparency, consistent naming conventions, and the use of scripts for data cleaning and transformation to ensure reproducibility.

Datasets

The study utilized large-scale, anonymized individual-level EHR, demographic, and administrative data from:

  • SAIL Databank (Wales): This includes data from primary and secondary care, prescribing records, COVID-19 testing and vaccination data, and mortality records.
  • NHS Digital TRE (England): This includes similar data sources for the population of England.

Specifically, the paper mentions the "C20 cohort" in Wales, which comprises approximately 3.2 million residents, and the equivalent "key patient characteristics" table in England, covering over 56 million individuals. The data spans from 1990 to 2022.

Key Insights and Ideas

  • The "Four-Layer" Approach: This structured methodology provides a clear, reproducible, and scalable framework for harmonizing complex health data across different secure environments. It breaks down a daunting task into manageable, iterative steps.
  • Importance of Phenotype Definition: A critical insight is the challenge and necessity of defining and harmonizing "phenotypes" (clinical concepts like diagnoses or conditions) across different coding systems. This is essential for making data comparable.
  • TRE Heterogeneity is a Major Hurdle: The paper strongly emphasizes that differences in data structures, coding systems, and governance between TREs are significant challenges that require careful planning and standardized approaches.
  • Reproducibility is Paramount: The emphasis on using scripts, version control, and detailed documentation is key to ensuring that the harmonization process can be audited, replicated, and built upon by other researchers.
  • Meta-Analysis is the Goal: The ultimate aim is to enable meta-analyses of results from different TREs, allowing for more robust conclusions and broader generalizability of findings.

Key Results

  • The implemented four-layer harmonization method successfully retrieved approximately 100 health-related variables for 3.2 million individuals in Wales, which were harmonized with corresponding variables for over 56 million individuals in England.
  • The process involved processing 13 data sources into the first layer, with some updated daily or weekly, ensuring timely data flow.
  • The methodology has been applied to six projects within the CVD-COVID-UK program, leading to peer-reviewed publications.

Limitations and Future Work

Limitations:

  • Data Availability: The harmonization is limited by the data available within each respective TRE. Some data sources may not be present in all TREs.
  • Routine Data Limitations: The inherent limitations of routine health data, such as potential incompleteness, inconsistency over time, varying accuracy, and duplicate records, still apply.
  • Software Differences: Different TREs may use different software for data preparation and analysis, requiring adaptation and potentially higher levels of programming expertise.

Future Work:

  • Developing new Research Ready Data Assets (RRDAs) that encapsulate specific data sources or combinations.
  • Establishing further phenotypes and harmonisation strategies, including code and notebook templates.
  • Expanding the harmonisation methodology to additional data sources and new TREs, both within the UK and internationally.
  • Refining the pipelines, methods, and approaches within the CVD-COVID-UK consortium.

Summary updated

BibTeX
@article{abbasizanjani2023harmonising,
  author = {Hoda Abbasizanjani and Fatemeh Torabi and Stuart Bedston and Thomas Bolton and Gareth Davies and Spiros C. Denaxas and Rowena Griffiths and Laura Herbert and Sam Hollings and Spencer Keene and Kamlesh Khunti and Emily Lowthian and Jane Lyons and Mehrdad A. Mizani and John Nolan and Cathie Sudlow and Venexia Walker and William Whiteley and Angela M. Wood and Ashley Akbari},
  title = {{Harmonising electronic health records for reproducible research: challenges, solutions and recommendations from a UK-wide COVID-19 research collaboration}},
  journal = {BMC Medical Informatics Decis. Mak.},
  year = {2023},
  doi = {10.1186/s12911-022-02093-0},
}
Figure