Skip to main content
Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
BMJ Med. 2024; 3(1): e000474.
Published online 2024 Feb 13. doi: 10.1136/bmjmed-2022-000474
PMCID: PMC10868275
PMID: 38361663

Effect of timeframes to define long term conditions and sociodemographic factors on prevalence of multimorbidity using disease code frequency in primary care electronic health records: retrospective study

Associated Data

Supplementary Materials
Data Availability Statement

Abstract

Objective

To determine the extent to which the choice of timeframe used to define a long term condition affects the prevalence of multimorbidity and whether this varies with sociodemographic factors.

Design

Retrospective study of disease code frequency in primary care electronic health records.

Data sources

Routinely collected, general practice, electronic health record data from the Clinical Practice Research Datalink Aurum were used.

Main outcome measures

Adults (≥18 years) in England who were registered in the database on 1 January 2020 were included. Multimorbidity was defined as the presence of two or more conditions from a set of 212 long term conditions. Multimorbidity prevalence was compared using five definitions. Any disease code recorded in the electronic health records for 212 conditions was used as the reference definition. Additionally, alternative definitions for 41 conditions requiring multiple codes (where a single disease code could indicate an acute condition) or a single code for the remaining 171 conditions were as follows: two codes at least three months apart; two codes at least 12 months apart; three codes within any 12 month period; and any code in the past 12 months. Mixed effects regression was used to calculate the expected change in multimorbidity status and number of long term conditions according to each definition and associations with patient age, gender, ethnic group, and socioeconomic deprivation.

Results

9 718 573 people were included in the study, of whom 7 183 662 (73.9%) met the definition of multimorbidity where a single code was sufficient to define a long term condition. Variation was substantial in the prevalence according to timeframe used, ranging from 41.4% (n=4 023 023) for three codes in any 12 month period, to 55.2% (n=5 366 285) for two codes at least three months apart. Younger people (eg, 50-75% probability for 18-29 years v 1-10% for ≥80 years), people of some minority ethnic groups (eg, people in the Other ethnic group had higher probability than the South Asian ethnic group), and people living in areas of lower socioeconomic deprivation were more likely to be re-classified as not multimorbid when using definitions requiring multiple codes.

Conclusions

Choice of timeframe to define long term conditions has a substantial effect on the prevalence of multimorbidity in this nationally representative sample. Different timeframes affect prevalence for some people more than others, highlighting the need to consider the impact of bias in the choice of method when defining multimorbidity.

Keywords: Epidemiology, Healthcare Disparities, Public health, Primary health care

WHAT IS ALREADY KNOWN ON THIS TOPIC

  • Multimorbidity is defined as the presence of two or more long term conditions
  • Large differences in which conditions are included in this definition exist
  • How the time periods used to define a long term condition based on the frequency of disease codes in electronic health record data affect multimorbidity prevalence is unknown

WHAT THIS STUDY ADDS

  • Comparing five timeframes to define 41 of a set of 212 long term conditions, where presence of a single disease code in the electronic health record might represent an acute condition, substantial variation was shown in the prevalence of multimorbidity
  • Multimorbidity prevalence ranged from 41.4% (three codes required within any 12 month period) to 73.9% (if a single code was sufficient for diagnosis); using diseases recorded by clinicians in the electronic health record as active problems, multimorbidity prevalence was only 35.2%
  • Younger people, people in some minority ethnic groups, and people living in areas of lower socioeconomic deprivation were more likely to be re-classified as not multimorbid under timeframes requiring more than one code

HOW THIS STUDY MIGHT AFFECT RESEARCH, PRACTICE, OR POLICY

  • Substantial variation was noted in multimorbidity prevalence according to the timeframe used to define a long term condition, highlighting the challenges in the direct comparison of estimates between studies
  • Recommendations are provided for researchers applying different timeframes for counting long term conditions using electronic health record data
  • Definitions of long term conditions requiring multiple codes may introduce bias, and researchers should provide a rationale for their choice of timeframe and consider sensitivity analyses to explore the impact on different patient groups

Introduction

Multimorbidity is defined as the co-existence of two or more long term conditions in the same person and is a priority for health systems globally.1 2 The number of people living with multimorbidity is growing, partly due to population ageing, with a recent UK based study finding an increase in prevalence in adults from 31% in 2004 to 53% in 2019 and with higher incidence associated with increased socioeconomic deprivation.3 Although most studies define multimorbidity as the presence of two or more long term conditions,4 no consensus exists as to which conditions should be included. One systematic review identified a range from two to 285 separate conditions included in multimorbidity measures,4–6 making comparison between prevalence estimates challenging.

A further challenge to estimating multimorbidity prevalence is to distinguish acute from chronic presentations, particularly when using routinely collected electronic health record data. Most commonly, conditions are characterised as ‘chronic’ based on duration,6 ranging from at least three or 12 months, to lifelong.6–8 Although for many conditions, such as ischaemic heart disease, a single diagnostic code indicates a lifelong condition, for others, such as gastritis, a single code may not differentiate an acute episode from chronic disease, or active from inactive disease. Researchers using electronic health record data have used different approaches to distinguish these: some studies have required multiple entries of a diagnostic code spaced over time for particular diseases, while others have made use of prescriptions of related medications within a specific time period.3 9 A potential alternative to using occurrences of diagnostic codes is to use conditions that a clinician has classified as being a problem within the healthcare record. These conditions are recorded separately from clinical diagnoses and are used by clinicians as a summary of a patient’s active clinical problems.10

