Introduction

Asthma is the most common chronic respiratory disease in the world, and in 2019, it was estimated to affect 262 million people. There are wide geographical variations in the prevalence of asthma, with higher rates in higher-income countries where it is the most common chronic disease in childhood [1,2,3,4,5,6]. However, a significant decrease in the prevalence of asthma has been observed in these countries over the last decade [3,4,5]. Asthma prevalence rates in children under 18 years increased in the USA between 2001 and 2009 (from 8.7 to 9.7%) and then declined, with a prevalence of 7.5% in 2018 [4, 5]. In Spain, asthma symptoms have become highly prevalent, increasing in adolescents (15.3% at 13–14 years) and stabilizing in schoolchildren (10.4% at 6–7 years) [7]. Regarding sex differences, asthma is more prevalent in boys (9.2%) than in girls before the onset of puberty (7.4%), with this trend reversing in adolescence and thereafter [8, 9].

The incidence of hospital admissions with asthma and associated factors is one of the best sources of information on morbidity trends and prognosis [10].

Some Spanish authors have suggested that an increase in the use of non-invasive ventilation (NIV) at the emergency room in pediatric and adolescent asthma patients could be related to a decrease in the incidence of hospital admissions due to asthma exacerbations in this population [11, 12].

Recent works that have assessed the possible association between asthma and COVID-19 concluded that asthmatic patients do not seem to have an increased risk of admission for COVID-19 [13].

When asthma treatment is inadequate, the complications associated with the disease can result in more frequent exacerbations and hospitalizations, which can in turn lead to increased hospital stay and mortality. However, deaths from asthma in children are rare (range, 0.0–0.7 cases per 100 000) and are associated with severe asthma symptoms and hospital admissions [14, 15].

The aims of this study were to analyze trends in the admissions of children to hospital with asthma in Spain between 2011 and 2020 and to identify possible changes in incidence, demographic characteristics, clinical conditions, and hospital outcomes such as length of hospital stay (LOHS) and in-hospital mortality (IHM). The analysis was conducted with asthma as the primary diagnosis and with asthma in any diagnostic position.

Methods and subjects

We conducted an observational retrospective epidemiological study using the Spanish National Hospital Discharge Database (SNHDD), which is managed by the Spanish Ministry of Health. Since all private and public hospitals provide data, over 95% of hospitalizations are included. Clinical conditions and diagnostic and therapeutic procedures performed during the admission are coded using the International Classification of Diseases (ICD). The Ninth Revision (ICD-9) was used from implementation in 1992 up to the year 2015. In the year 2016, ICD-9 was replaced by the Tenth Revision (ICD-10) [16, 17].

Study population and variables

We selected all admissions of children aged 0 to 15 years with a diagnostic code for asthma in any position (see Supplementary Table 1 for ICD-9 and ICD-10 codes).

The study population was analyzed using asthma as the primary diagnosis and with asthma in any diagnostic position. We analyzed asthma in “any diagnostic position” to assess possible changes in the way the disease was coded in the SNHDD over time and to obtain an overview of the importance of asthma in children.

According to the SNHDD methodology, the primary diagnosis is the clinical condition that is considered, by the physician responsible for the discharge report to have been the main reason for the child being admitted to hospital [16, 17]. In previous investigations, when “Asthma” was coded in this position, the admission was defined as an “Asthma exacerbation” [2, 11].

For the purposes of this study, we excluded children with missing data on age, sex, LOHS, and discharge destination, with no imputation of missing data.

Our main study variables were the incidence of hospitalizations for asthma and the IHM. The incidence for each year from 2011 to 2020 was estimated by sex and three age groups (0–5 years; 6 to 10 years; and 11 to 15 years). Yearly populations for incidence calculations were obtained from the Spanish National Statistics Institute [18].

Study covariates included the presence of pneumonia, influenza, and COVID-19 (only for the year 2020). We also described the use of invasive mechanical ventilation (IMV) and NIV. The ICD codes for these conditions and procedures are defined in Supplementary Table 1.

Statistical analysis

