4.6 Article

rEHR: An R package for manipulating and analysing Electronic Health Record data

Journal

PLOS ONE
Volume 12, Issue 2, Pages -

Publisher

PUBLIC LIBRARY SCIENCE
DOI: 10.1371/journal.pone.0171784

Keywords

-

Funding

  1. National Institute for Health Research (NIHR) School for Primary Care Research (SPCR) [211]
  2. National Institute for Health Research (NIHR)
  3. MRC Health eResearch Centre Grant [MR/K006665/1]
  4. MRC [MR/K006665/1] Funding Source: UKRI

Ask authors/readers for more resources

Research with structured Electronic Health Records (EHRs) is expanding as data becomes more accessible; analytic methods advance; and the scientific validity of such studies is increasingly accepted. However, data science methodology to enable the rapid searching/extraction, cleaning and analysis of these large, often complex, datasets is less well developed. In addition, commonly used software is inadequate, resulting in bottlenecks in research workflows and in obstacles to increased transparency and reproducibility of the research. Preparing a research-ready dataset from EHRs is a complex and time consuming task requiring substantial data science skills, even for simple designs. In addition, certain aspects of the workflow are computationally intensive, for example extraction of longitudinal data and matching controls to a large cohort, which may take days or even weeks to run using standard software. The rEHR package simplifies and accelerates the process of extracting ready-for-analysis datasets from EHR databases. It has a simple import function to a database backend that greatly accelerates data access times. A set of generic query functions allow users to extract data efficiently without needing detailed knowledge of SQL queries. Longitudinal data extractions can also be made in a single command, making use of parallel processing. The package also contains functions for cutting data by time-varying covariates, matching controls to cases, unit conversion and construction of clinical code lists. There are also functions to synthesise dummy EHR. The package has been tested with one for the largest primary care EHRs, the Clinical Practice Research Datalink (CPRD), but allows for a common interface to other EHRs. This simplified and accelerated work flow for EHR data extraction results in simpler, cleaner scripts that are more easily debugged, shared and reproduced.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

Article Health Care Sciences & Services

Predictors and population health outcomes of persistent high GP turnover in English general practices: a retrospective observational study

Rosa Parisi, Yiu-Shing Lau, Peter Bower, Katherine Checkland, Jill Rubery, Matt Sutton, Sally J. Giles, Aneez Esmail, Sharon Spooner, Evangelos Kontopantelis

Summary: Primary care in England faces challenges with high turnover of general practitioners (GPs), and it is unclear whether there are specific predictors and associations with poor population health outcomes. This retrospective observational study found that larger practices in deprived areas with higher morbidity burden were more likely to experience persistent high turnover. Persistent high turnover was associated with poorer service indicators and health outcomes.

BMJ QUALITY & SAFETY (2023)

Article Medicine, General & Internal

Metacognitive therapy home-based self-help for anxiety and depression in cardiovascular disease patients in the UK: A single-blind randomised controlled trial

Adrian Wells, David Reeves, Calvin Heal, Peter Fisher, Patrick Doherty, Linda Davies, Anthony Heagerty, Lora Capobianco

Summary: In cardiac rehabilitation, adding self-help metacognitive therapy (Home-MCT) to the usual rehabilitation program effectively reduces anxiety and depression symptoms. This study provides evidence for the potential of home-based psychological interventions in improving mental health outcomes for patients undergoing cardiac rehabilitation.

PLOS MEDICINE (2023)

Review Oncology

Magnetic resonance imaging-radiomics in endometrial cancer: a systematic review and meta-analysis

Violante Di Donato, Evangelos Kontopantelis, Ilaria Cuccu, Ludovica Sgamba, Tullio Golia D'Auge, Angelina Pernazza, Carlo Della Rocca, Lucia Manganaro, Carlo Catalano, Giorgia Perniola, Innocenza Palaia, Federica Tomao, Andrea Giannini, Ludovico Muzii, Giorgio Bogani