Whether the prevalence of multimorbidity is substantially affected by the choices over the use of diagnosis or problem codes is unclear, as is the timeframe for determining whether a person has a long term condition and whether definitions may impact some groups of people differently. The aim of this paper, therefore, is to determine the extent to which different strategies that are used to define multimorbidity in the primary care electronic health record affect the prevalence of multimorbidity overall and between different demographic groups. We used a range of timeframes from previous multimorbidity research to define long term conditions, and applied these to a large, nationally representative sample of patients in the primary care electronic health record in England.

Figure 1 shows the visual abstract.

Materials and methods

Data source

We used data provided from the Clinical Practice Research Datalink Aurum dataset, which includes routinely collected, patient level data from general practices using EMIS health web software in England.11 We included all patients who were deemed research acceptable (a marker used by the Clinical Practice Research Datalink for patients meeting specific quality criteria12) registered to a general practice on 1 January 2020 and aged 18 years or older with at least one year of continuous practice registration. Observation data for each patient are recorded in the form of Medcodes, along with the date of observation and entry date. Any observation codes occurring after the 1 January 2020 were excluded and we included all historical observation codes. Data were linked to the 2019 Index of Multiple Deprivation of a patient’s area of residence (categorised into tenths), which was used as a patient level marker of socioeconomic deprivation.13

Diagnostic codes and data cleaning

Multimorbidity was defined as the presence of two or more chronic conditions from a set of 212 conditions.4 We included 211 conditions selected by Head and colleagues, based on a set of 308 disease phenotypes developed by Kuan and colleagues.3 14 We reviewed these code lists and made changes for diabetes disease lists (online supplemental appendix) and also included "chronic primary pain" as a new condition. In the study by Head and colleagues, most conditions were defined by a diagnostic code ever being recorded, but for some conditions, the authors required three occurrences of a code within a 12 month period. Two clinicians (TB and JC) reviewed the codes and reassigned 41 diseases to require multiple codes where a single code might otherwise indicate an acute condition (see online supplemental appendix for further details and rationale). For diabetes, we assigned the most likely diabetes type (type 1, type 2, or other/unspecified) based on the frequency of codes. Further information on the long term condition categories and cleaning of ethnic group codes are given in the online supplemental appendix. Our code lists are available from: https://tbeaney.github.io/MMclustering/

Supplementary data

bmjmed-2022-000474supp001.pdf

Disease definitions

The number of chronic conditions for each person was calculated as of the 1 January 2020 under each of the following five definitions (figure 2). These definitions were selected to reflect the variety used in previous multimorbidity research and definitions of chronic conditions:

An external file that holds a picture, illustration, etc.
Object name is bmjmed-2022-000474f02.jpg

