Literature DB >> 34897458

Curating a longitudinal research resource using linked primary care EHR data-a UK Biobank case study.

Philip Darke1, Sophie Cassidy2, Michael Catt3, Roy Taylor4, Paolo Missier1, Jaume Bacardit1.   

Abstract

Primary care EHR data are often of clinical importance to cohort studies however they require careful handling. Challenges include determining the periods during which EHR data were collected. Participants are typically censored when they deregister from a medical practice, however, cohort studies wish to follow participants longitudinally including those that change practice. Using UK Biobank as an exemplar, we developed methodology to infer continuous periods of data collection and maximize follow-up in longitudinal studies. This resulted in longer follow-up for around 40% of participants with multiple registration records (mean increase of 3.8 years from the first study visit). The approach did not sacrifice phenotyping accuracy when comparing agreement between self-reported and EHR data. A diabetes mellitus case study illustrates how the algorithm supports longitudinal study design and provides further validation. We use UK Biobank data, however, the tools provided can be used for other conditions and studies with minimal alteration.
© The Author(s) 2021. Published by Oxford University Press on behalf of the American Medical Informatics Association.

Entities:  

Keywords:  diabetes mellitus; electronic health records; longitudinal studies; medical record linkage; phenotype

Mesh:

Year:  2022        PMID: 34897458      PMCID: PMC8800530          DOI: 10.1093/jamia/ocab260

Source DB:  PubMed          Journal:  J Am Med Inform Assoc        ISSN: 1067-5027            Impact factor:   4.497


INTRODUCTION

Access to nonemergency healthcare in the UK is overseen by General Practitioners (GPs). Electronic Health Records (EHRs) maintained by GPs have been used in observational research for over 30 years and are often used in longitudinal cohort studies, for example, to follow participants after the end of data collection., However, in contrast with the highly curated data collected under a study protocol, EHR data collection is unstandardized, driven by patient need, and subject to a range of biases. The successful integration of linked EHR data in cohort studies is therefore challenging but increasingly important in a wide variety of research fields. Using UK Biobank as an exemplar, we developed methodology to incorporate linked primary care EHR data from multiple data providers within a cohort study. We infer periods of data collection in contrast to typical approaches that censor participants when they deregister from a medical practice. Around 40% of participants with multiple registration periods have longer follow-up under this approach without sacrificing phenotyping accuracy when comparing agreement between self-reported data for a range of conditions and medications. A diabetes mellitus case study was used to demonstrate how the algorithm supports longitudinal study design. Two NHS-approved diabetes prediction tools performed in line with previous validation studies, further validating the approach. We also contribute extensive supplementary material examining the quality of linked EHR data in UK Biobank. R code is provided to enable researchers to apply the approach to UK Biobank and other cohort studies with linked EHR data.

STUDY DATA

UK Biobank is a large prospective study of serious illness in middle and old age with longitudinal follow-up achieved primarily through linkage to national data sets. Interim primary care EHR data were released in September 2019 covering around 230 000 participants with subsequent updates available for COVID-19-related research. These were obtained from intermediaries including the suppliers of GP practice management systems and were linked and de-identified by UK Biobank. Participants provided written consent. Data were recorded by healthcare professionals working at GP practices in England, Scotland, and Wales as part of routine patient care. The interim release included GP practice registration periods, coded diagnoses, test results, drug prescriptions, and administrative data recorded prior to 2016/17. UK Biobank purposefully carried out minimal data cleaning prior to release and the volume of data available varied considerably across individuals.

CURATING A LONGITUDINAL RESEARCH RESOURCE

The successful integration of linked EHR data required: 1) cleaning and validating the raw data, 2) identifying periods of data collection relative to study visits, and 3) extracting clinically relevant diagnoses, observations, and test results.

Initial data cleaning

Data were provided from the TPP SystmOne, EMIS Web, and Vision practice management systems, in contrast with large UK EHR repositories which typically use data from a single system. Registration period, clinical event, and prescription record quality were assessed against standards developed from the Clinical Practice Research Datalink “acceptable patient flag” (Supplementary Table S1). Data quality varied by provider (Supplementary Tables S2–S5). Records with missing dates or codes were excluded.

