Abstract
Objectives
Antibiotics are effective in treating bacterial infections, but they carry the risks of antimicrobial resistance and effectiveness loss. This study aimed to assess whether antibiotics for common infections are prescribed in a risk-based manner and how this changed during the COVID-19 pandemic.
Design
Cohort study of common infections and antibiotic prescribing.
Setting
With the approval of NHS England, we accessed pseudonymised patient-level electronic health records of primary care data from The Phoenix Partnership through OpenSAFELY.
Participants
We included adults registered at general practices in England with a record of common infection, including lower respiratory tract infection (LRTI), upper respiratory tract infections (URTI) and lower urinary tract infection (UTI), from January 2019 to March 2023. Patients with a record of COVID-19 were excluded.
Main outcome measures
Patient-specific risks of infection-related hospital admission were estimated for each infection using risk prediction scores for patients who were not prescribed an antibiotic. The infection cohorts were then grouped into risk deciles, and probabilities of being prescribed an antibiotic were assessed.
Results
We found 15,719,750 diagnoses of common infections. Of them, 450,215 (2.86%) were hospitalised in the 30 days after the diagnosis and 10,429,060 (66.34%) were prescribed an antibiotic. There were substantial differences in observed rates of hospital admissions between the lowest and highest risk deciles (25-fold difference in URTI). The probability of being prescribed an antibiotic for LRTI or UTI was unrelated to hospital admission risk, and that for URTI was weakly related to hospital admission risk. During the COVID-19 pandemic, the level of risk-based antibiotic prescribing reduced.
Conclusions
There is a need to better target antibiotics in primary care to patients with worse prognosis and strengthen treatment guidelines in personalisation of prescribing.
Introduction
Antibiotics have been revolutionary in the history of healthcare for treating bacterial infections. Yet in the 21st century, antimicrobial resistance (AMR) has been recognised as one of the biggest threats to global public health. 1 A World Health Organization report on antimicrobial surveillance has shown a worrying level of AMR globally. 2 With AMR projected to become a greater threat than cancer by 2050, many policies have been put in place to improve prescribing of antibiotics. 3 The major policy focus has been on decreasing overall levels of antibiotic prescribing and improving the appropriateness of prescribing. 4 Yet these strategies alone are unlikely to solve such a substantial global health burden. 5
Primary care in England accounted for 80.5% of all prescribed antibiotics in 2021 and has witnessed a 17.2% reduction in antibiotic use between 2017 and 2021. 6 England’s National Institute for Health and Care Excellence has disseminated guidelines for antimicrobial stewardship. These guidelines highlight the necessity of taking into account the risk of AMR and recommend considering risk of complications but provide no specific advice on how to consider these risks. Prognosis (i.e. risk of disease complications) is generally a key consideration for clinicians assessing possible interventions, with the exception of symptomatic treatments (such as painkillers).
The aims of this study were to assess whether antibiotics for common infections in primary care are prescribed according to a patient’s prognosis (i.e. in a risk-based manner based on risks of infection-related complications), and how the COVID-19 pandemic impacted any risk-based prescribing of antibiotic.
Methods
We used the OpenSAFELY platform (https://opensafely.org/) that contains pseudonymised data of electronic health records (EHRs). OpenSAFELY provides access to individual-level primary care data of almost 24 million people from The Phoenix Partnership (TPP). OpenSAFELY–TPP data are linked to external databases, such as Hospital Episode Statistics.
Study population
We included people aged 18 years or older registered with a general practice who had a record of diagnosis of common infections from January 2019 to March 2023 and excluded those with a record of COVID-19 diagnosis 90 days before to 30 days after the diagnosis of common infections. The reason for this exclusion was to eliminate viral COVID-19 infections and focus on infections that are frequently bacterial and treated with antibiotics. We created cohorts for common infections, namely lower respiratory tract infection (LRTI), upper respiratory tract infections (URTI, including specific URTI, cough, cold with cough and sore throat), lower urinary tract infection (UTI), sinusitis, otitis externa and otitis media. These cohorts were updated versions of the cohorts of a previous study, 7 with a longer period (January 2019 to March 2023 instead of January 2019 to August 2022) and therefore larger cohorts. Similar to this previous study, 7 we stratified the cohorts into incident or prevalent and whether antibiotics were prescribed within five days period after the infection diagnosis was recorded. Incident infections were defined as those that were not previously recorded during the 42-day period before the infection diagnosis, and prevalent infections were those that were not incident. Twenty different infection diagnoses for each common infection were extracted to create the cohorts for common infections. We used the codes of the 10th revision of International Classification of Diseases to identify infection-related hospital admissions. 8 COVID-19 diagnosis records were extracted from two main sources: the UK Health Security Agency Second Generation Surveillance System (SGSS) 9 and general practitioner (GP) records of COVID-19 diagnosis in primary care.
Study variables
We extracted variables that were potentially associated with risks of infection-related hospital admissions 10 and were recorded in the EHRs, including age, sex, Charlson co-morbidity index (CCI), 11 body mass index (BMI), flu vaccination in the one year before, region of England, socioeconomic level measured by the Index of Multiple Deprivation (IMD), ethnicity, smoking status, season of the year and history of antibiotics measured by the count of prescribed antibiotics in the one year before.
Statistical analyses
We adopted four analysis steps, as described in detail below (and shown in the flowchart of analyses in Supplementary Figure S1):
Step 1 – We developed and validated Cox proportional-hazards models in the cohorts not prescribed antibiotic. Predictors of these models included age, sex, CCI, BMI, flu vaccination, region, IMD, ethnicity, smoking status, season and history of antibiotics, as described in the previous study.
7
These models predicted risks of infection-related hospital admission in a 30-day follow-up period after the common infection record. We randomly split each infection cohort into development (75%) and validation (25%) sets, and we assigned missingness indicator to handle missing values. Step 2 – The patient-specific predictions were then applied to the users of antibiotic, estimating their risks of infection-related hospital admissions if they had not been treated with an antibiotic. We also applied these patient-specific risk predictions to the non-users of antibiotic. Step 3 – We combined cohorts of antibiotic users and non-users and grouped the predicted risks of infection-related hospital admissions into 10 deciles. Step 4 – We conducted two sets of analyses. In the first set of analyses, we compared the risk deciles with the records of prescribed antibiotics to predict the chance of being prescribed antibiotic for common infections – that is, the outcome of interest was the probability of being prescribed antibiotics for common infections. For this, we used logistic regression models to predict the probability of antibiotic prescribing using the 2nd to 10th risk deciles as covariates. In the second set of analyses, we used logistic regression models to assess the effect of individual risk factors on the probability of being prescribed an antibiotic. Risk factors (i.e. covariates) of these analyses included sex, age, BMI, ethnicity, CCI, smoking status, IMD, season, region, flu vaccination and antibiotic history. There seem to be an extra space between this paragraph and the next one.
In addition, we stratified the cohorts by the status of COVID-19 into four periods: (1) pre-pandemic (January 2019 to December 2019); (2) beginning of the pandemic (January 2020 to April 2020); (3) during the pandemic (May 2020 to April 2021); and (4) after the second national lockdown (May 2021 to March 2023). We dropped the second period from the analysis because of varying changes in behaviour of the population and treatment pathways for common infections in primary care. 12 For the remaining three periods, we replicated the analyses of Steps 1–4.
The performance of the logistic regression models was measured with the area under the receiver operating characteristic (AUROC). Jupyter Notebooks with Python 3.10.4 were used for the analyses. The lifelines package version 0.27.0 was used for the Cox models and the scikit-learn package version 1.0.2 for the logistic regression models. The notebooks are available in the risk-based antibiotic prescribing branch of a GitHub repository (https://github.com/opensafely/amr- uom-brit/tree/ab_rx_risk_based).
Results
We found a total of 15,719,750 diagnoses of common infections from January 2019 to March 2023, of which 14,151,895 (90.03%) were incident and 1,567,855 (9.97%) were prevalent. Of incident common infections, 9,464,005 (66.87%) were prescribed antibiotics (86.76% for incident LRTI, 57.69% for URTI and 86.62% for UTI). Table 1 shows the main baseline characteristics of the cohorts of incident and prevalent common infections, namely LRTI, URTI and UTI, with and without prescribed antibiotics (all counts are rounded). Supplementary Tables S1–S3 show additional baseline characteristics that generally showed only small differences between users and non-users of antibiotics in characteristics such as age and CCI.
Baseline characteristics of the cohorts of common infections including lower respiratory tract infection (LRTI), upper respiratory tract infection (URTI) and urinary tract infection (UTI), without prescribed antibiotics, using data from January 2019 to March 2023.
The cohort consists of incident infections with no prescribed antibiotics, incident infections with prescribed antibiotics, prevalent infections with no prescribed antibiotics and prevalent infections with prescribed antibiotics.
ABs: antibiotics prescribed or not.
CCI, Charlson Comorbidities Index, measured from 17 weighted conditions, including myocardial infarction, congestive heart failure, peripheral vascular disease, cerebrovascular disease, dementia, chronic pulmonary disease, connective tissue disease, ulcer disease, mild liver disease, diabetes, hemiplegia, moderate or severe renal disease, diabetes with complications, any malignancy (including leukaemia and lymphoma), moderate or severe liver disease, metastatic solid tumour and AIDS.
SD: standard deviation.
Table 2 shows the counts and observed rates of infection-related hospital admission cases in deciles of predicted probability of hospital admission for incident LRTI, URTI and UTI combining users and non-users of antibiotics (all counts are rounded). The observed rates of hospital admissions were strongly related to the predicted risk (for URTI, 25-fold difference in risk between lowest and highest decile). Supplementary Tables S4–S6 show these results for prevalent and other infections.
Count and observed rate of infection-related hospital admission in deciles of predicted probability of hospital admission related to incident common infections, including lower respiratory tract infection (LRTI), upper respiratory tract infection (URTI) and urinary tract infection (UTI), using data from January 2019 to March 2023.
Deciles are calculated by grouping predicted probability of infection-related hospital admission using Cox models.
Rate is the number of cases per 1000 patients with common infection, calculated by dividing the count of infection-related hospital admission cases (numerator) by the count of infection diagnosis (denominator) and then multiplied by 1000.
Figure 1 displays the mean probability of antibiotic prescribing by predicted risk of hospital admission in incident LRTI, URTI and UTI (first set of analyses). The probability of being prescribed an antibiotic was unrelated in UTI and LRTI to the risk of infection-related hospital admissions, and weakly related in URTI (from 54% in the lowest to 63% in the highest risk decile). As shown in Table 3, the analyses of AUROCs showed that predicted risk of infection-related hospital admissions was only weakly associated with the probability of antibiotic prescribing (AUROC between 0.54 and 0.56). Supplementary Table S7 shows results of the first analyses for prevalent and other infections. Adjusted ORs also showed no or weak association between risk deciles and probability of being prescribed an antibiotic (Supplementary Tables S8–S10).

Probability of antibiotic prescribing by predicted risk level of hospital admission related to incident lower respiratory tract infection (LRTI), upper respiratory tract infection (URTI) and urinary tract infection (UTI), where x axis shows deciles of predicted risk of infection-related hospital admissions and y axis shows the mean probability of antibiotic prescribing.
Area under the receiver operating characteristic curve of logistic regression models for antibiotic prescribing with deciles of predicted risk of hospital admissions related to incident and prevalent common infections, including lower respiratory tract infection (LRTI), upper respiratory tract infection (URTI) and urinary tract infection (UTI), using data from January 2019 to March 2022.
AUROC: area under the receiver operating characteristic curve.
Supplementary Table S11 shows the results of the second set of analyses for incident LRTI, URTI and UTI. Patient characteristics such as age and level of co-morbidity were only weakly associated with the probability of being prescribed an antibiotic in incident LRTI, URTI and UTI. The most elderly patients were 31% less likely (adjusted OR: 0.69; 95% CI: 0.69–0.70) to receive an antibiotic for URTI and patients with highest co-morbidity 11% less likely (adjusted OR: 0.89; 95% CI: 0.86–0.91). Probabilities of being prescribed an antibiotic varied between regions. Supplementary Tables S11–S13 show results of the second analyses for prevalent and other infections.
Figure 2 displays the probability of antibiotic prescribing by predicted risk of hospital admission for incident LRTI, URTI and UTI, stratified by the status of the COVID-19 pandemic. The probability of being prescribed an antibiotic for LRTI and URTI was at the lowest during the pandemic (e.g. 41% in URTI in lowest risk decile). The probability of being prescribed an antibiotic for LRTI and URTI, however, increased after the second national lockdown (e.g. 57% in URTI in lowest risk decile). The probability of being prescribed an antibiotic for UTI faced only minor changes before, during and after the pandemic. Supplementary Figures S2–S4 display the results for probability of antibiotic prescribing for prevalent and other infections. Supplementary Table S14 shows TRIPOD checklist.

Probability of antibiotic prescribing by predicted risk level of hospital admission related to incident lower respiratory tract infection (LRTI), upper respiratory tract infection (URTI) and urinary tract infection (UTI), stratified by status of COVID-19 pandemic. X axis shows deciles of predicted risk of infection-related hospital admissions and y axis shows the mean probability of antibiotic prescribing.
Discussion
Principal findings
We found that antibiotic prescribing in English primary care was unrelated to prognosis and risk of infection-related hospital admission for LRTI and UTI, and only weakly risk-based for URTI. Patients with the highest age category and highest level of co-morbidity were less likely to be prescribed antibiotics, despite being at higher risk of hospital admission. The COVID-19 pandemic was found to have an impact on both LRTI and URTI, reducing the probability of antibiotic prescribing, given the risk of infection-related hospital admission. A recent study found that the COVID-19 pandemic impacted primary care treatment pathway for common infections – that is, the rate of GP consultations for common infections reduced by 39% in 2020 compared with 2019 and the count of same-day antibiotic prescribing for LRTI reduced by 20%, while that for URTI increased by 15.9% during the first national lockdown. 12
Strengths and weaknesses
The main strength of this study was that it used large generalisable EHR data with multiple risk prediction models developed. Another strength of this study was that it evaluated the impact of the COVID-19 pandemic on risk-based prescribing of antibiotics for treatment of common infections. This study had several limitations. One was the absence of consultation type (i.e. in-person or virtual) for infection diagnosis. The latter was common during the COVID-19 pandemic and could have potentially impacted the ability of GPs to assess prognosis. Another limitation was the uncertainty of inclusion into the SGSS of COVID-19 tests performed by private companies. Computational limits constrained dealing with missing values through imputation algorithms, instead of adopting the missing indicator approach. A further limitation was that the risk prediction models did not cover the clinical severity of the infection.
Comparison with other studies
The latest UK’s AMR strategy includes a target to reduce antibiotic prescribing by 15% by 2024. 13 A potential challenge is that no cost–benefit assessment has been conducted for the antibiotic reduction targets in England. Lowering the consumption of antibiotics in humans could indeed reduce AMR incidence in the long term but could also lead to increases in infection-related complications. Gulliford et al. showed that general practices can expect an increase in the incidence of pneumonia and peritonsillar abscess if they were to practise policy to reduce antibiotic prescribing for respiratory tract infections. 14 They advised to exercise caution among subgroups at greater risk of pneumonia. Price et al. supported this, demonstrating an association between recent reductions in antibiotics prescribing for LRTI in primary care and a rise in pneumonia mortality in England and Wales. 15 Another large data linkage study of 96 health authorities in England also showed significantly fewer hospital admissions and major complications with higher levels of antibiotic prescribing. 16 This is further reinforced by recent research that found that an increase of 10.4% in general practice antibiotic prescribing (the interquartile range) was associated with a 6% reduction in infection-related hospital admissions. 17 On the other hand, a time-series analysis concluded that the recent reductions in antibiotic use in primary care was not associated with adverse consequences in the rates of hospital admissions for infections. 18 However, it seems likely that the rates of complications of a disease would increase if less treatment was administered (unless the treatment is ineffective). Thus, rather than overall targets, there is a need to focus on optimising antibiotic prescribing (i.e. to the right patient at the right time).
Several treatment guidelines for common infections use symptom scores (i.e. sum of weights for different symptoms). Overall, these scores were developed to predict the presence of a bacterial infection, but several studies have shown that some of these symptom scores may only be weak predictors of major clinical outcomes. In a prospective cohort study, it was demonstrated that symptom scores such as CENTOR criteria and FeverPAIN carry low predictive values in identifying patients with acute sore throat who are prone to complications. 19 Another large cohort study also found that emergency department doctors underestimated the probability of serious bacterial infections (UTI, pneumonia or bacteraemia) in young children with fever. 20 The present study found that antibiotic prescribing for sore throat was unrelated to risk of infection-related complications, supporting the limited predictive value of symptom scores. In addition to the symptoms, testing C-reactive protein for respiratory tract infections at the point-of-care is believed to reduce unnecessary antibiotic prescribing. 21 A fundamental question, not addressed in treatment guidelines, is whether the decision to prescribe antibiotics for typically self-limiting infections should be based on prognosis or be symptomatic related to broad set of non-specific symptoms. For sore throat, a Cochrane review reported that the antibiotic effect on symptoms can be small. 22
A recent study aimed to assess the appropriateness of antibiotic prescribing in primary care and found that about 20% of antibiotic prescribing was inappropriate. 23 This number informed the target for reduction of antibiotic prescribing in the UK government’s first five-year AMR strategy, to reduce it nationally by 10% by 2020, as part of a greater national target of reducing inappropriate prescribing by 50%. 24 A limitation of this study was that, apart from the guideline recommendations, no objective clinical definition of appropriateness was provided nor clinical case scenarios for which antibiotics would be inappropriate (in the context of a primary care setting). Furthermore, the treatment guidelines for common infections do not address the frequent challenge of patients returning shortly after an antibiotic was prescribed (except for UTI guideline). Research has found that 29% of patients receive another antibiotic within 30 days. 25 Rather than targets for reducing inappropriate prescribing, which may be challenging to define, an alternative approach is to focus on improving risk-based antibiotic prescribing for infections that are less severe and typically self-limiting.
Implications
Antibiotics are routinely indicated for bacterial infections that are unlikely to resolve spontaneously or that have high risks of serious illness and/or complications (e.g. sepsis, pneumonia, peritonsillar abscess or recurrence). For conditions that typically are self-limiting and give on average low risk of complications (e.g. URTI), we feel that several additional criteria should be used to decide on antibiotic treatment. The first one is a higher risk of infection-related complications for a particular patient, given their age, co-morbidity and infection severity. The other one should be antibiotic prescribing history and associated risk of patients harbouring resistant bacteria. Thus, a decision to prescribe an antibiotic is unlikely to be based on one risk threshold (as is done for statins) but weighing of risks and benefits. Rather than a clinical decision-support system that would estimate a general risk score, a clinician could be provided with patient-personalised information about risk of common complications and treatment options according to antibiotic exposure history. Relevant sections of treatment guidelines could also be provided, although most UK treatment guidelines are currently not computable (i.e. cannot be programmed into the EHR). 26 Also, a leaflet of patient-personalised information could be provided to discuss treatment options with patients and to help dissuade them from using an antibiotic when not needed. Similar leaflets were designed and given to carers for acute cough and respiratory tract infection of children. 27 Currently, a Knowledge-Support System is providing clinicians and patients with better information (e.g., personalised risk predictions) during each consultation and the effectiveness of this approach is being tested in a cluster trial in north-west England. 28
Conclusions
Under the threat of antibiotic overuse and the downstream impacts on developing AMR, many policies have been implemented to reduce overall antibiotic prescribing in primary care based on guidelines and incentivised activities. However, this has not resulted in a greater likelihood of antibiotics being prescribed to patients with higher risks of infection-related hospital admissions, despite substantial differences in risks between those in lowest and highest risk deciles. This was exacerbated during the COVID-19 pandemic since antibiotic prescribing for common infections became even less risk-based. Given the possibility of AMR developing in patients and side-effects with antibiotics, there is a need to better target antibiotics in primary care to patients with worse prognosis. In addition, to explicitly consider prognosis and harm in the treatment guidelines, better personalised information should be provided to clinicians and patients to support shared decision-making with patients.
Supplemental Material
sj-pdf-1-jrs-10.1177_01410768251328997 - Supplemental material for Antibiotics for common infections in primary care before, during and after the COVID-19 pandemic: cohort study of extent of prescribing based on risks of infection-related hospital admissions
Supplemental material, sj-pdf-1-jrs-10.1177_01410768251328997 for Antibiotics for common infections in primary care before, during and after the COVID-19 pandemic: cohort study of extent of prescribing based on risks of infection-related hospital admissions by Ali Fahmi, Ya-Ting Yang, Xiaomin Zhong, Alexander Pate, Anita Sharma, Simon Watts, Darren M Ashcroft, Ben Goldacre, Brian MacKenna, Jon Massey, Amir Mehrkar, Seb Bacon, Brian McMillan, Paul Dark, Kieran Hand, Victoria Palin and Tjeerd Pieter van Staa in Journal of the Royal Society of Medicine
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
