Therefore, using a nationwide unselected population-based study design, we aimed to assess the risk of IBD among all individuals aged ≥10 years following treatment with antibiotics, including evaluation of the (1) dose–response relationship between antibiotic exposure and development of IBD, (2) risk of CD and UC separately, (3) impact of antibiotic timing on the development of IBD and (4) the role of different antibiotic classes on the development of IBD.

One risk factor that has been associated with the development of IBD in younger individuals is the exposure to antibiotics. In a Danish national cohort study, antibiotic use early in life increased the risk of developing IBD in children by almost twofold. 10 This risk was predominantly driven by those diagnosed with CD as compared with UC, and was strongest within the first few months of use. In a nationwide case–control study in Sweden, similar results were seen, with antibiotic use increasing the risk of IBD development by almost twofold. 11 On subgroup analysis, cumulative antibiotic use was also associated with the development of IBD among older adults, but only when two or more courses had been previously prescribed.

IBD is thought to result from a complex interplay of genetics and environmental factors. The risk attributable to each, however, appears to vary over time, as younger adults are more likely to have a positive family history for IBD as compared with older adults who develop new-onset IBD. The lower prevalence of genetic risk factors in older adults with IBD highlights the important role that the environment plays as people age. 8 9 Despite this, there are scant data assessing the changing role of environmental factors in the development of IBD.

Inflammatory bowel disease (IBD) is a chronic immune-mediated disease of the bowel, comprising two main subtypes: Crohn’s disease (CD) and ulcerative colitis (UC). 1 2 Globally, IBD affects close to seven million individuals, with this number expected to rise in the next decade. 3 4 In order to shift this trajectory, careful consideration of risk factors leading to its development need to be explored. 4–7

In order to assess the association between antibiotic exposure and IBD, we followed up individuals aged ≥10 years longitudinally until IBD diagnosis, emigration, death or 31 December 2018, whichever occurred first. As the prescription registry was complete only from 1995 onward, our time horizon started in the year 2000 to allow for at least 5 years of antibiotic exposure data. Person-years of follow-up and number of IBD cases were categorised according to antibiotic exposure. Incidence rate ratios (IRRs) were estimated using Poisson regression (log-linear regression of the number of IBD cases with the logarithm of follow-up time as offset). All models were adjusted for sex, age (1-year periods), calendar period (1-year periods), socioeconomic status (low, mid-low, mid-high, high), degree of urbanisation (<50 people/km 2 , 50–349 people/km 2 , 350–999 people/km 2 , 1000–1999 people/km 2 , ≥2000 people/km 2 ), as well as PPI, antifungal and antiviral use. When analysing the risk of IBD according to specific antibiotic classes, models were additionally adjusted for the number and timing of previous antibiotic courses. All statistical analyses were completed using SAS (Cary, North Carolina. USA) version 9.4, and this study was approved by the Danish Data Protection Agency.

Demographic variables such as age and sex were captured from the Danish CRS. Urbanisation (based on number of people per square metre) and socioeconomic index were retrieved by linking address information from the Danish CRS with official summary statistics. Proton pump inhibitor (PPI), antiviral and antifungal use were also captured to account for any potential microbiome alterations as a result of these medications ( online supplemental table 2 ). 19–25 All variables, except for sex, were included as time-varying variables in all analyses, including age, given individuals could enter the cohort at different times and ages.

The Danish National Patient Register, which contains data on all hospitalisations, emergency room visits and outpatient visits in Denmark since 1995 using International Classification of Diseases 8 or 10th revision (ICD-8/10) codes, was used to identify individuals with a new diagnosis of IBD. 16 IBD was defined as having one of the following ICD codes: CD: ICD-8 code 563.01–09 or ICD-10 code K50; UC: ICD-8 code 563.19, 569.04 or ICD-10 code K51. Prior work in the Danish National Patient Register has validated this methodology, demonstrating a high rate of accuracy and completeness in identifying individuals with IBD. 17 18 In the 0.46% of cases where ICD codes pertaining to both UC and CD were present during the initial IBD encounter, the primary diagnosis code associated with the encounter was used. The remaining 0.06% of cases with diagnostic codes for both CD and UC were defaulted to a diagnosis of CD.