The incidence rates were expressed per 100,000 children. Joinpoint log-linear regression was applied to identify the years in which changes in tendency occurred in the rates for hospital admissions for asthma as either the primary diagnosis or in any diagnostic position, according to age group and sex. Joinpoint regression provides the annual percentage change (APC) in each of the periods delimited by the points of change, and tests whether an apparent change in trend is statistically significant [19].

Study variables were described using means with standard deviations and total numbers with relative frequencies (expressed as percentages) for continuous and categorical variables, respectively. To assess the time trend from 2011 to 2020 for categorical variables, we used the Cochran-Mantel–Haenszel test (age group) or Cochran-Armitage test (binary variables). In the case of LOHS, we used the Jonckheere-Terpstra test.

Finally, we constructed a multivariable logistic regression model to identify which study variables were independently associated with IHM when asthma was coded in any diagnostic position. The models were constructed using the methods described by Hosmer et al. [20].

Data were analyzed using Joinpoint Regression Program, version 4.0.4 [21], and Stata version 14 (Stata, College Station, Texas, USA). Statistical significance was set at p < 0.05 (two-sided).

Ethical aspects

The Spanish Ministry of Health evaluated the protocol of our investigation prior to providing us with the SNHDD database. All data received were anonymized. For the previous reasons and according to Spanish legislation, the requirement for ethical approval was not necessary. Any investigator can request the SNHDD from the Spanish Ministry of Health by completing an application form [22].

Results

Between 2011 and 2020, 86,416 children were hospitalized with a code for asthma in any diagnostic position. Of those, 752 (0.87%) were excluded for the following reasons: missing data for age (n = 21; < 0.1%), sex (n = 15; < 0.1%), LOHS (n = 562; 0.65%), and discharge destination (n = 154; 0.18%). Therefore, the final study population included 85,664 children. Over the 10-year period, 46,727 (54.55%) children had asthma coded as their primary diagnosis. The proportion of children with a primary diagnosis of asthma decreased significantly from 55.70% in 2011 to 43.96% in 2019–2020 (p < 0.001) (Table 1).

Table 1 Children hospitalized with asthma as primary diagnosis or in any diagnosis position in Spain from 2011 to 2020 according to age groups and sex

Time trends in the incidence and characteristics of children hospitalized with asthma as the primary diagnosis

Table 1 shows the total number of hospitalizations for children with asthma as the primary diagnosis and in any diagnostic position according to age group and sex. The number of children with a primary diagnosis of asthma decreased sharply from 2011 to 2020 for all age groups and both sexes. The age group with the highest proportion of hospitalizations (both boys and girls) was the 0- to 5-year group. However, a significant increase in the older age groups was observed over time. From 2011 to 2020, the percentage of children with a diagnosis of asthma aged 0–5 years decreased from 68.17 to 52.42%, whereas that of groups aged 6–10 years and 11–15 years increased from 23.38 to 33.27% and from 8.45 to 14.31%, respectively (p < 0.001).

Over the entire period, boys outnumbered girls (28,152 [60.24%] vs. 18,575 [39.76%]). In all the years analyzed and for all age groups, the number of boys was higher than the number of girls.

Figure 1 shows the changes in incidence of hospitalizations for asthma as the primary diagnosis according to the joinpoint analysis for both sexes (Fig. 1a), boys (Fig. 1b), and girls (Fig. 1c).

Fig. 1
figure 1

Time trend from 2011 to 2020 in incidence of hospitalizations for asthma as the primary diagnosis according to the joinpoint analysis for both sexes (a), boys (b), and girls (c)

As can be seen in Fig. 1a, the incidence of hospitalizations declined significantly in children, with an APC of 2.79% from 2011 to 2018 and of 28.84% from 2018 until 2020. The trend for boys and girls was almost identical (Fig. 1b, c), with a constant reduction over time that became more intense from 2018 onwards.

Table 2 shows the prevalence of pneumonia, influenza, COVID-19, use of mechanical ventilation, LOHS, and IHM among children hospitalized with asthma as the primary diagnosis in Spain from 2011 to 2020 according to sex. The frequency of concomitant pneumonia was low over all the years studied, with figures of around 2–4% for both sexes and no significant changes over time. Influenza was diagnosed even less frequently, with figures below 1% in boys and girls and in every year analyzed. In the year 2020 in Spain, only 7 children (3 boys and 4 girls) were hospitalized with a primary diagnosis of asthma and COVID-19.