Schematic diagram of assignment of a long term condition for a hypothetical patient under each alternative definition. Each cross represents a code for a condition in a single patient s electronic health record timeline from January 2018 to April 2019, with the colour representing the disease. The single code means a single code was sufficient for diagnosis results in all four long term conditions being counted. Two codes over three months and two codes over 12 months required at least two codes separated by at least three months and 12 months, respectively. Three within 12 months’ requires three codes occurring within a 12 month time window. Any in past 12 months requires at least one code occurring in the past 12 months (measured in the 12 months from 1 January 2019 to 1 January 2020. Diseases defined by problems not included here

  1. Any disease code in the record for all 212 conditions, which was used as the reference definition (single code);14
  2. two codes at least three months apart for the 41 conditions requiring multiple codes,7 or a single code for the remaining 171 conditions;
  3. two codes at least 12 months apart for the 41 conditions requiring multiple codes,7 8 or a single code for the remaining 171 conditions;
  4. three codes within any 12 month period for the 41 conditions requiring multiple codes,3 or a single code for the remaining 171 conditions; and
  5. any code appearing within the past 12 months for the 41 conditions requiring multiple codes,9 or a single code for the remaining 171 conditions.

We also compared a definition of multimorbidity only including conditions defined as active problems (referred to here as problems). Diagnostic codes entered into the record can be marked by clinicians as problems, which then appear on a patient’s summary during a consultation.11 These may be more visible to the clinician than historical diagnostic codes, which would require manual searching through the electronic notes and are also pulled across onto referral letters.10 Problems are recorded as either active or past problems and can be marked as ended if no longer active, with the end date recorded.11 We included only those problems that were active, that is, those that did not have an associated end date before 1 January 2020 and were marked as active. The problem definition was applied to all 212 long term conditions and not only the 41 requiring multiple codes. Further details are given in the online supplemental appendix page 10.

Statistical analysis

We calculated the prevalence of patients with one, two, or three or more chronic conditions based on each definition, stratified by age group, gender, ethnic group, and socioeconomic deprivation. Age (years) was categorised into 18-29, 30-39, 40-49, 50-59, 60-69, 70-79, and 80 or more. For gender, we used the categories defined in Clinical Practice Research Datalink, as male, female, or indeterminate (where gender cannot be classified as male or female). No data for age or gender were missing due to our inclusion criteria and Clinical Practice Research Datalink's definition of research acceptable patients. In all analyses, missing data were assigned as categories to ensure no patients were excluded.

To calculate associations with the expected probability of a change in having multimorbidity under each definition, we used mixed effects logistic regression. We included only patients with multimorbidity defined using the single code definition and created a binary outcome variable as 1 if multimorbidity status changed and 0 if multimorbidity status did not change, compared with the single code definition. We included age, gender, ethnic group, and Index of Multiple Deprivation as covariates in the models and random intercepts for general practice to account for clustering and potential coding differences between practices. We then calculated the marginal probability of a change in multimorbidity status overall, and separately for each covariate, holding other covariates at their mean values and assuming random effects of zero.

To calculate associations with the change in expected total count of conditions under each definition compared with the single code definition, we used mixed effects negative binomial regression. A negative binomial model was chosen because the conditional variance was found to be significantly larger than the conditional mean for each model (P<0.001) making a Poisson model unsuitable.15 Models included the same covariates and random effects as in the mixed effects logistic regression models. We then calculated the marginal expected change in the count of long term conditions overall and separately for each covariate, assuming other covariates in the model were held at their mean values and random effects of zero. All regression models assumed the single code definition as the reference group, given that this method will always result in the highest estimated prevalence. Further details, including equations for both models, are given in the online supplemental appendix.

Python version 3.10.6 and Pandas version 1.4.3 were used in data processing and plots and Stata version 17.0 was used for regression analyses.

Results

We included 9 718 573 adults aged 18 years or older and registered in the Clinical Practice Research Datalink Aurum on 1 January 2020 in the study. Table 1 shows the demographic characteristics of patients included. 20.2% of participants were aged 18-29 years and 6.4% were 80 years or older. Gender was almost equally split between women and men (49.7% and 50.3%, respectively) with less than 0.1% recorded in the Clinical Practice Research Datalink as indeterminate gender. Most people (69.2%) were of white ethnicity, with 15.7% missing an ethnic group recording. Study participants were evenly distributed among the ten Index of Multiple Deprivation groups, but with relatively fewer (8.8%) in the most deprived tenth. Based on the single code definition (any code representing one of the 212 long term conditions present in the record), the number of long term conditions per person and prevalence of multimorbidity increased with age, and were higher in women and people of white ethnicity. Multimorbidity prevalence was highest in people living in the least deprived Index of Multiple Deprivation group (77.6%), with a declining prevalence up to the eighth group (70.0%) but with subsequently higher prevalence in the two most deprived groups (72.0% and 74.7%).

Table 1

Characteristics of study participants by mean number of conditions and prevalence of multimorbidity based on a single code definition of 212 long term conditions

Participant characteristicsTotal, %Mean number of long term conditionsPrevalence with one or more long term conditions, %Prevalence with multimorbidity, %
Age (years):
18-291 958 414 (20.2)1.971.648.5
30-391 580 260 (16.3)2.676.857.3
40-491 806 547 (18.6)3.886.472.6
50-591 504 086 (15.5)5.593.485.7
60-691 255 632 (12.9)7.196.592.4
70-79987 576 (10.2)9.098.596.7
 ≥80626 058 (6.4)11.299.098.1
Gender:
Female4 831 012 (49.7)5.389.478.5
Indeterminate205 (<0.1)4.288.374.1
Male4 887 356 (50.3)4.583.269.4
Ethnic group:
White6 721 471 (69.2)5.590.279.6
South Asian699 376 (7.2)4.482.068.5
Black390 621 (4.0)4.083.868.8
Other251 218 (2.6)2.460.643.5
Mixed132 957 (1.4)3.479.762.8
Missing1 522 930 (15.7)3.376.458.6
Index of Multiple Deprivation group:
1 (least deprived)1 033 628 (10.6)5.089.377.6
2941 864 (9.7)5.189.177.4
3990 212 (10.2)5.087.275.3
4986 174 (10.1)5.187.775.8
5923 682 (9.5)4.885.773.2
6980 715 (10.1)4.885.272.6
71 018 134 (10.5)4.783.870.8
81 007 086 (10.4)4.683.370.0
9973 478 (10.0)4.885.072.0
10 (most deprived)855 807 (8.8)5.286.874.7
Missing7793 (0.1)4.179.865.4
Total9 718 5734.986.373.9

Multimorbidity prevalence

The prevalence of people with one or more, two or more, or three or more long term conditions varied substantially according to definition used (table 2). Under the single code definition, the prevalence of multimorbidity (two or more long term conditions) was 73.9%, reducing to 41.4% using the three codes within 12 months’ definition and 35.2% using only conditions recorded as active in the problem list.

Table 2

Prevalence of people with one or more, two or more, or three or more long term conditions using different definitions. Data are number (percentage)

Long term condition definitionOne or more long term conditionsTwo or more long term conditionsThree or more long term conditions
Single code8 386 988 (86.3)7 183 662 (73.9)6 077 925 (62.5)
Two over three months7 027 508 (72.3)5 366 285 (55.2)4 209 213 (42.3)
Two over 12 months6 797 097 (69.9)5 106 872 (52.5)3 980 370 (41.0)
Three within 12 months5 937 863 (61.1)4 023 023 (41.4)2 864 536 (29.5)
Any in past 12 months5 964 391 (61.4)4 149 619 (42.7)3 041 805 (31.3)
Problems only5 546 217 (57.1)3 419 374 (35.2)2 172 454 (22.4)

Of the 41 conditions included that were required to have multiple codes, elevated concentrations of total cholesterol, triglycerides, and low density lipoprotein; dermatitis; and enthesopathy and synovial disorders were the most common conditions, with a prevalence of at least 20% using the single code definition (online supplemental appendix figure A1). The prevalence of most of these conditions was substantially lower with each of the alternative definitions from two codes over three months to two codes over 12 months to three codes within 12 months, and any code in the past 12 months. However, reductions in the prevalence were not consistent between conditions, as evidenced by the prevalence of obesity, which was higher under the any in past 12 months definition compared with the three within 12 months definition.

For problem codes, the pattern was mixed according to condition. Hypertension, type 2 diabetes, thyroid disease, chronic kidney disease, atrial fibrillation, and chronic obstructive pulmonary disease had a similar prevalence applying the problems definition compared with using only the single code definition (online supplemental figure A2). However, those diagnoses based only on blood test results (raised concentrations of cholesterol or triglycerides) were represented rarely in the problem table (prevalence <0.1%; Online supplemental figure A2).

The prevalence of multimorbidity under each definition stratified by demographic group is shown in figure 3 (percentages are given in online supplemental table A2). Within all sociodemographic strata, multimorbidity prevalence was lowest applying the problems definition, from 12.1% in the 18-29 year age group to 87.8% in the 80 years and older age group, compared with 48.5% and 98.1%, respectively, applying a single code definition. Comparing the definitions using alternative timeframes, the absolute difference in prevalence between definitions was large for younger age groups but became smaller with increasing age. Within categories of gender, ethnic group, and Index of Multiple Deprivation group, absolute differences in multimorbidity prevalence between definitions remained similar in size (figure 3).

An external file that holds a picture, illustration, etc.
Object name is bmjmed-2022-000474f03.jpg

Prevalence of multimorbidity using different definitions of long term condition, by demographic factors. Diamonds represent estimates and bars represent 95% confidence intervals from mixed effects logistic regression models. IMD=Index of Multiple Deprivation

Demographic differences in multimorbidity status according to disease timeframe

In people with multimorbidity based on the single code definition, we compared the expected probability of a change in multimorbidity status under each different timeframe, holding age, gender, ethnic group and Index of Multiple Deprivation at their mean values. The expected probabilities by definition of a person being reclassified as not multimorbid (compared with the single code definition) were 18.7% for two codes over three months, 21.9% for two codes over 12 months, 40.4% for three codes within 12 months, 37.5% for any code in the past 12 months, and 51.6% for problems.

Older people were substantially less likely to be reclassified as not multimorbid compared with younger people after controlling for gender, ethnicity and deprivation, under each of the four alternative definitions compared with a single code definition (figure 4 and online supplemental table A3). People aged 80 years or older had only a 1-10% probability of being reclassified under the different definitions, compared with those aged 18-29 years, who had a 50-75% range of being reclassified. Within each definition, the expected probabilities of a change in multimorbidity status were similar for men and women. People of South Asian ethnicity had the lowest expected probability of a change in multimorbidity status, under all alternative definitions, except for the three codes within 12 months and problems definition, where the probability was lowest for people of white ethnicity. People of other, or unknown ethnic groups had the highest expected probabilities of no longer being multimorbid under all alternative definitions. The data showed a strong gradient towards a lower chance of being reclassified as not multimorbid with increasing deprivation across all alternative definitions.

An external file that holds a picture, illustration, etc.
Object name is bmjmed-2022-000474f04.jpg

Expected probabilities for being reclassified as not multimorbid with each definition compared with a single code definition. Diamonds represent estimates and bars represent 95% confidence intervals from mixed effects logistic regression models

Demographic differences in the number of chronic conditions according to disease timeframe

We used mixed effects multivariable negative binomial models to estimate the expected reduction in the number of long term conditions under each definition compared with the single code definition, holding age, gender, ethnic group, and Index of Multiple Deprivation at their mean values. The mean expected reduction in the number of long term conditions from the single code definition was 1.9 for two codes over three months, 2.1 for two codes over 12 months, 3.1 for three codes within 12 months, 3.0 for any code in the past 12 months, and 3.6 for problems.

Younger people had a smaller expected reduction in the number of long term conditions than older people, after controlling for gender, ethnicity and deprivation, relative to the single code definition. This finding was apparent across all alternative definitions but was more pronounced in the problems, three within 12 months and any in past 12 months definitions, with people of 18-29 years expected to have 2.0 conditions fewer by each definition, compared with people 80 years or older expected to have 6.4, 3.9 and 4.0 conditions fewer, respectively, when compared with the single code definition (online supplemental appendix figure A3 and table A4). Men had smaller expected reductions in the count of conditions compared with women across all definitions. People of South Asian ethnicity had the largest expected reduction in the number of long term conditions, while people of black, other, or unknown ethnic groups had smaller reductions in the expected count. Data were trending towards larger expected reduction in counts of long term conditions in people living in areas of higher deprivation.

Discussion

Our study found large variation in the prevalence of multimorbidity depending on the timeframe used to define long term conditions in a nationally representative cohort of patients in the general practice electronic health record in England, ranging from 41.4% where three codes were required within a 12 month period to 73.9% where a single code sufficed. Using active problem codes resulted in the lowest prevalence of 35.2%. A large variation was found despite using the same set of conditions and applying the alternative definitions for only 41 (19%) of the 212 conditions included. Prevalence of multimorbidity by sociodemographic factors varied substantially, particularly for age. Our selection of alternative timeframes represents a range of approaches, rather than a comprehensive assessment of all possibilities. Although we were unable to assess from the electronic health record whether people are appropriately reclassified using alternative timeframes, our results highlight the large disparities in estimates of multimorbidity prevalence, and that choice of timeframe will affect estimates for some people more than others.

Prevalence of multimorbidity reported in the existing literature ranges widely, with differences explained in part by the number of long term conditions included.5 We used a similar number of conditions to those of Head and colleagues who reported a prevalence of 52.8% in England in 2019.3 Their reported prevalence of multimorbidity was much higher than those from two other UK based studies of 23.2% and 27.2%, which used a smaller set of long term conditions (40 and 36, respectively, compared with Head et al's 211).9 16 Our most comparable definition (three codes within 12 months) resulted in a lower prevalence of multimorbidity (41.4%) than that of Head and colleagues, which may relate to our recategorisation of codes from the CALIBER study, and our different set of conditions that required multiple codes. Using a single code definition, the detected prevalence in our study was substantially higher (74%), likely reflecting inclusion of acute or inactive conditions. Our study is novel in identifying that the timeframe for defining long term conditions also has a substantial effect on prevalence of multimorbidity, comparable to the differences in the number of long term conditions on the prevalence of multimorbidity.

Our results also show that differences in prevalence estimates according to timeframe do not have uniform effects across a population. Large differences were found between demographic factors and the prevalence of multimorbidity and the number of long term conditions. Older age, South Asian ethnicity, and greater deprivation were associated with a lower risk of being reclassified as not multimorbid (figure 4) across all alternative definitions, but with corresponding larger reductions in the total count of diseases (online supplemental figure A3). Various sociodemographic factors are known to affect incidence and prevalence of multimorbidity, with previous studies highlighting that risk is higher in people living in areas of greater socioeconomic deprivation and people of black ethnicity.3 17 Although we found that those living in less deprived areas had a higher prevalence of multimorbidity when using a single code definition (table 1), this group were more likely to be reclassified as not multimorbid than people in more deprived groups when requiring multiple codes (figure 4). Our findings suggest differences in the composition of long term conditions contributing to multimorbidity in younger versus older age, and in people living in less versus more deprived areas. Groups that are more likely to be reclassified are more likely to have conditions where a single code could indicate an acute condition, for example, dermatitis and enthesopathy and synovial disorders, which were large contributors to overall multimorbidity burden (online supplemental figure A1). Other explanations for differences between groups might be explained by differential under-counting of disease burden or differences in health seeking behaviour and access to healthcare.18 19 Variation in how disease codes are entered between general practices and between clinicians within the same general practices which impact differently on patient groups.20 21

We hypothesised that using only conditions designated by clinicians as active problems in the healthcare record could be an effective route to identifying active long term conditions. This method yielded the lowest prevalence of multimorbidity of 35.2% overall, and of 87.8% in those aged 80 years and older, but with substantial variation between conditions. In primary care in England, the management of some long term conditions is incentivised by the quality and outcomes framework which started in 2004.22 We found that conditions such as hypertension, type 2 diabetes, and chronic obstructive pulmonary disease, all included in the framework, were much more similar in prevalence comparing the single code and problems definition. This suggests there may be coding bias towards conditions present in the framework when using problem codes, and so we do not recommend this method for studies of multimorbidity including a broad range of conditions.

Strengths and limitations

A strength of our study is the use of large sample of adults registered to primary care in England, with previous studies of the Clinical Practice Research Datalink Aurum data finding it to be representative of the national population.11 We adopted a broad set of disease codes, many of which have particular relevance to primary care, and applied different definitions of long term condition timeframe using the same set of conditions to the same patient cohort. To an extent, these definitions are arbitrary, and our analysis presented a range of approaches used in the literature before, rather than attempting to analyse all possible definitions. For example, a condition lasting more than six months is sometimes used to define a long term condition,6 but we did not include this definition because estimates would lie between our range of three and 12 months.

A limitation of using routinely collected healthcare data is that some conditions may not be recorded, either because a person does not present with a condition or because when presenting, the condition is not coded by a clinician. The likelihood of missing codes is unlikely to be random with respect to either patients or diseases. Although a previous systematic review found good agreement in diseases recorded in Clinical Practice Research Datalink with other sources,23 comparison against cancer diagnoses in the Clinical Practice Research Datalink with cancer registry data found a range of 9–26% for different cancers were missing in the Clinical Practice Research Datalink.24 The financial incentives offered by quality and outcomes framework have improved data collection and coding in primary care22 and may therefore inflate the prevalence of long term conditions requiring multiple codes for conditions included in the framework relative to other conditions.

The code lists used for raised total cholesterol, raised low density lipoprotein cholesterol, low high density lipoprotein cholesterol and raised triglycerides available from the CALIBER study include test results (rather than diagnostic codes), which were rarely coded as problems, partially explaining the substantially lower prevalence of multimorbidity overall. Studies using problem codes alone would therefore need to include diagnostic codes, but was not feasible for comparison in our study as the granularity required in low density lipoprotein cholesterol and high density lipoprotein cholesterol measurements cannot be accounted for using diagnostic codes alone. A further issue of using problem codes is in defining active problems. In Clinical Practice Research Datalink Aurum no date is recorded at which a problem is changed from active to inactive. Our data extraction occurred in May 2022, and so some codes marked as inactive were likely active at the study start date, and so our findings may represent an underestimate. However, given our focus on chronic conditions, the number of conditions to have resolved is unlikely to be large.

We used a large set of chronic conditions, which will have unequal burden on clinical outcomes, healthcare use, and quality of life. Many may not be included in other multimorbidity measures, with a recent Delphi study identifying a core set of 24 conditions to always include and 35 to usually include and with no conditions identified for exclusion.25 A smaller and standardised set of conditions can aid comparability and reproducibility but has drawbacks. Firstly, a smaller set limits the scope to detect novel associations between less common conditions. Secondly, choices over conditions are subjective and those that are less frequent can still have a large burden on individuals.

The overlap between some of the long term conditions included here may lead to double counting and over-estimation of multimorbidity, for example, combining myocardial infarction and angina as ischaemic heart disease. However, when investigating the cause of disease, more granular categories may be a benefit because a person with a myocardial infarction who subsequently develops angina may have a different trajectory and opportunities for intervention and prevention to a person with angina who subsequently develops a myocardial infarction, despite a common pathophysiology.

Combining diagnostic codes with relevant medications or treatments may help to distinguish active versus inactive conditions; for example, use of a proton pump inhibitor in gastritis. Similarly, the quality and outcomes framework excludes patients from the asthma register if no asthma related drugs were prescribed in the past 12 months.26 However, a difficulty with this approach for some diseases is that drugs can have multiple indications; for example, proton pump inhibitors being co-prescribed with non-steroidal anti-inflammatory medications, which may be more common in those with a history of gastro-intestinal problems irrespective of active symptoms.27

Implications

Despite the consensus in the medical literature on the definition of multimorbidity as the co-occurrence of two or more chronic conditions,4 which conditions should be included or how to determine chronicity has not been agreed.5 25 Our findings highlight that even when using the same set of medical codes, decisions on how to define a long term condition can change the prevalence of multimorbidity almost twofold, which has important implications for the direct comparison of estimates between studies. Results also suggest that a universally agreed metric of multimorbidity prevalence may be an unrealistic target and that estimates are highly context dependent. Rather than seeking one rigid definition of multimorbidity, we believe that researchers should instead embrace the variety of approaches, better reflecting the variety of lived experiences of people having multimorbidity. As such, we do not advocate only one of our approaches as the best, with choice dependent in part on the aims of the research. Nevertheless, some approaches may be more suitable in particular contexts, while the impact of bias, and exclusion of specific groups from multimorbidity measures, highlighted in our work, should be assessed (Box 1).

Box 1

Recommendations for research in applying a timeframe for counting long term conditions in the electronic health record

  1. Provide a rationale for the choice of timeframe to define a long term condition
  2. For studies of disease causes, use of a single code anywhere in the record may be preferred, as a condition even if historic and inactive may be relevant to subsequent disease development
  3. Analyses of current interactions with healthcare services may be best suited to using codes appearing in a recent timeframe, for example, within the past 12 months
  4. Timeframes requiring more than one code may be biased by factors related to repeated coding, therefore, we recommend considering sensitivity analyses using only a single code definition

Researchers should consider which conditions to include, and may opt for a narrower set of diseases by inclusion of only conditions for which a single code would indicate chronic risk, rather than those that may also represent acute conditions. Where inclusion of a greater breadth of diseases is preferred, researchers should decide whether some of these require presence of multiple codes over time. For studies focused on cause or accumulation of diseases over time, use of any diagnostic code in the record may be the preferred approach, as a disease, even if not currently active and only recorded once, may be relevant to subsequent disease development. However, this approach may lead to inclusion of acute or inactive conditions, inflating the prevalence of multimorbidity. For studies focused on associations between current disease burden and healthcare service use and treatment, use of more contemporaneous active diseases may be preferable. For example, use of codes from the past 12 months, or by incorporating prescription data where possible for some conditions. However, any approach that uses multiple codes may be at greater risk of bias in the frequency of coding of conditions, which may depend on factors related to the patient, clinician, general practice, and coding incentives.21 Therefore, we suggest that use of a single code definition should always be considered as a sensitivity analysis to understand the effect on prevalence and differential impact between patients.

Conclusion

The choice of timeframe to define the chronicity of a long term condition based on code frequency in the electronic health record has a substantial effect on the reported prevalence of multimorbidity. Younger people, people of some ethnic groups, and people living in areas of lower socioeconomic deprivation were more likely to be reclassified as not multimorbid under alternative timeframes compared with using a single code, highlighting the need to consider the potential bias arising from the choice of definition.

Acknowledgments

Data management was provided by the Big Data and Analytical Unit at the Institute of Global Health Innovation. We thank Mark Cunningham for assistance with data extraction and management.

Footnotes

Twitter: @drtombeaney

Contributors: TB conceptualised the study, conducted the data management and formal analysis, and wrote the first draft of the manuscript. All authors contributed to the study design, method, interpretation of findings, and reviewing and editing the manuscript. TB is the guarantor and accepts full responsibility for the work and the conduct of the study, had access to the data, and controlled the decision to publish. The corresponding author attests that all listed authors meet authorship criteria and that no others meeting the criteria have been omitted. Transparency: The lead author (the guarantor) affirms that the manuscript is an honest, accurate, and transparent account of the study being reported; that no important aspects of the study have been omitted; and that any discrepancies from the study as planned (and, if relevant, registered) have been explained.

Funding: This research is funded through a clinical PhD fellowship awarded to TB from the Wellcome Trust 4i programme at Imperial College London (grant number N/A). JC acknowledges support from the Wellcome Trust (215938/Z/19/Z). MB acknowledges support from EPSRC grant EP/N014529/1 supporting the EPSRC Centre for Mathematics of Precision Healthcare. TW, AM and PA acknowledge support from the National Institute for Health and Care Research (NIHR) under the Applied Research Collaboration (ARC) Northwest London (grant number N/A). Infrastructure support was provided by the NIHR Imperial Biomedical Research Centre (BRC). The views expressed in this publication are those of the authors and not necessarily those of the NHS, the NIHR, the Wellcome Trust or the Department of Health and Social Care.

Competing interests: All authors have completed the ICMJE uniform disclosure form at www.icmje.org/disclosure-of-interest/ and declare: no support from any organisation for the submitted work; no financial relationships with any organisations that might have an interest in the submitted work in the previous three years; no other relationships or activities that could appear to have influenced the submitted work.

Patient and public involvement: This work is supported by a patient and public involvement group. This group met prior to the study start and inputted into discussions on which conditions were included in the multimorbidity measure. The group also met after the analysis and contributed to the interpretation of the findings.

Provenance and peer review: Not commissioned; externally peer reviewed.

Supplemental material: This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.

Data availability statement

Data may be obtained from a third party and are not publicly available. The data used in this study are not publicly available as access is subject to approval processes. More information is available from Clinical Practice Research Datalink: https://cprd.com/research-applications.

Ethics approval

Ethical approval and data access to the Clinical Practice Research Datalink (CPRD) was granted by CPRD‘s Research Data Governance Process on 28 April 2022 (Protocol reference: 22_001818).

References

1. World Health Organization . Multimorbidity: technical series on safer primary care; 2016.
2. Pearson-Stuttard J, Ezzati M, Gregg EW. Multimorbidity—a defining challenge for health systems. Lancet Public Health 2019;4:e599–600. 10.1016/S2468-2667(19)30222-1 [PubMed] [CrossRef] [Google Scholar]
3. Head A, Fleming K, Kypridemos C, et al.. Inequalities in incident and prevalent multimorbidity in England, 2004-19: a population-based, descriptive study. Lancet Healthy Longev 2021;2:e489–97. 10.1016/S2666-7568(21)00146-X [PubMed] [CrossRef] [Google Scholar]
4. Johnston MC, Crilly M, Black C, et al.. Defining and measuring multimorbidity: a systematic review of systematic reviews. Eur J Public Health 2019;29:182–9. 10.1093/eurpub/cky098 [PubMed] [CrossRef] [Google Scholar]
5. Ho I-S, Azcoaga-Lorenzo A, Akbari A, et al.. Examining variation in the measurement of multimorbidity in research: a systematic review of 566 studies. Lancet Public Health 2021;6:e587–97. 10.1016/S2468-2667(21)00107-9 [PubMed] [CrossRef] [Google Scholar]
6. O’Halloran J, Miller GC, Britt H. Defining chronic conditions for primary care with ICPC-2. Fam Pract 2004;21:381–6. 10.1093/fampra/cmh407 [PubMed] [CrossRef] [Google Scholar]
7. Bernell S, Howard SW. Use your words carefully: what is a chronic disease. Front Public Health 2016;4:159. 10.3389/fpubh.2016.00159 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
8. Centers for Disease Control and Prevention . About chronic diseases. 2022. Available: https://www.cdc.gov/chronicdisease/about/index.htm
9. Barnett K, Mercer SW, Norbury M, et al.. Epidemiology of multimorbidity and implications for health care, research, and medical education: a cross-sectional study. The Lancet 2012;380:37–43. 10.1016/S0140-6736(12)60240-2 [PubMed] [CrossRef] [Google Scholar]
10. South NHS . Central and West commissioning support unit. Emis web clinician quick reference guide. 2022. Available: https://gdoc.org.uk/wp-content/uploads/2019/10/20180214-Emis-QRG-Clinicians.pdf
11. Wolf A, Dedman D, Campbell J, et al.. Data resource profile: clinical practice research datalink (CPRD) aurum. Int J Epidemiol 2019;48:1740–1740g. 10.1093/ije/dyz034 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
12. Herrett E, Gallagher AM, Bhaskaran K, et al.. Data resource profile: clinical practice research datalink (CPRD). Int J Epidemiol 2015;44:827–36. 10.1093/ije/dyv098 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
13. Ministry of Housing Communities &amp; Local Government . English indices of deprivation. 2019. Available: https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019
14. Kuan V, Denaxas S, Gonzalez-Izquierdo A, et al.. A chronological map of 308 physical and mental health conditions from 4 million individuals in the english national health service. Lancet Digit Health 2019;1:e63–77. 10.1016/S2589-7500(19)30012-3 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
15. Dean CB. Testing for overdispersion in poisson and binomial regression models. Journal of the American Statistical Association 1992;87:451–7. 10.1080/01621459.1992.10475225 [CrossRef] [Google Scholar]
16. Cassell A, Edwards D, Harshfield A, et al.. The epidemiology of multimorbidity in primary care: a retrospective cohort study. Br J Gen Pract 2018;68:e245–51. 10.3399/bjgp18X695465 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
17. Bisquera A, Turner EB, Ledwaba-Chapman L, et al.. Inequalities in developing multimorbidity over time: a population-based cohort study from an urban, multi-ethnic borough in the United Kingdom. Lancet Reg Health Eur 2022;12. 10.1016/j.lanepe.2021.100247 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
18. Kontopantelis E, Roland M, Reeves D. Patient experience of access to primary care: identification of predictors in a national patient survey. BMC Fam Pract 2010;11:61. 10.1186/1471-2296-11-61 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
19. Parsons J, Bryce C, Atherton H. Which patients miss appointments with general practice and the reasons why: a systematic review. Br J Gen Pract 2021;71:e406–12. 10.3399/BJGP.2020.1017 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
20. de JJ, Groenewegen P, Westert G. Medical practice variation: does it cluster within general practitioners practices? In: Morbidity, Performance and Quality in Primary Care. CRC Press, 2006. [Google Scholar]
21. Beaney T, Clarke J, Salman D, et al.. Identifying potential biases in code sequences in primary care electronic healthcare records: a retrospective cohort study of the determinants of code frequency. BMJ Open 2023;13. 10.1136/bmjopen-2023-072884 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
22. Forbes LJ, Marchand C, Doran T, et al.. The role of the quality and outcomes framework in the care of long-term conditions: a systematic review. Br J Gen Pract 2017;67:e775–84. 10.3399/bjgp17X693077 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
23. Khan NF, Harrison SE, Rose PW. Validity of diagnostic coding within the general practice research database: a systematic review. Br J Gen Pract 2010;60:e128–36. 10.3399/bjgp10X483562 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
24. Arhi CS, Bottle A, Burns EM, et al.. Comparison of cancer diagnosis recording between the clinical practice research datalink, cancer registry and hospital episodes statistics. Cancer Epidemiol 2018;57:148–57. 10.1016/j.canep.2018.08.009 [PubMed] [CrossRef] [Google Scholar]
25. Ho ISS, Azcoaga-Lorenzo A, Akbari A, et al.. Measuring multimorbidity in research: delphi consensus study. BMJ Med 2022;1:e000247. 10.1136/bmjmed-2022-000247 [PMC free article] [PubMed] [CrossRef] [Google Scholar]
26. England NHS . Quality and outcomes framework guidance for 2021/22. 2022. Available: https://www.england.nhs.uk/wp-content/uploads/2021/03/B0456-update-on-quality-outcomes-framework-changes-for-21-22-.pdf
27. Scheiman JM. The use of proton pump inhibitors in treating and preventing NSAID-induced mucosal damage. Arthritis Res Ther 2013;15:S5. 10.1186/ar4177 [PMC free article] [PubMed] [CrossRef] [Google Scholar]

Articles from BMJ Medicine are provided here courtesy of BMJ Publishing Group

-