The number of courses of antibiotics was considered a time-varying variable, with each course of antibiotics only contributing a risk time for the 1 to 5 years following exposure. The reasoning for including the 1-year lag time from antibiotic exposure was to limit the potential for reverse causality, which is in accordance with prior work. 11 15 A sensitivity analysis in which the lag time was extended to 2 years was also performed to further limit this potential. Antibiotics prescribed in Denmark were categorised by class into nitrofurantoin, narrow spectrum penicillin, extended spectrum penicillin, sulfonamides, tetracyclines, macrolides or other when there was insufficient power to assess individual antibiotics or classes, and analysed. 15 Nitroimidazoles and fluoroquinolones were also included, as these two classes are commonly prescribed to treat gastrointestinal pathogens ( online supplemental table 1 ). In the analysis of specific types of antibiotic exposures, individuals with course of antibiotics contributed person-time according to the most recent course. 10 11

The Danish National Prescription Register is linked to the CRS and contains individual-level data for all prescribed medications redeemed at Danish community pharmacies since 1995, representing approximately 90% of all antimicrobial prescriptions in Denmark. 13 Medications are coded according to the Anatomical Therapeutic Chemical system. 14 Available data include medication identification codes and dates the prescriptions were filled. As in the study by Hviid et al, the antibiotic fill date was considered the date of antibiotic use. 10 Antibiotic dose–response was quantified based on number of courses, with prescriptions from the same class of antibiotics within 1 month of the previous use considered as one course.

The Danish Civil Registration System (CRS) contains demographic information on all residents living in Denmark. 12 Each person is indexed by a unique identifier (CRS number), allowing for linkage to other population-based Danish registers. Using the CRS, we identified a unique cohort of residents aged ≥10 years between 1 January 2000 and 31 December 2018, who had not been previously diagnosed with IBD. Individuals were followed up from the earliest date at which the following criteria were satisfied: age ≥10 years and at least 5 years residence in Denmark (in order to assess antibiotic exposure). If individuals immigrated several times but satisfied the above criteria, only the first period was considered.

When evaluating by antibiotic type, nitrofurantoin was the only class of antibiotics not found to be associated with the development of IBD across all age groups ( figure 2 ). The classes with the highest risk were the nitroimidazoles (age 10–40, IRR 1.31, 95% CI 1.19 to 1.42; age 40–60, IRR 1.43, 95% CI 1.28 to 1.58; age≥60, IRR 1.61, 95% CI 1.41 to 1.83) and fluroquinolones (age 10–40, IRR 1.76, 95% CI 1.60 to 1.93; age 40–60, IRR 1.79, 95% CI 1.61 to 1.97; age≥60, IRR 1.54, 95% CI 1.41 to 1.69), which are commonly used to target gastrointestinal pathogens. Results remained similar when evaluating both CD and UC.

The highest risk for developing IBD was 1–2 years after antibiotic exposure, with each subsequent year leading to a lower risk for all age groups ( table 3 ). Specifically, individuals aged 10–40 years had an IRR of 1.40 (95% CI 1.35 to 1.44) 1–2 years after antibiotic exposure as compared with IRR 1.13 (95% CI 1.08 to 1.20) 4–5 years after exposure. Similarly, individuals aged 40–60 years had an IRR of 1.66 (95% CI 1.59 to 1.73) 1–2 years after antibiotic exposure versus IRR 1.21 (95% CI 1.13 to 1.29) 4–5 years after exposure, whereas individuals aged ≥60 years had an IRR of 1.63 (95% CI 1.57 to 1.70) 1–2 years after antibiotic exposure versus IRR 1.22 (95% CI 1.14 to 1.31) 4–5 years after exposure. On subgroup analysis, this held true when assessing the risk for developing both UC and CD.

When assessing the number of antibiotic courses received, each subsequent course added additional risk, leading to a positive dose–response relationship: IRRs per antibiotic course were 1.11 (95% CI 1.10 to 1.12), 1.15 (95% CI 1.14 to 1.16), and 1.14 (95% CI 1.13 to 1.15) for individuals aged 10–40 years, 40–60 years, and ≥60 years ( online supplemental table 5 ). The highest risk was among individuals receiving five or more courses of antibiotics, and held true for all age groups (age 10–40, IRR 1.69, 95% CI 1.61 to 1.76; age 40–60, IRR 2.12, 95% CI 2.01 to 2.23; age≥60, IRR 1.95, 95% CI 1.85 to 2.04; figure 1 ).