Table 2 Prevalence of pneumonia, influenza, COVID-19, use of mechanical ventilation, length of hospital stays, and in-hospital mortality among children hospitalized with asthma as primary diagnosis in Spain from 2011 to 2020 according to sex

We detected a significant increase in the use of NIV in both sexes (1.55% in boys and 1.56% in girls in 2011 vs. 3.27% and 3.67% in 2020). IMV was very infrequent (< 0.7%), with no variation over time.

In our study, the mean LOHS remained stable at around 3 days from 2011 to 2020. IHM was very low, with no significant changes detected over the study period. Nine children died in hospital (6 boys and 3 girls).

Time trends in the incidence and characteristics of children hospitalized with asthma in any diagnostic position

A total of 85,664 children were hospitalized with asthma in any diagnostic position in Spain from 2011 to 2020. The highest figure corresponds to the year 2013, with 9934 children, and the lowest to the year 2020, with only 4834 children (Table 1). As mentioned above, the number of hospitalizations for asthma in the primary diagnostic position decreased for all age groups and both sexes. The proportion of children (boys and girls) in the 0- to 5-year group decreased over time as the older age groups became proportionally larger. Boys accounted for 60.21% (51,578) of the study population and girls for 39.79% (34,086).

Trends in incidence analyzed using joinpoint regression are shown in Fig. 2. For all the children (Fig. 2a), incidence decreased over time, with an APC of 5.02% from the year 2011 to 2020. Trends also decreased constantly for both boys and girls from 2011 to 2020, with a similar pattern (Fig. 2b, c).

Fig. 2
figure 2

Time trend from 2011 to 2020 in incidence of hospitalizations for asthma in any diagnostic position according to the joinpoint analysis for both sexes (a), boys (b), and girls (c)

As can be seen in Table 3, the diagnosis of pneumonia appeared much more frequently when asthma was present in any diagnostic position than when only the primary position was analyzed. The prevalence of pneumonia among girls ranged from 7 to 11%, with a significant decrease over time. Lower figures were reported for boys, ranging from 6 to 9%, and a reduction was also observed between 2011 and 2020 (p < 0.001).

Table 3 Prevalence of pneumonia, influenza, COVID-19, use of mechanical ventilation, length of hospital stays, and in-hospital mortality among children hospitalized with asthma in any diagnosis position in Spain from 2011 to 2020 according to sex

Influenza was coded more frequently in recent years (1.9% of boys and 2.86% of girls in 2020 vs. 0.79% and 0.71%, respectively, in 2011; p < 0.001). In the year 2020, 55 children had codes for asthma and COVID-19 in their discharge report.

NIV was coded almost twice as frequently in 2020 (2.22% in boys and 2.66% in girls) as in 2011 (1.3% in boys and 1.47 in girls), with the trends being statistically significant for both sexes. IMV was used in < 1% and did not change over time.

The mean LOHS was slightly higher when an asthma diagnosis was recorded in any position (approx. 3.5 days) than when asthma was limited to the primary position (approx. 3.2 days). No significant change in the LOHS over time was found for either sex. Between 2011 and 2020, a total of 52 children (< 0.1%) died in hospital in Spain with asthma in any diagnostic position.

Variables associated with IHM among children hospitalized with asthma in any diagnostic position

The results of the multivariable logistic regression model to identify which study variables were independently associated with IHM are shown in Table 4. Compared with the reference age group (0–5 years), children aged 6–10 years and 11–15 years were, respectively, 6.56 (95%CI 2.2–19.61) and 9.34 (95%CI 3.18–27.41) times more likely to die in hospital.

Table 4 Logistic regression model to identify factors associated with in hospital mortality among children hospitalized in Spain with asthma in any diagnosis position

Children who required IMV during their hospitalization also had a much higher risk of dying (OR 36.08; 95%CI 20.72–62.84).

Finally, when asthma was coded in the primary diagnostic position, the probability of dying during hospitalization was significantly lower (OR 0.37 95%CI 0.17–0.73).

Discussion

