Variation in Primary Care Diagnostic Codes Used to Define Health Conditions for Research: Comparison of 45 Health Data Research UK Phenotype Library Codelists for Eight Health Conditions.
Brian Kelly, Clare MacRae, Regina Prigge, Harry Hemingway, Natalie Fitzpatrick, Ana Torralbo, Bruce Guthrie
Advanced Care Research Centre, Usher Institute, The University of Edinburgh, Usher Building, 5-7 Little France Road, Edinburgh EH8 9AG. · Institute of Health Informatics, University College London, 222 Euston Road, London, NW1 2DA.
Key points
From the paper's conclusion- The HDR UK Phenotype Library publishes researchers' codelists to facilitate greater transparency and replicability of studies. This study finds that agreement between codelists in terms of the codes included was low. Further research is needed to determine how such variation alters identification of which individuals have conditions of interest.
Abstract
INTRODUCTION: The use of electronic healthcare records (EHRs) has become standard practice in most healthcare settings in many countries. These can be utilised for research purposes by developing codelists to define cohorts and health conditions of interest. In the UK the Health Data Research UK (HDR UK) Phenotype Library is a resource where researchers can access multiple codelists deposited by other researchers for a range of medical conditions. OBJECTIVES: This paper examines variation in the published codelists in the HDR UK Phenotype Library for a number of conditions. METHODS: We extracted codelists held within the HDR UK Phenotype Library for eight common conditions (asthma, autism, coronary heart disease, chronic obstructive pulmonary disease, depression, hypertension, obesity, and type 2 diabetes). We categorised included codes as diagnostic, disease related, administrative, and unrelated to the condition. We explored the degree of agreement between codelists by estimating kappa statistics for codelists for each condition and category. RESULTS: There were 48 published codelists for the eight conditions, with wide variation in the number of codes used to define each condition (for example from 39 to 247 codes in eight asthma codelists). Only codelists for chronic obstructive pulmonary disease and depression consistently achieved fair (kappa 0.21-0.40) moderate agreement (kappa 0.41-0.60), with other conditions consistently achieving fair agreement at best. Agreement was higher for diagnostic codes, and lowest for administrative codes. CONCLUSIONS: The HDR UK Phenotype Library publishes researchers' codelists to facilitate greater transparency and replicability of studies. This study finds that agreement between codelists in terms of the codes included was low. Further research is needed to determine how such variation alters identification of which individuals have conditions of interest.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The use of diagnostic codes to record long-term excessive drinking and alcohol use disorder- a systematic review.Frontiers in psychiatry · 2026
- Lost in transformation: diagnostic aggregation and semantic drift in ICD-derived kidney phenotypes.Journal of the American Medical Informatics Association : JAMIA · 2026
- Electronic Health Record Coding of Self-Reported Diagnoses in the All of Us Research ProgrammedRxiv · 2026
- Missed Opportunities for Chronic Kidney Disease Recognition in Irish Primary Care: A Nationwide Electronic Health Record StudymedRxiv · 2026
- Validation studies of ICD-10 diagnostic codes for identifying common causes of hospitalization: a scoping review.Journal of clinical epidemiology · 2026
- Methods for Ascertainment and Categorization of Race and Ethnicity for Clinical Research: An Overview of Reviews.Journal of clinical epidemiology · 2026