Overall, any antibiotic exposure was associated with an increased risk of IBD for all age groups compared with individuals with no antibiotic exposure (age 10–40 years, IRR 1.28, 95% CI 1.25 to 1.32; age 40–60 years, IRR 1.48 95% CI 1.43 to 1.54; age ≥60 years, IRR 1.47 95% CI 1.42 to 1.53). This held true for both CD and UC, with a slightly higher risk for CD (age 10–40 years, IRR 1.40 95% CI 1.33 to 1.47; age 40–60 years, IRR 1.62 95% CI 1.51 to 1.74; age ≥60 years, IRR 1.51 95% CI 1.40 to 1.63) as compared with UC ( table 2 ). Further, on sensitivity analysis, when including a 2-year lag time from antibiotic exposure, similar results were seen ( online supplemental table 3 ). Additionally, there was an observed interaction between sex and number of antibiotic exposures; p<0.01, online supplemental table 4 ).

A total of 6 104 245 individuals aged ≥10 years were included in the cohort, with individuals able to contribute to more than one group given advancing age and calendar time. This resulted in 87 112 328 person-years of follow-up, with 50.4% being female. In total, 5 551 441 individuals (90.9%) received at least one course of antibiotics ( table 1 ). During follow-up, there were 36 017 new cases of UC and 16 881 new cases of CD.

Discussion

In this Danish nationwide population-based study of more than six million individuals, antibiotic use was associated with an increased risk of incident IBD, and was observed for both UC and CD. The risk of IBD was greatest among individuals aged 40 years and older, increased with each subsequent antibiotic course, and was highest following exposure to antibiotic groups commonly prescribed to treat gastrointestinal pathogens.

As individuals age, the changing microbial environment can lead to decreased diversity and an increased susceptibility to perturbations.26–28 In one recent study comparing the microbiome of healthy older and younger adults, older adults were found to have decreased abundance of Bifidobacterium, which is a signature that has also been seen in patients with IBD.29 30 These aging-related changes can be compounded by antibiotic use, which further deprives the gut microbiome of diversity, and has the potential to lead to longstanding microbial changes.28 In another recent study, antibiotic perturbations led to recovery of the intestinal microbiome within 20 days in younger mice, whereas microbiome alterations were still present at 6 months among older mice, further emphasising the impact of age on microbiome shifts.31 In our study, we see possible evidence of this, as antibiotic use was associated with a higher risk of developing IBD among older adults as compared with younger individuals. Analogous results were seen in the case–control study by Nguyen et al, further supporting the notion that antibiotic use, perhaps through intestinal microbial shifts, may play an increasingly important role in the development of IBD as individuals age.11

Furthermore, with repeated courses of antibiotics, these shifts can become more pronounced, ultimately limiting recovery of the intestinal microbiota.32 This, in part, further supports our finding that an increasing number of antibiotic courses was associated with a higher risk for developing IBD. On subgroup analysis, we also observed an increased risk of both UC and CD after antibiotic use. Prior studies, however, have found less consistent results, with some finding antibiotic use to be associated with the development of CD but not UC.33 This is probably influenced by the younger age of inclusion in these prior studies, as the association between UC and antibiotic use was lowest in the 10–40-year-old age group in our study. The higher risk for developing both UC and CD observed among older adults, further emphasises the strong role of environmental factors in the development of IBD later in life, and implicates microbiome alterations as a risk factor for both the development of UC and CD.8 34

When evaluating the timing of antibiotic use, including a 1-year lag time to minimise the risk for reverse causality, we found that the highest risk for all individuals was 1–2 years after antibiotic exposure.11 15 This held true for both UC and CD and suggests the importance of antibiotic use as a potential trigger for the development of IBD. Additionally, on sensitivity analysis, when including a 2-year lag time for our exposure, analogous results were seen. This further supports our findings, particularly as the diagnostic delay in UC is assumed to be limited since the presence of haematochezia often prompts immediate evaluation.35 36 Although attenuated, we also observed an increased risk for developing IBD 4–5 years after exposure. In conjunction with prior data, this may be the result of persisting changes in the microbial environment as a result of antibiotic use, which ultimately contribute to the development of IBD.28 32