Identifying periods of EHR data collection

Understanding when data have been collected is essential for longitudinal studies. Existing primary care EHR research often focusses on data recorded after the introduction of the National Health Service (NHS) Quality and Outcomes Framework (QOF) in 2004 which encouraged consistent recording practices across a range of conditions. Practice registration records are typically used determine periods of data collection, for example, by selecting from participants registered with a GP at study start and censoring at practice deregistration. There are limitations when applying this approach to linked EHR data. GP practices began to adopt EHR systems in the 1980s and data recorded prior to the QOF may have clinical importance; while participants may only register with a single NHS practice at a time, records may follow individuals that transfer between practices resulting in the presence of data outside of registration periods; and censoring participants at the first practice deregistration may curtail follow-up (Figure  1). The latter is of particular concern for cohort studies, where a natural objective is to leverage EHR data to follow participants over time.
Figure 1.

Common issues in EHR data collection illustrated with synthetic participant data. These resemble realistic participant types, for example, around 70% of UK Biobank participants have data outside of periods of practice registration. Example 1—individual registered with a practice at birth that subsequently adopted an EHR system in the 1990s (prior records are paper-based). Example 2—individual registered with a practice in 1999 but records are also held from a previous period of registration with another practice. Example 3—multiple periods of registration are available from different practices and/or data providers. Example 4—a combination of the above issues. The boxed areas illustrate the inferred periods of data collection using our algorithm.

Common issues in EHR data collection illustrated with synthetic participant data. These resemble realistic participant types, for example, around 70% of UK Biobank participants have data outside of periods of practice registration. Example 1—individual registered with a practice at birth that subsequently adopted an EHR system in the 1990s (prior records are paper-based). Example 2—individual registered with a practice in 1999 but records are also held from a previous period of registration with another practice. Example 3—multiple periods of registration are available from different practices and/or data providers. Example 4—a combination of the above issues. The boxed areas illustrate the inferred periods of data collection using our algorithm. To address these limitations, an algorithm was developed to identify periods of EHR data collection across practice registration periods (exemplified in Figure  2). Full details are included in Section 2 in the Supplementary Material. A high-level description of the algorithm follows:
Figure 2.

Application of our algorithm to determine periods of complete EHR data collection. The example participant has multiple periods of registration and data outside of registration periods. The boxed areas are the inferred periods of data collection. Further details are included in the Supplementary Materials (Algorithm A1 and Supplementary Figure S1).

Application of our algorithm to determine periods of complete EHR data collection. The example participant has multiple periods of registration and data outside of registration periods. The boxed areas are the inferred periods of data collection. Further details are included in the Supplementary Materials (Algorithm A1 and Supplementary Figure S1). The period of data collection starts at the first observation/prescription record accompanied by a diagnosis/clinical event record, for example, to capture the recording of a BMI when joining a medical practice. Collection was assumed to be complete until practice deregistration and during any subsequent registration periods. Periods of record collection outside of registration periods were included if they contained at least one nonprescription record. Collection was assumed to have taken place during unregistered periods shorter than 1 year. Participants were censored at the earlier of the inferred end of data collection, the data extract date, or the date of death in linked death registry data. The algorithm is applied separately for each data provider and the resultant periods combined.

Extracting clinically relevant data from linked EHRs

UK Biobank data feature a range of coding classifications and multiple data fields for observations and biomarkers, that must be handled. Existing rule-based phenotyping algorithms aim to replicate diagnostic criteria using clinical code sets to identify relevant exposures and outcomes, however, code set repositories for UK EHR research,, typically only cover Read v2 diagnostic codes and limited prescription coding. Comprehensive Read v2, Clinical Terms Version 3 (CTV3), and British National Formulary code sets covering a range of conditions, observations, biomarkers, and drugs were developed (Section 7 in Supplementary Material). Units of measurement were rarely provided in the data, and code descriptions and data dictionaries were often unreliable. An approach was therefore developed to harmonize units (Section 3.2 in Supplementary Material).

