Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Population-based epidemiological analysis of acute pyelonephritis and antibiotic prescription in Spain (2009–2018)

  • Jesús Redondo-Sánchez ,

    Contributed equally to this work with: Jesús Redondo-Sánchez, Ricardo Rodríguez-Barrientos, Isabel del Cura-González

    Roles Conceptualization, Data curation, Funding acquisition, Investigation, Methodology, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliations Ramon y Cajal Health Care Centre, Alcorcón. Primary Care Management. Servicio Madrileño de Salud, Madrid, Spain, Network for Research on Chronicity, Primary Care, and Health Promotion (RICAPPS), Spain

  • Ricardo Rodríguez-Barrientos ,

    Contributed equally to this work with: Jesús Redondo-Sánchez, Ricardo Rodríguez-Barrientos, Isabel del Cura-González

    Roles Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    ricardo.rodriguez@salud.madrid.org

    Affiliations Network for Research on Chronicity, Primary Care, and Health Promotion (RICAPPS), Spain, Research Unit, Primary Care Management, Madrid Health Service, Madrid, Spain, Gregorio Marañón Health Research Institute IiSGM, Madrid, Spain,

  • Cristina Muntañola-Valero,

    Roles Formal analysis, Writing – review & editing

    Affiliations Network for Research on Chronicity, Primary Care, and Health Promotion (RICAPPS), Spain, Research Unit, Primary Care Management, Madrid Health Service, Madrid, Spain, Foundation for Biosanitary Research and Innovation in Primary Care (FIIBAP, Madrid, Spain,

  • Mª del Canto de-Hoyos-Alonso,

    Roles Conceptualization, Data curation, Funding acquisition, Investigation, Methodology, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliations Network for Research on Chronicity, Primary Care, and Health Promotion (RICAPPS), Spain, Pedro Laín Entralgo Health Care Center, Alcorcón, Primary Care Management, Madrid Health Service, Madrid, Spain

  • Nuria Echave-Heras,

    Roles Data curation, Formal analysis, Writing – review & editing

    Affiliation National School of Public Health, Carlos III Institute of Health, Madrid, Spain

  • Lucia Martínez-Manrique,

    Roles Data curation, Formal analysis, Writing – review & editing

    Affiliations Preventive Medicine Department, Hospital Universitario de Móstoles, C. Dr. Luis Montes, S/N, Madrid, Spain, Public Health and Epidemiology Research Group, School of Medicine, University of Alcalá, Madrid, Spain

  • Miguel Gil-García,

    Roles Formal analysis, Investigation, Supervision, Validation, Writing – original draft, Writing – review & editing

    Affiliation BIFAP (Database for Pharmacoepidemiological Research in the Public Domain),

  • Isabel del Cura-González

    Contributed equally to this work with: Jesús Redondo-Sánchez, Ricardo Rodríguez-Barrientos, Isabel del Cura-González

    Roles Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliations Network for Research on Chronicity, Primary Care, and Health Promotion (RICAPPS), Spain, Research Unit, Primary Care Management, Madrid Health Service, Madrid, Spain, Gregorio Marañón Health Research Institute IiSGM, Madrid, Spain,, Department of Medical Specialties and Public Health. Rey Juan Carlos University, Alcorcón, Madrid, Spain, Aging Research Center, Karolinska Institutet and Stockholm University, Stockholm, Sweden

Abstract

Objectives

To estimate the incidence of pyelonephritis in primary care in Spain from 2009 to 2018, assess the associated antibiotic prescriptions, and analyse trends by sex and age.

Method

This is a retrospective observational population-based national study using the Database for Pharmacoepidemiological Research in the Public Domain (BIFAP), which contains primary care electronic medical records, and is representative of the Spanish population. Patients with a diagnosis of pyelonephritis were included. Sociodemographic and clinical data were collected. Crude and adjusted incidence rates were calculated per 10,000 person-years by sex and age, and annual and global percentages of antibiotic use were calculated by sex, age, and antibiotic group. Trend analysis was performed using a joinpoint regression model.

Results

24,888 cases of pyelonephritis were recorded with an incidence of 4.2/10,000 person-years (6.6 women vs 1.5 men). An annual decreasing trend was observed in women (AAPC average annual percentage change) –2.7 (95% CI −4.4;-0.9), men −3.0 (95% CI −4.5;-1.5), patients aged 18–64 years −2.9 (95% CI −4.7;-0.9) and ≥ 65 years −4.2 (95% CI −5.8;-2.4). The most frequently used groups of antibiotics were cephalosporins (38.7%), quinolones (30%), combined penicillins (22.2%) and fosfomycin (6.8%). Cephalosporin prescription predominated in women (39.8%), and quinolone prescription in men (40.3%). The most prescribed cephalosporins were third and second generation (21% and 17.7% respectively). A downward annual trend was observed in the global use of antibiotics AAPC −0.8 (95% CI −1.4; −0.2), with an increasing AAPC 1.7 (95% CI −0.6; 3.4) in ≥65 years. Among the groups of antibiotics, the prescription of quinolones AAPC −6.9 (95% CI −31.7;17.3) and penicillins AAPC −8.7 (95% CI −11.2;-6.8) decreased and cephalosporins increased AAPC 19.0 (95% CI 12.2;26).

Conclusions

Women had a fourfold higher incidence of acute pyelonephritis than men, with a decreasing trend over the study period. Cephalosporins were the most commonly prescribed antibiotics in women, while quinolones were more common in men. An increasing trend in cephalosporin use and a decreasing in quinolone use were observed.

Introduction

Urinary tract infections (UTIs) are among the most common bacterial infections in community and hospital settings [1]. These infections are an important reason for consultation in primary care and for the use of antimicrobials and are the second-leading infectious cause of hospitalization after respiratory infections [2].

Acute pyelonephritis is a UTI of the kidneys that accounts for 5.5% of all UTIs treated in primary care [3] and 14% to 52% of all admissions for UTIs [46].

Most patients with pyelonephritis are treated in primary care or in an outpatient setting, but patients with the most severe cases (14% to 25%) require hospitalization [7,8]. Consultations [3] and hospitalizations [9] are more common in infants, young women, and elderly individuals. For cases of pyelonephritis managed on an outpatient basis, the incidence is 4–10 times greater in women, with highly variable incidence rates per 10,000 inhabitants that range from 12 to 54 cases in women compared with 2–11 cases in men [7,8,10]. Hospitalization for pyelonephritis is also more common in women, with incidences per 10,000 inhabitants between 3 and 12 cases in women and 1 and 7 cases in men [8,11,12].

Pyelonephritis generally responds well to antibiotic treatment. However, pyelonephritis can sometimes lead to severe urinary sepsis, chronic kidney disease, and even death [13]. Advanced age, the presence of metastatic cancer or septic shock, treatment with corticosteroids and admission to intensive care units are risk factors for mortality in patients with UTIs [14]. In several studies of pyelonephritis, higher mortality rates have also been reported in men [1012].

With respect to the etiology of pyelonephritis, Escherichia coli is detected in most cases that occur in young and healthy women, whereas in older women, men and institutionalized or immunosuppressed patients, other gram-negative bacteria, such as Klebsiella pneumoniae, Proteus mirabilis and Pseudomonas aeruginosa, are detected. There is a significant difference in causative bacteria depending on age, comorbidities and the location of infection [13,15].

The use of antimicrobials is one of the main factors responsible for antibiotic resistance [16]. Antibiotic resistance in E. coli is increasing in Europe [17]. Spain, along with other southern European countries, has one of the highest rates of resistance to antibiotics. In 2020, the rate of E. coli resistance to amoxicillin/ampicillin was 57%, whereas the rates of resistance to fluoroquinolones and third-generation cephalosporins were 28.6% and 14.1%, respectively [17]. Knowledge of models of antimicrobial prescription and their temporal changes is essential to correctly evaluate antimicrobial prescription and propose actions for improvement. This information can help both health-care physicians and health-care authorities [18] adapt guidelines for antimicrobial use and improve the empirical treatment of this group of infections. This work is part of a line of research conducted by our group on UTIs in the primary care and hospital settings [4,5,19].

The objectives of this study were to estimate the incidence of acute pyelonephritis in primary care in Spain between 2009 and 2018, determine the associated prescription of antibiotics, and analyze these trends according to sex and age.

Materials and methods

A retrospective observational study was conducted using Database for Pharmacoepidemiological Research in the Public Domain (BIFAP), which is the database of the National Health System of Spain and is managed by the Spanish Agency for Medicines and Health Products (AEMPS) in collaboration with the autonomous communities that participate in the project. BIFAP is a population-based database that includes anonymized data from the electronic medical records of all patients seen in family medicine and pediatric primary care clinics since 2001. The database is updated periodically, at least once a year, with data provided by each of the participating autonomous communities. BIFAP has been used in other studies of disease incidence and drug trends. Currently, BIFAP includes data from 15,373 general practitioners and paediatricians quotas in 12 autonomous communities—out of a total of 17 in Spain—covering 22.5 million patients, whose distribution by age and sex is comparable to that of the Spanish population. Participation by autonomous communities is voluntary. The mean follow-up of the patients included in BIFAP is 10.67 years, totaling 240 million person-years of follow-up. The database includes 1 billion health problem records and 3.3 billion medication records (http://www.bifap.org; accessed January 27, 2025). As of 2018, the last year of the study period, BIFAP included anonymized data from 12 million patients, representing 17.3% of the Spanish population, with an average follow-up of 8.6 years (102 million person-years) [20].

The data were accessed for research purposes the 30 April 2021. We didn´t have access to information that could identify individual participants during or after data collection.

The Reporting of Studies Conducted using Observational Routinely Collected Health Data (RECORD checklist) is available as supporting information; see S1 File.

This study included data from 8,615,690 people over 18 years of age registered in BIFAP from January 1, 2009, to December 31, 2018 (59,802,261 million person-years of follow-up with a mean follow-up of 6.9 years). Patients who had episodes of acute pyelonephritis (recorded with the International Classification of Primary Care (ICPC-2) code U70) for which an antibiotic was prescribed or for whom a urine culture was requested on the day of diagnosis were identified. The crude incidence rates of pyelonephritis per 10,000 population-years by for sex and age groups (18–64 years and 65 years or older) along with the corresponding 95% confidence intervals (CIs) were calculated.

Regarding the prescription of antibiotics, first, the percentage of prescribed antibiotics (all antibiotic groups and the most commonly prescribed active principles) (suplemento 2) among the total number of antibiotics prescribed during the study period was determined by age group and sex. Second, to analyze the evolution of prescriptions, the most prescribed antibiotic groups for pyelonephritis (specifically, the number of prescriptions per 100 cases of pyelonephritis) were determined according to sex and age groups.

Analysis of the temporal evolution of the incidence of acute pyelonephritis and the use of antibiotics during the study period was conducted via joinpoint regression. Joinpoint regression models are used to identify the points where there are significant changes in the trend of rates throughout a period. This approach has been widely used by fitting a model when the junction points (i.e., the points of change, inflection points, or joinpoints) are not known a priori and must be estimated from the data.

The Joinpoint software identifies change points without user input by fitting segmented (piecewise) regression models to time series data, where each segment is defined by a distinct slope, and the joinpoints represent statistically significant changes in trend. The process does not require the user to predefine the number or location of joinpoints. Instead, it uses model selection procedures such as the Bayesian Information Criterion (BIC) to determine the optimal number of joinpoints, evaluating the statistical significance of each change in slope. In our analysis, we used the default settings, including the option to restrict joinpoints to occur at observed time points rather than between them. This allowed us to identify the specific years in which trend changes occurred. The software provides both graphical representations and detailed listings of the segments (years, in our study) for each analysis, based on the user-defined parameters and statistical adjustments.

For the pyelonephritis trend analysis, the rates of pyelonephritis per 100,000 inhabitants were adjusted to the 2014 BIFAP population. Antibiotic prescription trend analysis was performed per 100,000 cases of pyelonephritis. The annual percentage change (APC) was estimated in each linear segment, and the average annual percentage change (AAPC) was calculated as a weighted average of the APC of the model along with the corresponding 95% CIs [21].

Ethical aspects

The protocol was approved by the Scientific Committee of BIFAP on January 24, 2019. The study was approved by the Hospital Fundación Alcorcon Ethics Research Committee (dated March 25, 2021) of the Central Research Commission of the Primary Health Care Management of Madrid (Code 13/19). The requirement to obtain consent was waived by the ethics committee (dated March 25, 2021). The data were fully anonymized by BIFAP before they were accessed by investigators. This study adheres to the fundamental ethical principles of autonomy, beneficence, justice, and non-maleficence. It follows the standards of Good Clinical Practice and the guidelines outlined in the most recent Declaration of Helsinki (2024).

Results

Incidence of acute pyelonephritis

Between 2009 and 2018, a total of 24,888 cases of acute pyelonephritis were registered. Of the total cases, 72.5% occurred in women aged 18–64 years (Table 1).

thumbnail
Table 1. Rates of acute pyelonephritis per 10,000 inhabitants according to sex and age group in the population > 18 years of age in Spain, 2009-2018.

https://doi.org/10.1371/journal.pone.0338447.t001

The overall incidence of pyelonephritis in the study period was 4.2 cases per 10,000 person-years of follow-up. The incidence was greater in women than in men (6.6 vs 1.5). In women, the highest incidence was in the group aged 18–64 years (7.8 cases vs. 3.3 in those over 65 years), whereas in men, the incidence was higher in those aged ≥ 65 years (2.0 in those aged ≥65 years; 1.3 in those aged 18–64 years). This age and sex distribution was maintained throughout the study period. From 2009 to 2018, the global incidence of pyelonephritis decreased from 4.9 to 3.6 cases per 10,000 population-years (Table 1). The decrease occurred in both men (from 1.8 to 1.2) and women (from 7.7 to 5.9) and in both elderly individuals and those under 65 years of age (Fig 1).

thumbnail
Fig 1. Incidence trends of acute pyelonephritis by age group and sex in the population > 18 years of age in Spain, 2009-2018.

(A) Representation of the incidence of pyelonephritis per 10,000 population throughout the study period. (B) Joinpoint analysis of the global trend and according to sex and age group. AAPC: average annual percentage change, APC: annual percentage change, CI: confidence interval, **: statistically significant.

https://doi.org/10.1371/journal.pone.0338447.g001

Analysis of the trend in the incidence of pyelonephritis with the joinpoint regression model (Fig 1) showed that the downward trend was significant both globally, with an AAPC value of −3.5 (95% CI −5.3; −1.6), and in both sexes and age groups, with unique trends throughout the period. The trend analysis of the global incidence, adjusted for sex and age and specific to age and sex groups, is presented in Table 2.

thumbnail
Table 2. Analysis of trends in the incidence of acute pyelonephritis per 100,000 inhabitants in the population > 18 years of age in Spain, 2009–2018.

https://doi.org/10.1371/journal.pone.0338447.t002

Antibiotics prescribed for acute pyelonephritis

During the study period, the most widely used group of antibiotics was cephalosporins (38.7%), followed by quinolones (30%), penicillin derivatives (21.4%) and fosfomycin (6.8%). The remaining antibiotics were used in fewer than 1.1% of total cases. Supplement 2 provides a more detailed breakdown of the usage percentages of each active principle analyzed in relation to the total number of antibiotics prescribed.

In women, the prescription of cephalosporins (39.8%) predominated over the prescription of quinolones (28%), whereas in men, the prescription of quinolones (40.3%) surpassed the prescription of cephalosporins (32.8%). In both sexes, the use of penicillin derivatives was greater in people aged 18–64 years, whereas fosfomycin was used more often in people aged ≥65 years. Trimethoprim sulfamethoxazole (TMP_SMX) was used more often in men (1.3%) than in women (0.7%), and in both sexes, it was used more often in older people (Table 3).

thumbnail
Table 3. Prescription of antibiotic groups for acute pyelonephritis according to sex and age in the population > 18 years of age in Spain, 2009–2018.

https://doi.org/10.1371/journal.pone.0338447.t003

The most frequently prescribed antibiotics in each group with respect to the total number of antibiotics prescribed are shown by sex and age groups in Fig 2.The most prescribed cephalosporins were third- and second-generation (21% and 17.7%, respectively). The most prescribed antibiotic in the penicillin group was amoxicillin-clavulanate (21.4%). The most prescribed quinolone was ciprofloxacin (22.7%), followed by levofloxacin (4.5%) and norfloxacin (2.3% of all antibiotics). Supplement 2 provides a more detailed breakdown of the usage percentages of each active ingredient analyzed in relation to the total prescribed antibiotics.

thumbnail
Fig 2. Distribution by age and sex of the most prescribed antibiotics for acute pyelonephritis in the population > 18 years of age in Spain, 2009–2018.

Antibiotic prescriptions were made on Day 0 (at the time of diagnosis of pyelonephritis). Percentages of each antibiotic among the total number of antibiotics prescribed in the 10 years.

https://doi.org/10.1371/journal.pone.0338447.g002

With regard to changes in antibiotic prescription from 2009 to 2018 for every 100 cases of acute pyelonephritis, the use of cephalosporins increased (from 33.1 to 57.3% in women and from 23.7 to 46.6% in men), the use of quinolones decreased (from 54.2 to 33.5% in men and from 44.8 to 25.4% in women), and the use of penicillin derivatives decreased (from 34.6 to 16% in women and from 30.5 to 13.4% in men). Throughout the entire period, quinolones were used more often in men, whereas cephalosporins, penicillin derivatives and fosfomycin were used more often in women (Fig 3). Compared with the other age groups, quinolones and fosfomycin were prescribed more frequently for people older than 64 years, whereas in the 18- to 64-year age group, the most frequently prescribed antibiotics were cephalosporins and penicillin combinations (Fig 4).

thumbnail
Fig 3. Most frequently prescribed antibiotic groups trends for acute pyelonephritis by sex in the population > 18 years of age in Spain, 2009–2018.

(A) Representation of the number of prescriptions per 100 cases of acute pyelonephritis throughout the study period. (B) Joinpoint analysis of the antibiotic prescriptions. AAPC: average annual percentage change, APC: annual percentage change, CI: confidence interval, **: statistically significant.

https://doi.org/10.1371/journal.pone.0338447.g003

thumbnail
Fig 4. Most-prescribed antibiotic groups trends for acute pyelonephritis by age group in the population > 18 years of age in Spain, 2009–2018.

(A) Representation of the number of prescriptions per 100 cases of acute pyelonephritis throughout the study period. (B) Joinpoint analysis of the antibiotic prescriptions. AAPC: average annual percentage change, APC: annual percentage change, CI: confidence interval, **: statistically significant.

https://doi.org/10.1371/journal.pone.0338447.g004

When the trends were checked with joinpoint regression, the overall number of prescriptions of antibiotics decreased significantly during the study period [AAPC −0.8; (95% CI −1.4; −0.2)] in both women [AAPC −0.8 (95% CI −1.3; −0.2)] and men [AAPC −1.2 (95% CI −2.0; −0.4)]. This decrease was significant in the group aged 18−64 years [AAPC −0.9 (95% CI −1.3; −0.4)] and was more pronounced between 2016 and 2018 [APC −2.5 (95% CI −4.6; −0.4)]. In people older than 64 years, there was an increase in prescriptions that was significant only from 2011 to 2018 [APC 14.7 (95% CI 2.9; 25.0)] (Table 4).

thumbnail
Table 4. Trend analysis of antibiotic prescriptions per 100,000 cases of pyelonephritis in the population > 18 years of age in Spain, 2009–2018.

https://doi.org/10.1371/journal.pone.0338447.t004

Regarding the trend of the most frequently prescribed antibiotic groups, the use of cephalosporin increased [AAPC 19.0 * (95% CI 12.2; 26.0)], while quinolone [AAPC −6.9 (95% CI −31.7; 17.3)] and penicillin [AAPC −8.7 (95% CI −11.2; −6.8)] prescriptions decreased significantly. Fosfomycin prescriptions increased nonsignificantly [AAPC 2.5 (95% CI −0.8; 6.0)] (Table 4). These global trends were maintained in both sexes and different age groups, with the exception of fosfomycin, for which prescriptions decreased in men (Figs 3 and 4).

Discussion

The incidence of acute pyelonephritis of community origin and the use of antibiotics decreased from 2009 to 2018. The most widely used antibiotics were cephalosporins, quinolones and amoxicillin-clavulanate, with different profiles according to sex and age. During the study period, the use of quinolones decreased, whereas the use of cephalosporins increased.

During the ten years of the study, we calculated a global incidence rate of pyelonephritis of 4.2 cases per 10,000 inhabitants. This rate was lower than that reported in other countries, such as the US and Korea [7,8,10], also calculated from databases.

Acute pyelonephritis was four times more common in women than in men, similar to the findings of other studies that revealed even greater differences [7,8]. With respect to age, in women, the incidence was greater in the 18- to 64-year-old group, whereas in men, it was greater in those older than 64 years. Acute pyelonephritis in young women has been associated with sexual activity (frequency of sexual intercourse in preceding days, use of spermicide or a new sexual partner) and a family and/or personal history of UTIs, and urinary incontinence and diabetes are factors related to hospital admission [22]. In men over 64 years of age, prostate disease and instruments used in urological procedures can contribute to an increase in pyelonephritis.

Throughout the study period, the overall incidence of acute pyelonephritis decreased slightly across both sexes and age groups, unlike other studies where the incidence rates of community pyelonephritis remained stable [8] or increased [7] as the number of consultations for acute pyelonephritis increased [3].This fact is difficult to interpret, although it may be related in part to the increase in hospitalization. In two previous publications on patients hospitalized for UTIs in Spain [4,5], we reported that the number of hospital admissions for pyelonephritis increased during the years of this study, especially in women aged 18–55 years [4]. This is partially explained by the occurrence of pyelonephritis in pregnant women; however, the trend was more stable in men and women aged 55–64 years or older than 64 years [4,5]. An increasing trend of admissions for pyelonephritis has also occurred in other countries, such as Korea [7], Denmark [9] and France [23]. In this last study, the authors reported an increase in urinary diversion procedures, such as double-J stents, which were associated with the presence of urolithiasis, comorbidities, increased age, sepsis, or UTIs caused by bacteria other than Escherichia coli. This may justify the increasing trend of hospitalizations for pyelonephritis.

There was a decrease in prescribed antibiotics in both sexes and age groups, unlike the findings of a Korean study [24] that found that antibiotic use in outpatients with pyelonephritis was stable or a Norwegian study [3] that found an increase in antimicrobial prescriptions. Notably, in our study, only antibiotics prescribed at the time of diagnosis were considered, while antibiotics prescribed later due to a lack of response or the appearance of resistance in the antibiogram were not considered. This may have influenced the difference in trends between this study and other works.

In our study, the antibiotics used most frequently for the treatment of acute pyelonephritis were cephalosporins followed by quinolones and penicillin derivatives. These three groups accounted for 90% of all prescriptions for pyelonephritis. In an older study from 1997–2001 in the US [8] and a more recent study in Korea (2010–2014) [24], quinolones were the first prescription, followed by cephalosporins. In a 10-year follow-up study conducted in Norway from 2006 to 2015 [3], the most commonly prescribed antibiotic was pivmecillinam, followed by ciprofloxacin and TMP-SMX. In Denmark [25], pivmecillinam was also the most prescribed antibiotic for upper UTIs, and the use of quinolones increased with patient age. Unlike northern Europe, where pivmecillinam is the first-line antibiotic for the treatment of lower and upper acute UTIs [3,25], in Spain, The use of cefuroxime or third-generation cephalosporins is recommended as the first choice in patients with uncomplicated acute pyelonephritis [2628]. At the time of the study, cefuroxime was also recommended [29,30]. Cephalosporins should not be used empirically if the patient had a recent urine culture showing an ESBL-producing microorganism or if local resistance rates are high [28].

Our study found that the prescription rate of cephalosporins doubled from 2009 to 2018. Cephalosporins were the most prescribed antibiotics in women of all ages throughout the study period, predominantly in women aged 18–64 years. The most prescribed antibiotics in the cephalosporin group were cefuroxime (2nd generation) and cefixime (3rd generation). In Spain, the prevalence of resistance to this group is approximately 15% [17]; therefore, cephalosporins are a first-line treatment alternative [29].

Fluoroquinolones were used in one-third of cases, although their use decreased throughout the study period. In men, fluoroquinolones were the most widely used group of antibiotics at all ages. In women, fluoroquinolones were used more only in patients older than 64 years. Ciprofloxacin was the most prescribed quinolone, followed by levofloxacin and norfloxacin. In a recent systematic review [31], norfloxacin was proposed as the most suitable antibiotic within this group for the treatment of pyelonephritis, with clinical cure rates comparable to those of ciprofloxacin and levofloxacin, although the activity of norfloxacin against anaerobes, streptococci and enterobacteria is lower. In our study, however, the frequency of norfloxacin use was low, at only 2%. Clinical practice guidelines [26,28,32,33] and experts [34,35] recommend the use of fluoroquinolones empirically for community-based pyelonephritis provided that the local resistance rate of does not exceed 10%. They also recommend avoiding fluoroquinolones as empirical treatment if the patient had a recent urine culture with a resistant microorganism or if fluoroquinolones were used in the past year, as this increases the risk of resistance [28].

In Spain, resistance rates during the study period were well above the recommended threshold [17], which would advise against the use of fluoroquinolones. However, some experts [13] propose that this threshold should be adapted to the reality of the clinical characteristics of patients since there are discrepancies between the resistance data and the use of certain antibiotics and their clinical response. Another controversial aspect of the use of fluoroquinolones is the presence of significant side effects and an increase of up to six times in the number of secondary infections caused by Clostridioides difficile [36].

The rate of amoxicillin-clavulanate prescription continues to be high, especially in women under 65 years of age. However, during the study period, its use was reduced by half in both sexes. It is important to highlight that prescription indications vary across countries and over time. At the time of the study, this antibiotic was not recommended as empirical treatment in Spanish clinical guidelines [30,38] or in other countries [37] due to high resistance rates. However, it was indicated for infections caused by enterococci and in pregnant women [13,37], which may explain its higher use among younger women in our study. Recent reviews and guidelines from the United States [28,34] recommend amoxicillin-clavulanate as an alternative to fluoroquinolones. In Spain [27], it is considered an alternative to third-generation cephalosporins, provided susceptibility is confirmed.

In Spain, TMP-SMX is not recommended for empirical treatment and should only be used in cases with confirmed susceptibility, for example, as an alternative to carbapenems in infections caused by extended-spectrum beta-lactamase (ESBL)-producing Enterobacteriaceae [27].

Fosfomycin was the fourth most prescribed antimicrobial in both men and women, with a higher prescription rate in women over 65 years of age. In addition, the rate of fosfomycin prescription increased throughout the study period. According to clinical practice guidelines [26,27], fosfomycin is recommended for the treatment of uncomplicated acute cystitis and should not be used for upper or severe UTIs such as pyelonephritis. One possible explanation for the high use of fosfomycin observed in our study is that it is used to treat UTIs initially assumed to be cystitis, which later progressed to fever or other signs of pyelonephritis, leading to a change in diagnosis and coding. This could also explain the higher use in older patients, where fever may be less evident than in younger adults. Another plausible explanation is the use of fosfomycin based on previous antibiograms showing multidrug-resistant organisms sensitive to this antibiotic [39] allowing for a therapeutic trial before considering hospital admission for intravenous treatment. However, some recent publications [39,40] have reported the efficacy of fosfomycin in complicated UTIs, including pyelonephritis, in selected situations.

Finally, the use of TMP-SMX was very rare, accounting for only 0.8% of prescriptions TMP-SMX was used twice as often in men as in women, and in both men and women, its use increased with age. This finding is relevant because the likelihood of resistance to this antibiotic increases with age. The low usage rate may be explained by the high resistance to TMP-SMX in Spain [17,41] exceeding 20%, a situation also reported in other countries [4244]. Current American clinical guidelines [28] recommend TMP-SMX as an initial empirical treatment option, along with fluoroquinolones, for patients with complicated UTIs without sepsis. However, in Spain and other European countries, TMP-SMX is not recommended for empirical treatment and should only be used in cases with confirmed susceptibility, for example, as an alternative to carbapenems in infections caused by extended-spectrum beta-lactamase (ESBL)-producing Enterobacteriaceae [26,27].

Strengths and limitations

The main strength of this study is that the data were from a population database, BIFAP, that includes real-life data over ten years. This database provides data on the incidence of pyelonephritis that have not been entered and are very rarely published, not only at the national level but also internationally. In addition, the prescription of antimicrobials obtained from the clinical records of primary care physicians in Spain represents the vast majority of the prescriptions in the National Health System.

Among the limitations of the study, there may be a problem of registration and erroneous coding, as in any database. However, the inclusion of pyelonephritis as a “case” only if it was associated with the request for an antibiogram and/or the prescription of antibiotics minimizes this problem and makes the results reliable. In addition, a previous validation of pyelonephritis diagnoses was conducted by means of a random sample analysis, which verified that there was concordance between the diagnosis and symptoms (fever, general malaise, flank pain associated with dysuria, and frequency or urgency).

It should be noted that the data are limited to the prescription of antibiotics. We cannot know if the antibiotics were dispensed and/or used. A prescription suitability analysis cannot be performed because essential data such as the dose, duration of antimicrobial regimens, and reports on local resistance rates are missing. We also do not have data on allergies to antimicrobials or their potential impact on the use of broad-spectrum antibiotics. Comorbidity data that may influence the incidence of pyelonephritis and the choice of the prescribed antibiotic were not considered. The study did not include prescriptions by private centers or those by hospital or out-of-hospital emergency services. A lower overall prevalence of pyelonephritis is possible because only diagnoses of pyelonephritis associated with the use of antibiotics and/or requests for urine culture were considered for this study. Similarly, the antibiotics analyzed represent prescriptions for pyelonephritis treated on an outpatient basis in primary care since antibiotics prescribed for patients who required admission or were treated in other health-care settings were not considered in this study. We believe that our data on patients with community pyelonephritis treated on an outpatient basis are comparable with those of other studies that differentiate between inpatient and outpatient cases of pyelonephritis [7,8,10]

For data protection reasons, geographical data that allow geolocation are not provided, nor are the characteristics of the prescribing doctors, such as age, sex or geographic location. These data may influence the characteristics of prescriptions.

Although pyelonephritis is a relatively frequent pathology, gaps in knowledge related to it remain. It would be of great interest to develop research that provides better evidence of the incidence of community pyelonephritis, recurrences, factors that affect hospitalization and prognosis, the importance of comorbidities, the influence of drugs such as immunosuppressants and conditions such as pregnancy. In addition, studies on the adequacy of treatment in terms of the type of antibiotic chosen, dose and duration are needed. It is essential to address bacterial resistance and its association with prescribed antibiotics through periodic local studies that allow the indications for antibiotics to be updated in clinical practice guidelines.

It cannot be ruled out that another concurrent infectious process may have occurred on the same day—e.g., a respiratory infection—and that the antibiotic was used to treat both conditions. However, it would be unusual not to prioritize treatment with an antibiotic that covers pyelonephritis, given that it is a potentially serious condition. Therefore, even if another infection was present, we assumed that the antibiotic was (also) used to treat pyelonephritis.

Conclusions

The prevalence of acute pyelonephritis at the community level in Spain is somewhat lower than that reported in other countries, and the prevalence decreased from 2009 to 2018. There were more cases of pyelonephritis in women, predominantly younger women. In men, pyelonephritis was more common among older individuals.

The most frequently prescribed antibiotics were 2nd- and 3rd-generation cephalosporins (cefuroxime and cefixime), quinolones (ciprofloxacin and levofloxacin) and penicillin derivatives (amoxicillin-clavulanic), with different profiles according to sex and age. Men received more quinolones, and women received more cephalosporins. With respect to age, cephalosporins were prescribed more often for those aged 18–64 years, and quinolones were prescribed more often for those > 65 years of age. During the study period, the rate of prescription of quinolones decreased in both sexes and age groups, whereas the rate of prescription of cephalosporins and penicillin combinations increased.

Although the trend of the use of antibiotics is close to the current recommendations such as prioritizing treatment with cephalosporins and exercising caution with fluoroquinolones, these results such as the high use of fosfomycin reinforce the need to understand the use of antimicrobials and prescription patterns for frequent illnesses to adapt these use patterns to the rate of local antibiotic resistance and to determine the most pertinent recommendations for each patient in context.

Supporting information

S2 File. Antibiotic groups and active principles prescribed for acute pyelonephritis.

https://doi.org/10.1371/journal.pone.0338447.s002

(DOCX)

Acknowledgments

Veronica Bryant for their essential help in the preparation of variables for accessing the BIFAP. To the colleagues of the Research Unit (Elena Polentinos, Teresa Sanz, Milagros Rico, Juan Carlos Gil and Marcial Caboblanco) for their support and help throughout the process. The authors would like to acknowledge the excellent collaboration of the primary care practitioners and pediatricians, and also the support of the regional authorities participating in the BIFAP database.

References

  1. 1. Foxman B. The epidemiology of urinary tract infection. Nat Rev Urol. 2010;7(12):653–60. pmid:21139641
  2. 2. Christensen KLY, Holman RC, Steiner CA, Sejvar JJ, Stoll BJ, Schonberger LB. Infectious disease hospitalizations in the United States. Clin Infect Dis. 2009;49(7):1025–35. pmid:19708796
  3. 3. Haugom LEA, Ruths S, Emberland KE, Eliassen KER, Rortveit G, Wensaas K-A. Consultations and antibiotic treatment for urinary tract infections in Norwegian primary care 2006-2015, a registry-based study. BMC Fam Pract. 2021;22(1):127. pmid:34167484
  4. 4. Redondo-Sánchez J, Rodríguez-Barrientos R, de-Hoyos-Alonso MDC, Muntañola-Valero C, Almendro Martínez I, Peñalver-Argüeso B, et al. Trends in hospitalisation for urinary tract infection in adults aged 18-65 by sex in Spain: 2000 to 2015. PLoS One. 2024;19(4):e0298931. pmid:38626199
  5. 5. Redondo-Sánchez J, Del Cura-González I, Díez-Izquierdo L, Rodríguez-Barrientos R, Rodríguez-Cabrera F, Polentinos-Castro E, et al. Trends in urinary tract infection hospitalization in older adults in Spain from 2000-2015. PLoS One. 2021;16(9):e0257546. pmid:34587191
  6. 6. de Lafforest S, Magnier A, Vallée M, Bey E, Le Goux C, Saint F, et al. FUrTIHF: French urinary tract infections in healthcare facilities - five-year historic cohort (2014-2018). J Hosp Infect. 2021;116:29–36. pmid:34166732
  7. 7. Kim B, Myung R, Kim J, Lee MJ, Pai H. Descriptive epidemiology of acute pyelonephritis in Korea, 2010–2014: population-based study. J Korean Med Sci. 2018;33(49):e310.
  8. 8. Czaja CA, Scholes D, Hooton TM, Stamm WE. Population-Based Epidemiologic Analysis of Acute Pyelonephritis. Clinical Infectious Diseases. 2007;45(3):273–80.
  9. 9. Svingel LS, Christiansen CF, Birn H, Søgaard KK, Nørgaard M. Temporal changes in incidence of hospital-diagnosed acute pyelonephritis: A 19-year population-based Danish cohort study. IJID Reg. 2023;9:104–10. pmid:38020186
  10. 10. Ki M, Park T, Choi B, Foxman B. The epidemiology of acute pyelonephritis in South Korea, 1997-1999. Am J Epidemiol. 2004;160(10):985–93. pmid:15522855
  11. 11. Sako A, Yasunaga H, Matsui H, Fushimi K, Yanai H, Gu Y, et al. Hospitalization for urinary tract infections in Japan, 2010-2015: a retrospective study using a national inpatient database. BMC Infect Dis. 2021;21(1):1048. pmid:34627171
  12. 12. Foxman B, Klemstine KL, Brown PD. Acute pyelonephritis in US hospitals in 1997: hospitalization and in-hospital mortality. Ann Epidemiol. 2003;13(2):144–50. pmid:12559674
  13. 13. Johnson JR, Russo TA. Acute Pyelonephritis in Adults. N Engl J Med. 2018;378(1):48–59. pmid:29298155
  14. 14. Eliakim-Raz N, Babitch T, Shaw E, Addy I, Wiegand I, Vank C, et al. Risk Factors for Treatment Failure and Mortality Among Hospitalized Patients With Complicated Urinary Tract Infection: A Multicenter Retrospective Cohort Study (RESCUING Study Group). Clin Infect Dis. 2019;68(1):29–36. pmid:29788118
  15. 15. Bosch-Nicolau P, Falcó V, Viñado B, Andreu A, Len O, Almirante B, et al. A Cohort Study of Risk Factors That Influence Empirical Treatment of Patients with Acute Pyelonephritis. Antimicrob Agents Chemother. 2017;61(12):e01317-17. pmid:28971876
  16. 16. Chin TL, McNulty C, Beck C, MacGowan A. Antimicrobial resistance surveillance in urinary tract infections in primary care. J Antimicrob Chemother. 2016;71(10):2723–8. pmid:27353470
  17. 17. European Centre for Disease Prevention and Control, World Health Organization. Antimicrobial resistance surveillance in Europe: 2022: 2020 data. Publications Office. 2022. https://data.europa.eu/doi/10.2900/112339
  18. 18. Yu JY, McKenna VA, Dumyati GK, Lubowski TJ, Carreno JJ. Antibiotic prescribing in New York State Medicare Part B beneficiaries diagnosed with cystitis between 2016 and 2017. Open Forum Infectious Diseases. 2020;7(1):ofz544.
  19. 19. Redondo Sánchez J, Domínguez Lázaro AM, Rodríguez Barrientos R, Barrio Cortes J, Seoane Sanz A, Bravo Acuna J, et al. Trends in hospitalization for urinary tract infection in the paediatric age group in the 2000-2015 period in Spain. An Pediatr (Engl Ed). 2023;98(3):175–84. pmid:36804332
  20. 20. Maciá-Martínez M-A, Gil M, Huerta C, Martín-Merino E, Álvarez A, Bryant V, et al. Base de Datos para la Investigación Farmacoepidemiológica en Atención Primaria (BIFAP): A data resource for pharmacoepidemiology in Spain. Pharmacoepidemiol Drug Saf. 2020;29(10):1236–45. pmid:32337840
  21. 21. Kim HJ, Fay MP, Feuer EJ, Midthune DN. Permutation tests for joinpoint regression with applications to cancer rates. Stat Med. 2000;19(3):335–51. pmid:10649300
  22. 22. Scholes D, Hooton TM, Roberts PL, Gupta K, Stapleton AE, Stamm WE. Risk factors associated with acute pyelonephritis in healthy women. Ann Intern Med. 2005;142(1):20–7. pmid:15630106
  23. 23. Grammatico-Guillon L, Laurent E, Fuhrman J, Gaborit C, Vallée M, Dinh A, et al. Factors associated with urinary diversion and fatality of hospitalised acute pyelonephritis patients in France: a national cross-sectional study (FUrTIHF-2). Epidemiol Infect. 2023;151:e161. pmid:37721009
  24. 24. Kim B, Myung R, Lee M-J, Kim J, Pai H. Trend of antibiotics usage for acute pyelonephritis in Korea based on national health insurance data 2010-2014. BMC Infect Dis. 2019;19(1):554. pmid:31238896
  25. 25. Holm A, Cordoba G, Aabenhus R. Prescription of antibiotics for urinary tract infection in general practice in Denmark. Scand J Prim Health Care. 2019;37(1):83–9. pmid:30689491
  26. 26. European Association of Urology EAU. Guidelines on urological infections. Arnhem: EAU. 2025. http://uroweb.org/guideline/urological-infections/#3
  27. 27. Molina Gil-Bermejo J, Cabello V, Campoy Martínez P, Barrera Chacón J. Pielonefritis aguda. In: Praena J, Lepe JA, Gil Navarro MV, Neth O, Cisneros JM, editors. Guías para el diagnostico y tratamiento de las enfermedades infecciosas. Hospital Universitario Virgen del Rocío.
  28. 28. Trautner BW, Cortes-Penfield NW, Gupta K. Clinical practice guideline by Infectious Diseases Society of America (IDSA): 2025 guideline on management and treatment of complicated urinary tract infections: selection of antibiotic therapy for complicated UTI. https://www.idsociety.org/globalassets/idsa/practice-guidelines/cuti/clinical-question-1.pdf. 2025.
  29. 29. Guía terapéutica antimicrobiana del SNS. https://www.resistenciaantibioticos.es/es/guias/humana/login. Accessed 2023 October 1.
  30. 30. de Cueto M, Aliaga L, Alós J-I, Canut A, Los-Arcos I, Martínez JA, et al. Executive summary of the diagnosis and treatment of urinary tract infection: Guidelines of the Spanish Society of Clinical Microbiology and Infectious Diseases (SEIMC). Enferm Infecc Microbiol Clin. 2017;35(5):314–20. pmid:28017477
  31. 31. Cattrall JWS, Robinson AV, Kirby A. A systematic review of randomised clinical trials for oral antibiotic treatment of acute pyelonephritis. Eur J Clin Microbiol Infect Dis. 2018;37(12):2285–91. pmid:30191339
  32. 32. Kang CI, Kim J, Park DW, Kim BN, Ha US, Lee SJ, et al. Clinical Practice Guidelines for the Antibiotic Treatment of Community-Acquired Urinary Tract Infections. Infect Chemother. 2018;50(1):67–100. pmid:29637759
  33. 33. Gupta K, Hooton TM, Naber KG, Wullt B, Colgan R, Miller LG, et al. International clinical practice guidelines for the treatment of acute uncomplicated cystitis and pyelonephritis in women: A 2010 update by the Infectious Diseases Society of America and the European Society for Microbiology and Infectious Diseases. Clin Infect Dis. 2011;52(5):e103-20. pmid:21292654
  34. 34. Belyayeva M, Leslie SW, Jeong JM. Acute pyelonephritis. Treasure Island (FL): StatPearls Publishing. 2025.
  35. 35. Pigrau C, Escolà-Vergé L. Oral treatment of acute pyelonephritis: when, with which antimicrobial agent and for how long?. Enferm Infecc Microbiol Clin (Engl Ed). 2020;38(7):303–5. pmid:32536596
  36. 36. Kobayashi M, Shapiro DJ, Hersh AL, Sanchez GV, Hicks LA. Outpatient antibiotic prescribing practices for uncomplicated urinary tract infection in women in the United States, 2002–2011. Open Forum Infectious Diseases. 2016;3(3):ofw159.
  37. 37. Herness J, Buttolph A, Hammer NC. Acute Pyelonephritis in Adults: Rapid Evidence Review. Am Fam Physician. 2020;102(3):173–80. pmid:32735433
  38. 38. Fernandez Urrusuno R. Guía de terapeutica antimicrobiana del area Aljarafe. Sevilla: Distrito sanitario Aljarafe-Sevilla Norte y Hospital San Juan de Dios del Aljarafe. 2018. https://portal.guiasalud.es/wp-content/uploads/2018/12/GPC_578_Antimicrobianos_Aljarafe_2018.pdf
  39. 39. Sojo-Dorado J, López-Hernández I, Rosso-Fernandez C, Morales IM, Palacios-Baena ZR, Hernández-Torres A, et al. Effectiveness of Fosfomycin for the Treatment of Multidrug-Resistant Escherichia coli Bacteremic Urinary Tract Infections: A Randomized Clinical Trial. JAMA Netw Open. 2022;5(1):e2137277. pmid:35024838
  40. 40. Hatlen TJ, Flor R, Nguyen MH, Lee GH, Miller LG. Oral fosfomycin use for pyelonephritis and complicated urinary tract infections: a 1 year review of outcomes and prescribing habits in a large municipal healthcare system. J Antimicrob Chemother. 2020;75(7):1993–7. pmid:32303061
  41. 41. Beltran A. Resistencia antibiótica de Escherichia coli en infecciones urinarias nosocomiales y adquiridas en la comunidad del Sector Sanitario de Huesca 2016-2018. Rev Clin Med Fam. 2020;13(3):198–202.
  42. 42. Kaye KS, Gupta V, Mulgirigama A, Joshi AV, Scangarella-Oman NE, Yu K, et al. Antimicrobial Resistance Trends in Urine Escherichia coli Isolates From Adult and Adolescent Females in the United States From 2011 to 2019: Rising ESBL Strains and Impact on Patient Management. Clin Infect Dis. 2021;73(11):1992–9. pmid:34143881
  43. 43. Vellinga A, Tansey S, Hanahoe B, Bennett K, Murphy AW, Cormican M. Trimethoprim and ciprofloxacin resistance and prescribing in urinary tract infection associated with Escherichia coli: a multilevel model. J Antimicrob Chemother. 2012;67(10):2523–30. pmid:22729920
  44. 44. Wagenlehner F, Nicolle L, Bartoletti R, Gales AC, Grigoryan L, Huang H, et al. A global perspective on improving patient care in uncomplicated urinary tract infection: expert consensus and practical guidance. J Glob Antimicrob Resist. 2022;28:18–29. pmid:34896337