Identifying potential biases in code sequences in primary care electronic healthcare records: a retrospective cohort study of the determinants of code frequency
Open Access
Abstract
Objectives To determine whether the frequency of diagnostic codes for long-term conditions (LTCs) in primary care electronic healthcare records (EHRs) is associated with (1) disease coding incentives, (2) General Practice (GP), (3) patient sociodemographic characteristics and (4) calendar year of diagnosis. Design Retrospective cohort study. Setting GPs in England from 2015 to 2022 contributing to the Clinical Practice Research Datalink Aurum dataset. Participants All patients registered to a GP with at least one incident LTC diagnosed between 1 January 2015 and 31 December 2019. Primary and secondary outcome measures The number of diagnostic codes for an LTC in (1) the first and (2) the second year following diagnosis, stratified by inclusion in the Quality and Outcomes Framework (QOF) financial incentive programme. Results 3 113 724 patients were included, with 7 723 365 incident LTCs. Conditions included in QOF had higher rates of annual coding than conditions not included in QOF (1.03 vs 0.32 per year, pConclusions The frequency of diagnostic codes for newly diagnosed LTCs is influenced by factors including patient sociodemographics, disease inclusion in QOF, GP practice and the impact of the COVID-19 pandemic. Natural language processing or other methods using temporally ordered code sequences should account for these factors to minimise potential bias.Keywords
Funding Information
- Engineering and Physical Sciences Research Council (EP/N014529/1)
- Wellcome Trust (N/A)
- National Institute for Health and Care Research (N/A)
This publication has 31 references indexed in Scilit:
- Quality and Outcomes Framework: what have we learnt?:BMJ, 2016
- Data Resource Profile: Clinical Practice Research Datalink (CPRD)International Journal of Epidemiology, 2015
- Completeness and usability of ethnicity data in UK-based primary care and hospital databasesJournal of Public Health, 2013
- Validity of diagnostic coding within the General Practice Research Database: a systematic reviewBritish Journal of General Practice, 2010
- Variation in the recording of diabetes diagnostic data in primary care computer systems: implications for the quality of careJournal of Innovation in Health Informatics, 2009
- Evolving a definition of diseaseArchives of Disease in Childhood, 2007
- The relationship between time since registration and measured incidence rates in the General Practice Research DatabasePharmacoepidemiology and Drug Safety, 2005
- Problems with primary care data quality: osteoporosis as an exemplarJournal of Innovation in Health Informatics, 2004
- Randomized Quantile ResidualsJournal of Computational and Graphical Statistics, 1996
- Testing for Overdispersion in Poisson and Binomial Regression ModelsJournal of the American Statistical Association, 1992