Summary: This study aimed to assess the role of radiomics analysis in pre-operatively predicting molecular or clinicopathological prognostic factors in patients with endometrial carcinoma. The results showed that MRI has high sensitivity and specificity in predicting high-grade endometrial carcinoma, deep myometrial invasion, lymphovascular space invasion, and nodal metastasis.

INTERNATIONAL JOURNAL OF GYNECOLOGICAL CANCER (2023)

Article Multidisciplinary Sciences

Retrospective study of more than 5 million emergency admissions to hospitals in England: Epidemiology and outcomes for people with dementia

David Reeves, Fiona Holland, Hazel Morbey, Mark Hann, Faraz Ahmed, Linda Davies, John V. Keady, Iracema V. Leroi, Siobhan V. Reilly

Summary: Efforts have been made in England to improve hospital care for people with dementia, but the outcomes for these patients, including length of stay, readmission rates, and mortality rates, remain relatively high. The study found that people with dementia were twice as likely to die within 30 days of discharge compared to those without dementia.

PLOS ONE (2023)

Review Obstetrics & Gynecology

The Efficacy of Dienogest in Reducing Disease and Pain Recurrence After Endometriosis Surgery: a Systematic Review and Meta-Analysis

Ludovico Muzii, Chiara Di Tucci, Giulia Galati, Fabiana Carbone, Innocenza Palaia, Giorgio Bogani, Giorgia Perniola, Federica Tomao, Evangelos Kontopantelis, Violante Di Donato

Summary: The objective of this study is to determine the efficacy of dienogest therapy in reducing the risk of endometriosis recurrence after surgery compared to placebo or alternative treatments. A systematic review and meta-analysis were conducted, using data from PubMed and EMBASE. Dienogest significantly reduced the rate of cyst recurrence compared to placebo, but there was no statistically significant difference compared to GnRH agonist. Dienogest treatment also showed a trend towards reducing pain at 6 months. Comparatively, it had a lower rate of hot flashes and a trend towards lower incidence of vaginal dryness compared to GnRH agonist.

REPRODUCTIVE SCIENCES (2023)

Article Medicine, General & Internal

Examining non-linearity in the association between age and reported opioid use in different socioeconomic strata: cohort study using Health Survey for England waves from 1997 to 2014

Magdalena Nowakowska, Salwa S. Zghebi, Li-Chia Chen, Darren M. Ashcroft, Evangelos Kontopantelis

Summary: This study used data from the Health Survey for England waves 1997-2014 to analyze the relationship between age and prescription opioid use in different socioeconomic groups. The findings showed that the association between age and opioid use varies across income and education levels. Higher income and education were associated with a lower probability of reported opioid use. The highest probability of opioid use was observed in the 40-60 age group among those with lower income and education. Employment status did not significantly affect opioid use. Further research is needed to understand opioid use patterns in older people, especially those from disadvantaged socioeconomic backgrounds.

BMJ OPEN (2023)

Article Medicine, General & Internal

Use of locum doctors in NHS trusts in England: analysis of routinely collected workforce data 2019-2021

Christos Grigoroglou, Kieran Walshe, Evangelos Kontopantelis, Jane Ferguson, Gemma Stringer, Darren Ashcroft, Thomas Allen

Summary: This study aimed to quantify and describe the use of locum doctors in NHS trusts in England from 2019 to 2021. The results showed significant variations in locum use among different trusts, with lower-rated and smaller trusts using locums more intensively. The study also highlighted a growing demand for locum doctors, as evidenced by the increasing number of unfilled shifts.

BMJ OPEN (2023)

Article Medicine, General & Internal

Estimated impact from the withdrawal of primary care financial incentives on selected indicators of quality of care in Scotland: controlled interrupted time series analysis

Daniel R. Morales, Mark Minchin, Evangelos Kontopantelis, Martin Roland, Matt Sutton, Bruce Guthrie

Summary: This study aimed to compare the impact of the withdrawal of the Quality and Outcomes Framework (QOF) scheme in primary care in Scotland in 2016 on the recorded quality of care, compared with England where the scheme continued. The results showed a significant decrease in performance for most quality of care indicators in Scotland after the abolition of QOF.