VALIDATING THE PROCESSED EHR DATA

Assessing the algorithm against GP registration records

A typical approach is to assume full data collection during periods of GP registration. For example, 191 878 participants (83.4% of participants with clinical event data) were registered with a GP at the first UK Biobank study visit with a mean period of 6.9 years to practice deregistration. In contrast, our algorithm maximized study population and follow-up, identifying 196 901 (85.6%) participants with active data collection at the first visit and a mean follow-up of 7.4 years. By design, no participant had a shorter follow-up period under the algorithm. The impact varied by participant, however, the synthetic examples in Figure  1 represent common scenarios:

Participant 1

GP registration occurs before the inferred start of data collection for 67% of participants. The mean period of registration before data collection starts is 11.2 years (median 5.8 years). The date of GP registration is often a poor indicator of the start of data collection.

Participant 2

Conversely, 24% of participants show evidence of data collection before the first GP registration (mean 5.8 years of additional data). This may be the result of data transfer when participants move between GP practices. Studies that identify this additional data may be able to use earlier study start dates for example.

Participant 3

About 31% of participants have multiple registration periods (Supplementary Table S5). Around 40% of these participants have a longer follow-up under our algorithm (mean 3.8 years). As additional linked EHR data are published, the number of participants with multiple periods of registration will increase and methods that follow participants across registrations will be required to maintain follow-up.

Agreement with self-reported medical conditions and medication

While “ground truth” medical state is typically unavailable, results can be compared with self-reported health in UK Biobank. Participants were phenotyped for selected conditions using EHR data and the results compared with self-reported health at the first study visit (Table 1 and Section 4 in Supplementary Material). The comparison was made for participants with at least 1 year of continuous data collection determined using: 1) our algorithm and 2) assuming data collection only during periods of GP registration. The algorithm generally showed better sensitivity for conditions however the difference between approaches was small. The algorithm therefore maximized study population and follow-up without sacrificing phenotyping accuracy.
Table 1.

Agreement between self-reported and EHR data at the first UK Biobank visit for the conditions and medications used in the QDiabetes-2018 model

Active data collection at first UK Biobank visit determined using:Our algorithm (Algorithm A1 in Supplementary Materials)
GP registration records
SensitivitySpecificityPrecisionSensitivitySpecificityPrecision
Presence of a previous diagnostic record
 Diabetes 94.4 99.895.894.399.8 95.9
 Hypertension 72.2 98.193.272.198.1 93.3
 MI/heart attack70.699.994.7 70.7 99.9 94.8
 Angina59.899.476.4 59.9 99.4 76.5
 Stroke 55.8 99.6 65.2 55.499.664.9
 Transient ischemic attack 56.0 99.423.755.899.423.7
 Bipolar disorder 67.2 99.741.367.1 99.8 41.8
 Schizophrenia 87.4 99.828.487.099.8 29.1
 Polycystic ovarian syndrome 57.3 99.822.457.099.8 23.0
Presence of a prescription record in previous 90 days
 Antihypertensives86.098.293.6 86.2 98.2 93.7
 Statins88.197.989.0 88.2 97.989.0
 Corticosteroids49.699.345.1 49.8 99.3 45.2
 Atypical antipsychotics79.7100.085.6 80.4 100.085.6

Note: Agreement was defined as the presence of a diagnostic record prior to the visit for medical conditions, or the presence of a prescription record in the 90 days prior to the visit for current medication. Sensitivity is the proportion of self-reporting participants that have a confirmatory EHR record. Specificity is the proportion of participants that do not self-report that also do not have an EHR record. Precision is the proportion of participants with an EHR record that also self-report. Overall agreement was similar under each approach, indicating that the algorithm did not sacrifice phenotyping accuracy. Bold indicates higher value.