Using the SNHDD, we found a significant decrease in rates of hospitalization of pediatric patients for asthma from 2011 to 2020. This decrease remained unchanged irrespective of whether asthma was analyzed only as primary diagnosis (asthma exacerbations) or in any diagnostic position. In addition, the frequency of hospitalizations was higher in boys than in girls for all the ages studied. NIV is increasingly common. IHM rates remained very low and stable over time. COVID-19 did not seem to increase admissions due to asthma in the year 2020.

The significant decrease in hospitalizations for asthma continued the trend already reported in a previous study, which included the entire Spanish population between the years 2002 and 2010 [11]. Similar results were found in studies conducted in other countries [23,24,25,26,27,28]. In Ecuador, Cabrera et al. observed that the hospitalization rates for asthma among children decreased from 27.8 to 12.9 per 100,000 inhabitants between 2000 and 2018 [23]. Similar works in high-income European countries also show reductions in hospitalization rates over the past three decades [24]. In other areas of the world, we see that decreases in hospital admission rates for asthma were of a different magnitude, although always consistent with the trend and period studied (Kuwait, 16%; Costa Rica, 53%; Brazil, 36%) [25,26,27].

In a recent study, admission rates were 3.38 times higher when admissions with any asthma diagnosis were used to calculate rates than with asthma as the primary diagnosis. These results highlight the importance of understanding the context of hospital administrative data collection in various settings, as there were substantial differences in hospital admission rates for asthma depending on the definition used, that is, whether asthma was recorded as a primary diagnosis or a secondary diagnosis [28]. In our study, we found that when the asthma code appeared in the first position, it was associated with a lower IHM. These results suggest that when asthma is not the first diagnosis, mortality was possibly due to the presence of other, more serious concomitant processes.

Consistent with other studies in other regions, our results indicate that COVID-19 did not cause an increase in admissions due to asthma [29, 30].

Mortality secondary to asthma in children is rare, ranging between 0.0 and 0.7/100,000 in different parts of the world, with Spain being among the lowest in Europe [15, 31,32,33,34]. In our study, we observed very low in-hospital mortality which remained largely unchanged from 2011 to 2020, although it did increase with age. Overrepresentation of adolescent males in pediatric asthma death series is consistent with data reported elsewhere [35]. Factors such as poorer adherence to medication and risk behaviors could explain, at least in part, the increase in mortality with age found in our study [36]. However, as we stated above, deaths recorded among older children may be related to other comorbid conditions or accidents, rather than to asthma.

Consistent with data reported elsewhere, we found that IMV was very infrequent and that NIV has replaced it as the primary mode of mechanical support for asthma [37].

It is important to highlight both the strengths and the limitations of our work. Its main strength is the large sample size and the use of a standardized methodology throughout the study. Similar studies have also used discharge databases to assess trends in hospital admissions for exacerbations in children with asthma [11, 38]. The main limitation of our study is the potential bias resulting from the use of ICD-9 and ICD-10 diagnostic codes to identify patients hospitalized for asthma. Previous studies found that “wheeze” or “bronchospasm” are commonly used instead of asthma in discharge reports, especially in younger children, and this could underestimate the real incidence of asthma [39]. In any case, other studies have used the same codes as we did to evaluate asthma hospitalization trends and have even performed sensitivity analyzes to address this issue, stating that it is difficult to conclude that the observed trend can be explained by diagnostic substitution [40]. Second, our data source was the SNHDD, an administrative database that does not include information on factors such as duration, severity, degree of control, or pharmacological treatments. Another limitation may derive from the fact that the database is anonymous, thus making it impossible to determine whether more than one admission corresponds to the same patient throughout the year. For the same reason, patients who moved from one hospital to another could appear more than once. Our findings show that the incidence of hospital admissions for asthma in Spain decreased in children between 2011 and 2020. We also recorded more frequent use of NIV and low mortality rates. This decrease is observed irrespective of whether asthma is analyzed as the primary diagnosis or in any diagnostic position. In addition, the frequency of hospitalizations is higher in boys than in girls for all the years studied, and the mean LOHS remained stable in both sexes. COVID-19 did not cause an increase in admissions with asthma in the year 2020. These findings indicate that management of patients with asthma improved in Spain during the study period.