When evaluating specific antibiotic classes, we found that those affecting the gut microbiota increased the risk of developing IBD. As such, this risk was highest when using nitroimidazole or fluoroquinolones, which particularly target bacterial pathogens in the gastrointestinal tract, and persisted when evaluating UC and CD separately. This has been shown in children and younger adults, but has not been previously assessed among older individuals.11 33 37 Moreover, although the risk was attenuated among antibiotics less commonly used to target gastrointestinal pathogens (ie, narrow-spectrum penicillins), their use was still associated with the development of IBD. This further supports the notion that alterations in the gut microbial environment may play a significant role in the development of IBD, and highlights the important point that many antibiotics, including those not used to treat gastrointestinal pathogens, can affect the intestinal microflora.38

We also observed that nitrofurantoin, a drug that has less of an impact on the gastrointestinal flora, was not associated with the risk of developing IBD across all age groups.38 This finding is in accordance with prior data from Nguyen et al, showing that antibiotic classes targeting gastrointestinal specific pathogens carry the highest risk for developing IBD.11 In this prior study, however, it should be noted that all antibiotic classes assessed were found to be associated with the development of IBD. This specific difference probably stems from the fact that the prior study did not assess nitrofurantoin as its own class, did not assess antibiotic classes by age, did not adjust for PPIs, antifungal or antiviral use, or an individual’s use of multiple antibiotic classes over time, as was performed in this analysis.

Strengths of this study include the design and size, prospectively following up an unselected population of over six million adults across Denmark for 19 years, with almost no loss to follow-up. This ensures adequate power and a high generalisability of our findings. Additionally, the national register data available in Denmark allow for all individuals and prescriptions to be tracked carefully and prospectively over time, hence eliminating the risk of recall or selection bias. Furthermore, our study is unique in that it adjusts for PPI use, as well as the use of antifungal and antiviral agents, which can all affect the intestinal microbiome.19–24 Lastly, adjusting for prior antibiotic courses allows for a more accurate assessment of risk estimates for individual classes.

Despite these strengths, there are still several limitations which warrant discussion. Although we included both a 1- and 2-year lag time from antibiotic exposure, the possibility of reverse causality still exists. As noted above, however, we feel this is less likely due to the persistence of findings among individuals who have (1) shorter diagnostic delays (new-onset UC), (2) disease onset 4–5 years after antibiotic exposure and (3) used antibiotics not traditionally prescribed to treat gastrointestinal infections (ie, narrow-spectrum penicillin). Second, although antibiotic classes were obtained, specific indications relating to antibiotic use, as well as the potential pathogen, are not publicly available within the data registries. Thus, although we see an association between antibiotic use and the development of IBD, it is plausible that the underlying infection itself might be the main driver for these results. This, however, may be less likely, as antimicrobial therapy in the setting of an infection has been shown to contribute additional risk for developing IBD.39 Third, although complete data regarding outpatient antibiotic prescriptions can be obtained, inpatient antibiotic use and medication adherence cannot be confirmed. Last, although we adjusted for age, sex, time period, degree of urbanisation, socioeconomic index, PPI use, antiviral and antifungal use, as well as prior antibiotic courses, the possibility of additional confounders still exist.

In conclusion, this is the first national cohort study providing critical insights into the role that antibiotics play in the development of IBD across the ages. Our results demonstrate a positive dose–response, highlighting the strong association between antibiotic exposure and the development IBD, particularly among adults aged 40 years and older. Furthermore, this risk was highest in the years immediately following antibiotic use, persisted across antibiotic classes affecting the gastrointestinal microbiome and was associated with the development of both UC and CD. Thus, as a public health measure, antibiotic stewardship may be important to limit the development of multidrug-resistant organisms, and also to reduce the risk of IBD. In order to further our understanding of the underlying pathophysiology, future research should build on this work, investigating changes in the intestinal microbiome as a result of antibiotic use that are associated with the development of IBD.