Agreement between self-reported and EHR data at the first UK Biobank visit for the conditions and medications used in the QDiabetes-2018 model Note: Agreement was defined as the presence of a diagnostic record prior to the visit for medical conditions, or the presence of a prescription record in the 90 days prior to the visit for current medication. Sensitivity is the proportion of self-reporting participants that have a confirmatory EHR record. Specificity is the proportion of participants that do not self-report that also do not have an EHR record. Precision is the proportion of participants with an EHR record that also self-report. Overall agreement was similar under each approach, indicating that the algorithm did not sacrifice phenotyping accuracy. Bold indicates higher value. The metrics in Table  1 are driven by provider 3 (England TPP) which supplied the majority of linked EHR data. Performance by data provider is provided in Supplementary Tables S8–S11. The algorithm outperformed the use of registration records for provider 1 (England Vision) where the primary issue is identifying the start of data collection. Performance was similar for the remaining providers which featured registration periods that conflict or have gaps suggesting that the algorithm handles these cases well. Agreement between self-reported and EHR data varied by condition (Section 4 in Supplementary Material). Prescription data appeared to be of lower quality, with evidence of missing or truncated prescription histories beyond the “system-wide block of missing [provider 2 (Scotland) prescription] records prior to 2012”. UK Biobank prescription data also features nonstandard coding complicating its use (Section 3.3 in Supplementary Material). Accordingly, agreement with self-reported data was generally lower, however, this may also be the result of prescriptions made outside of primary care (eg, emergency corticosteroids) or inconsistent self-reporting.

CASE STUDY: LONGITUDINAL DIABETES PHENOTYPING

To demonstrate how our approach supports study design, participants were longitudinally phenotyped for health states associated with diabetes mellitus (diabetes). Diabetes was selected as its diagnosis and management typically takes place in a primary care setting. Diabetes subtypes differ markedly in clinical features but are not widely self-reported in UK Biobank. Previous approaches estimated subtype from self-reported data, however, the newly available linked EHR data potentially offer more objective supporting information. The phenotyping approach was developed with clinical experts (Section 5 in Supplementary Material) but can be readily adapted for other conditions. Figure  3 shows phenotyping tool output for a synthetic participant.
Figure 3.

Example output from the longitudinal phenotyping tool for a synthetic participant. Our algorithm was used to identify periods of complete data collection (top panel). Periods of nondiabetic hyperglycemia (prediabetes), type 2 diabetes, and remission were identified. Periods of medication and biomarkers are also shown. We phenotyped periods of complete data collection to reduce the risk of inaccurately identifying the date of incidence of diabetes. Similar phenotyping approaches using linked EHR data can be used to enforce study criteria or identify more complex endpoints.

Example output from the longitudinal phenotyping tool for a synthetic participant. Our algorithm was used to identify periods of complete data collection (top panel). Periods of nondiabetic hyperglycemia (prediabetes), type 2 diabetes, and remission were identified. Periods of medication and biomarkers are also shown. We phenotyped periods of complete data collection to reduce the risk of inaccurately identifying the date of incidence of diabetes. Similar phenotyping approaches using linked EHR data can be used to enforce study criteria or identify more complex endpoints. Longitudinal phenotyping is challenging for chronic conditions as multiple diagnosis codes are often recorded over time, for example, at annual care reviews. The first instance of a code may not correspond to the date of diagnosis if data collection is incomplete. We aimed to minimize the risk of misidentifying the date of incidence by restricting phenotyping to periods of complete data collection as inferred by our algorithm. To further validate our algorithm, the performance of two NHS-approved diabetes prediction tools was evaluated on the processed data. QDiabetes-2018 and the Leicester Risk Assessment score are used to triage individuals at risk of diabetes. QDiabetes was developed using primary care EHR data and results are shown in Table  2. Leicester score results are presented in Section 6.2 of the Supplementary Materials. Both scores performed broadly in line with previous validation studies, indicating that the data processed is suitable for use in longitudinal diabetes studies. This reinforces recent work suggesting that risk factor associations in UK Biobank are generalizable across a range of conditions despite the healthier, less-deprived, and less diverse ethnic make-up relative to the UK population.
Table 2.

