Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

OBJECTIVES: Primary care electronic health records provide a rich source of information for inequalities research. However, the reliability and validity of the research derived from these records depend on the completeness and resolution of the codelists (ie, collections of medical terms/codes) used to identify populations of interest. The aim of this project was to develop comprehensive codelists for identifying people from ethnic minority groups, people with learning disabilities (LDs), people with severe mental illness (SMI) and people who are transgender. DESIGN: We followed a three-stage process to define and extract relevant codelists. First, groups of interest were defined a priori. Next, relevant clinical codes, relating to the groups, were identified by searching Clinical Practice Research Datalink (CPRD) publications, codelist repositories and the CPRD Code Browser. Relevant codelists were extracted and merged according to group, and duplicates were removed. Finally, the remaining codes were reviewed by two general practitioners (GPs). SETTING: The curated codelists were compared using a representative sample in the UK. The frequencies of individuals identified using the curated codelists were assessed and compared with widely used alternative codelists. PARTICIPANTS: Comprehensiveness was assessed in a representative CPRD population of 10 966 759 people. RESULTS: After removal of duplicates and GP review, codelists were finalised with 325 unique codes for ethnicity, 558 for LD, 499 for SMI and 38 for transgender. Compared with comparator codelists, an additional 48 017 (76.6%), 52 953 (68.9%) and 508 (36.9%) people with LD, SMI or transgender code were identified. The proportions identified for ethnicity, meanwhile, were consistent with expectations for the UK (eg, 6.50% Asian, 2.66% black and 1.44% mixed). CONCLUSIONS: The curated codelists are more sensitive than those widely used in practice and research. Discrepancies between national estimates and primary care records suggest potential record/retention issues. Resolving these requires further investigation and could lead to improved data quality for research.

Original publication

DOI

10.1136/bmjopen-2024-098305

Type

Journal article

Journal

BMJ Open

Publication Date

11/08/2025

Volume

15

Keywords

EPIDEMIOLOGY, MENTAL HEALTH, Primary Care, Transgender Persons, Humans, Electronic Health Records, United Kingdom, Cross-Sectional Studies, Male, Female, Primary Health Care, Ethnicity, Mental Disorders, Minority Groups, Adult, Transgender Persons, Reproducibility of Results, Clinical Coding