BMJ-BRITISH MEDICAL JOURNAL (2023)

Article Medicine, General & Internal

Referral to the NHS Diabetes Prevention Programme and conversion from nondiabetic hyperglycaemia to type 2 diabetes mellitus in England: A matched cohort analysis

Rathi Ravindrarajah, Matt Sutton, David Reeves, Sarah Cotterill, Emma Mcmanus, Rachel Meacock, William Whittaker, Claudia Soiland-Reyes, Simon Heller, Peter Bower, Evangelos Kontopantelis

Summary: This study examines whether adults referred to the NHS Healthier You Diabetes Prevention Programme in England are less likely to develop type 2 diabetes mellitus. The findings show that people referred to the programme have a 20% lower risk of developing type 2 diabetes compared to those who were not referred. These results support the rapid implementation of the programme in England and suggest its continuation and expansion to other parts of the United Kingdom.

PLOS MEDICINE (2023)

Article Computer Science, Artificial Intelligence

How to Open a Black Box Classifier for Tabular Data

Bradley Walters, Sandra Ortega-Martorell, Ivan Olier, Paulo J. G. Lisboa

Summary: A lack of transparency in machine learning models can limit their application. ANOVA methods can extract interpretable predictive models from them by decomposing them into functions of fewer variables. Retaining the terms involving only one or two variables in the ANOVA summation provides an efficient method to open black box classifiers.

ALGORITHMS (2023)

Article Multidisciplinary Sciences

Comorbidity clusters and in-hospital outcomes in patients admitted with acute myocardial infarction in the USA: A national population-based study

Salwa S. Zghebi, Martin K. Rutter, Louise Y. Sun, Waqas Ullah, Muhammad Rashid, Darren M. Ashcroft, Douglas T. Steinke, Stephen Weng, Evangelos Kontopantelis, Mamas A. Mamas

Summary: This study analyzed the data of AMI patients admitted to hospitals in the United States in 2018. The study identified distinct phenogroups based on comorbidities and found that these phenogroups were associated with in-hospital outcomes.

PLOS ONE (2023)

Article Cardiac & Cardiovascular Systems

Common Cancer Types and Risk of Stroke and Bleeding in Patients With Nonvalvular Atrial Fibrillation: A Population-Based Study in England

Alyaa M. Ajabnoor, Rosa Parisi, Salwa S. Zghebi, Darren M. Ashcroft, Corinne Faivre-Finn, Charlotte Morris, Mamas A. Mamas, Evangelos Kontopantelis

Summary: The study examines the association between certain types of cancer and the balance between stroke and bleeding risk in patients with atrial fibrillation.

JOURNAL OF THE AMERICAN HEART ASSOCIATION (2023)

Article Primary Health Care

Association of strong opioids and antibiotics prescribing with GP burnout: a retrospective cross-sectional study

Alexander Hodkinson, Salwa S. Zghebi, Evangelos Kontopantelis, Christos Grigoroglou, Darren M. Ashcroft, Mark Hann, Carolyn A. Chew-Graham, Rupert A. Payne, Paul Little, Simon de Lusignan, Anli Zhou, Aneez Esmail, Maria Panagioti

Summary: The study found that the well-being of GPs is associated with the overprescribing of strong opioids and antibiotics in primary care. GPs with higher levels of burnout symptoms, job dissatisfaction, and turnover intentions are more likely to overprescribe these medications. Additionally, longer working hours and practices located in the north of England are also associated with increased prescribing of strong opioids and antibiotics.

BRITISH JOURNAL OF GENERAL PRACTICE (2023)

Article Primary Health Care

Consequences of the closure of general practices: a retrospective cross-sectional study

Joseph Hutchinson, Kath Checkland, Jon Gibson, Evangelos Kontopantelis, Matt Sutton

Summary: This study examines the impact of surrounding general practice closures on the funding, list size, workforce composition, and quality of surviving practices. The findings indicate that higher exposure to closures leads to larger practice sizes, reduced funding per patient, and decreased patient satisfaction with services.

BRITISH JOURNAL OF GENERAL PRACTICE (2023)

No Data Available