QDiabetes-2018 model performance (concordance index) for the 10-year incidence of diabetes using UK Biobank EHR data

Model A (demographic data, medical history, and BMI)Model B (A plus current fasting plasma glucose result)Model C (A plus current HbA1c result)
Male
 UK Biobank0.7810.8310.882
 QResearch150.8140.8660.855
Female
 UK Biobank0.8320.8770.904
 QResearch150.8340.8890.878

Note: Performance on the integrated linked EHR data is broadly in line with Hippisley-Cox et al. (shown as QResearch).

QDiabetes-2018 model performance (concordance index) for the 10-year incidence of diabetes using UK Biobank EHR data Note: Performance on the integrated linked EHR data is broadly in line with Hippisley-Cox et al. (shown as QResearch).

CONCLUSION

Linked EHR data can be a valuable source of data to cohort studies. An approach was presented to integrate linked primary care EHR data within a cohort study. This maximizes study populations and follow-up using a rule-based approach to determine periods of EHR data collection for each participant. The processed UK Biobank EHR data showed good agreement with self-reported health status and NHS-approved diabetes prediction tools performed well in a longitudinal study, validating the approach and demonstrating how linked EHR data can be used in study design. We provide extensive supplementary material examining the quality of linked EHR data in UK Biobank. Tools are also provided to implement our approach. These are designed to be general-purpose and support a range of study designs. The approach generalizes to other medical conditions and studies using linked EHR data.

FUNDING

This work was supported by the Engineering and Physical Sciences Research Council, Centre for Doctoral Training in Cloud Computing for Big Data, Newcastle University (grant number EP/L015358/1).

AUTHOR CONTRIBUTIONS

PD conceptualized the work, generated the code sets, processed the data, analyzed the results, drafted the manuscript, and is the guarantor. SC and RT provided diabetes-specific input and reviewed the clinical code sets. JB and PM supervised the research. All authors critically revised the manuscript and approved the final version.

SUPPLEMENTARY MATERIAL

Supplementary material is available at Journal of the American Medical Informatics Association online. R code including participant plotting tools are available at https://github.com/philipdarke/ukbb-ehr-data. Click here for additional data file.
  14 in total

Review 1.  Opportunities and challenges in developing risk prediction models with electronic health records data: a systematic review.

Authors:  Benjamin A Goldstein; Ann Marie Navar; Michael J Pencina; John P A Ioannidis
Journal:  J Am Med Inform Assoc       Date:  2016-05-17       Impact factor: 4.497

2.  The Leicester Risk Assessment score for detecting undiagnosed Type 2 diabetes and impaired glucose regulation for use in a multiethnic UK setting.

Authors:  L J Gray; N A Taub; K Khunti; E Gardiner; S Hiles; D R Webb; B T Srinivasan; M J Davies
Journal:  Diabet Med       Date:  2010-08       Impact factor: 4.359

3.  UK biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age.

Authors:  Cathie Sudlow; John Gallacher; Naomi Allen; Valerie Beral; Paul Burton; John Danesh; Paul Downey; Paul Elliott; Jane Green; Martin Landray; Bette Liu; Paul Matthews; Giok Ong; Jill Pell; Alan Silman; Alan Young; Tim Sprosen; Tim Peakman; Rory Collins
Journal:  PLoS Med       Date:  2015-03-31       Impact factor: 11.069

4.  Algorithms for the Capture and Adjudication of Prevalent and Incident Diabetes in UK Biobank.

Authors:  Sophie V Eastwood; Rohini Mathur; Mark Atkinson; Sinead Brophy; Cathie Sudlow; Robin Flaig; Simon de Lusignan; Naomi Allen; Nishi Chaturvedi
Journal:  PLoS One       Date:  2016-09-15       Impact factor: 3.240

5.  Comparison of Sociodemographic and Health-Related Characteristics of UK Biobank Participants With Those of the General Population.

Authors:  Anna Fry; Thomas J Littlejohns; Cathie Sudlow; Nicola Doherty; Ligia Adamska; Tim Sprosen; Rory Collins; Naomi E Allen
Journal:  Am J Epidemiol       Date:  2017-11-01       Impact factor: 4.897

6.  Discovery of biomarkers for glycaemic deterioration before and after the onset of type 2 diabetes: descriptive characteristics of the epidemiological studies within the IMI DIRECT Consortium.

Authors:  Robert W Koivula; Ian M Forgie; Azra Kurbasic; Ana Viñuela; Alison Heggie; Giuseppe N Giordano; Tue H Hansen; Michelle Hudson; Anitra D M Koopman; Femke Rutters; Maritta Siloaho; Kristine H Allin; Søren Brage; Caroline A Brorsson; Adem Y Dawed; Federico De Masi; Christopher J Groves; Tarja Kokkola; Anubha Mahajan; Mandy H Perry; Simone P Rauh; Martin Ridderstråle; Harriet J A Teare; E Louise Thomas; Andrea Tura; Henrik Vestergaard; Tom White; Jerzy Adamski; Jimmy D Bell; Joline W Beulens; Søren Brunak; Emmanouil T Dermitzakis; Philippe Froguel; Gary Frost; Ramneek Gupta; Torben Hansen; Andrew Hattersley; Bernd Jablonka; Jane Kaye; Markku Laakso; Timothy J McDonald; Oluf Pedersen; Jochen M Schwenk; Imre Pavo; Andrea Mari; Mark I McCarthy; Hartmut Ruetten; Mark Walker; Ewan Pearson; Paul W Franks
Journal:  Diabetologia       Date:  2019-06-15       Impact factor: 10.122

7.  Data resource profile: Clinical Practice Research Datalink (CPRD) Aurum.

Authors:  Achim Wolf; Daniel Dedman; Jennifer Campbell; Helen Booth; Darren Lunn; Jennifer Chapman; Puja Myles
Journal:  Int J Epidemiol       Date:  2019-12-01       Impact factor: 7.196

8.  Assessing electronic health record phenotypes against gold-standard diagnostic criteria for diabetes mellitus.

Authors:  Susan E Spratt; Katherine Pereira; Bradi B Granger; Bryan C Batch; Matthew Phelan; Michael Pencina; Marie Lynn Miranda; Ebony Boulware; Joseph E Lucas; Charlotte L Nelson; Benjamin Neely; Benjamin A Goldstein; Pamela Barth; Rachel L Richesson; Isaretta L Riley; Leonor Corsino; Eugenia R McPeek Hinz; Shelley Rusincovitch; Jennifer Green; Anna Beth Barton; Carly Kelley; Kristen Hyland; Monica Tang; Amanda Elliott; Ewa Ruel; Alexander Clark; Melanie Mabrey; Kay Lyn Morrissey; Jyothi Rao; Beatrice Hong; Marjorie Pierre-Louis; Katherine Kelly; Nicole Jelesoff
Journal:  J Am Med Inform Assoc       Date:  2017-04-01       Impact factor: 4.497

9.  Development and validation of QDiabetes-2018 risk prediction algorithm to estimate future risk of type 2 diabetes: cohort study.

Authors:  Julia Hippisley-Cox; Carol Coupland
Journal:  BMJ       Date:  2017-11-20

10.  Cohort Profile: East London Genes & Health (ELGH), a community-based population genomics and health study in British Bangladeshi and British Pakistani people.

Authors:  Sarah Finer; Hilary C Martin; Ahsan Khan; Karen A Hunt; Beverley MacLaughlin; Zaheer Ahmed; Richard Ashcroft; Ceri Durham; Daniel G MacArthur; Mark I McCarthy; John Robson; Bhavi Trivedi; Chris Griffiths; John Wright; Richard C Trembath; David A van Heel
Journal:  Int J Epidemiol       Date:  2020-02-01       Impact factor: 7.196

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.