Background

Noxious and unintended effects resulting from the use of medicinal products are frequent and pose a significant burden to the patient and the healthcare system, as well as to the healthcare professional, the regulator, and the industry [1].

Common terms to report the adverse effects of medication use in medication safety literature are adverse drug events (ADE), adverse drug reactions (ADR) and medication errors, despite a lack of homogeneity between terms and definitions [2].

The current ADR definition endorsed by the European Medicines Agency (EMA) covers both adverse outcomes resulting from the authorised use of a medicinal product at normal doses and those resulting from medication errors and uses outside the terms of the marketing authorisation [2, 3].

Coding of patient records using the International Classification of Diseases (ICD) is commonly employed to classify medication harm in hospitals [2].

In Portugal, previously published studies on ADR in hospitals have addressed the 2000–2015 period and used different sets of ICD – 9th revision – Clinical Modification (ICD-9-CM) codes for episode selection [4,5,6,7]. Scriparu et al. found that ADR were present in 1.46% of all discharges in the 2004–2013 period [6]. The mean age of affected patients was 63.79 years, being 54.50% female [6]. Despite being more frequent in women in absolute terms, the rate of ADR was higher in men (1.48 vs 1.44%) [6]. No estimate was provided for the rate per 100,000 population, as in other published papers on the Portuguese population [4,5,6,7].

More recently, ICD-10-CM has come into force in Portugal [8], with profound implications for health outcomes coding [9]. Previous studies have advised the need to investigate the impact of the transition from ICD‐9‐CM to ICD‐10‐CM codes on health outcomes on a case‐by‐case basis [9].

This study aimed to produce up-to-date estimates for ADR rates in hospitals, in Portugal, from 2010 to 2018. In addition, we aimed to explore possible pitfalls when crosswalking between ICD-9-CM and ICD-10-CM code sets for medication harm in administrative hospital databases.

Methods

Terminology and definitions

The ADR definition followed the EMA recommendation, encompassing adverse effects resulting from medication use, including medication errors [3, 10].

Hospital episode refers to either outpatient or inpatient episodes, as long as it was included in the Portuguese Hospital Morbidity Database.

Study setting

In 2020, Portugal registered a population of 10,295,909 inhabitants [11]. Life expectancy is higher than the European average, despite a drop of 0.8 years between 2019 and 2020 due to COVID-19 [11].

The Portuguese National Health Service (NHS) is a tax-financed health system providing universal access to high-quality care [11]. The NHS coexists with two other systems: the health subsystems, special health insurance schemes that provide coverage for particular professions or sectors, and private voluntary health insurance schemes [11]. Around one-fourth of the population has a second health insurance coverage [12].

Data sources

The Portuguese Hospital Morbidity Database was used for this study. This database gathers information on inpatient, surgical or day hospital outpatient episodes in public hospitals nationwide. Emergency Department visits are not included in the database, except when they result in a subsequent inpatient admission. Despite its primary administrative purpose, the Hospital National Morbidity Database is also frequently used for clinical or health services research. It comprises patient demographics, clinical information (ICD diagnosis and procedures codes, episode severity, in-hospital mortality), admission and discharge information (date, place) and diagnostic-related grouping codes (for cost information). Patient records are linked with an encrypted, unique patient identification code. The transition from ICD-9-CM to ICD-10-CM/PCS in Portugal started in August 2016 [13]. The ICD-10-CM/PCS transition period was heterogeneous among hospitals due to differences in prior training and adaptation of information systems [8]. Consequently, ICD-9-CM clinical coding was still present in some facilities even after the mandatory deadline of January 2017 [8].

Portuguese resident population estimates were obtained from Statistics Portugal [14].

Episode identification

This study included all episodes related to ADR registered in the Hospital Morbidity Database between 2010 and 2018. Episodes related to ADR were defined as episodes (inpatient or outpatient) with at least one ICD code of ADR. As such, ADR could be present on admission (as a cause for admission) or occurring during the hospital episode as a nosocomial event.

Since the study period spanned from 2010 to 2018, both ICD-9-CM and ICD-10-CM were used to define episodes. Both code sets were identified based on previously published studies.

The ICD-9-CM code set relied on E-codes, as previously studied in the Portuguese setting [5, 6]. E-codes are supplemental to the ICD-9-CM diagnosis codes and used to describe external causes of injury and poisoning codes, including other categories other than ADR, including transport accidents or accidental falls [15, 16].

Under ICD-10-CM, E-codes are absent, and diagnosis codes T36-T50 ('Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances') provide information on both the substances involved and intent of injuries related to drugs ('1': accidental, '2': intentional self-harm, '3': assault, '4': undetermined, '5': adverse effect and '6': underdosing) [17, 18]. Due to the greater specificity of the ICD-10-CM compared to the ICD-9-CM, we revised the T36-T50 codes to prevent problems due to backward mapping [19]. Codes T36-T50 (ICD-10-CM) were crosswalked to ICD-9-CM (backward mapping) using the General Equivalence Mappings (GEM) method. We followed the General Equivalence Mappings (GEM) endorsed by the Administration of the Health System (ACSS) in Portugal, originally developed by the Center for Medicare and Medicaid Services and the Centers for Disease Control and Prevention. ACSS is the entity responsible for managing the Portuguese Hospital Morbidity Database [13]. Other authors have previously recommended manual refinement when conducting studies using ICD-9-CM-based algorithms mapped to ICD-10-CM codes [20].

Table 1 provides a summary of all ICD codes.

Table 1 ADR definition according to the ICD-9-CM and ICD-10-CM

Statistical analyses

For the study period (2010 to 2018), irrespective of the ICD code set in use, the total number of episodes related to ADR was summarised by age group, sex, health region, admission circumstances and discharge options. Annual crude rates were computed by age group and sex, based on the number of episodes with an ICD code of ADR relative to the resident population in Portugal. We assumed that the age distribution of the population covered by NHS hospitals (the population at risk) was comparable to that of the general population. It was necessary because around one-fourth of the population has a second health insurance coverage.

To explore possible pitfalls when crosswalking between ICD-9-CM and ICD-10-CM code sets, we analysed the characteristics of episodes from the 2010–2016 period (ICD-9-CM coded episodes) compared to those from the 2017–2018 period (ICD-10-CM coded episodes).

Data were analysed using R Version 4.2.1 and R Studio Server Version 2022.02.3 Build 492.

Results

ADR in hospitals: total episodes and rates

Between 2010 and 2018, there were 162,985 episodes related to ADR, from a total of 16,375,364 hospital episodes (1.00%).

In the same period, the mean annual rate of episodes related to ADR was 174.2/100,000 population. Table 2 reports the annual number of episodes related to ADR, as well as the annual rate for the same period.

Table 2 The annual number and rates of episodes related to ADR

A total of 33,348 patients had more than 1 episode during the study period. The mean number of episodes per patient was 1.26, which was higher among the younger age groups (0–20 years) (Supplementary Appendix, Table S1).

ADR in hospitals: episodes and rates by age group and sex

The number and rate of episodes related to ADR were higher in women (Table 2) and increased with advancing age after a drop from '0–5' to '5–10' years (Fig. 1).

Fig. 1
figure 1

Number and rate of ADR-related episodes, per age group, between 2010 and 2018

Considering the distribution by sex and age group, however, the episode rate was generally higher in men, except for young adults ('15–20', '25–30' to '30–35' years) (Table 3).

Table 3 Distribution of ADR-related episodes and rates, between 2010 and 2018

ADR in hospitals: episodes and rates by geographical area

By geographical area of residence, the Lisbon and Tagus Valley health region registered the highest rate over the years (206.9/100,000 population) (Table 4). The autonomous regions of Azores and Madeira registered rates of 45.3 and 40.5, respectively (not displayed in Table 4).

Table 4 Distribution of ADR-related episodes and rates by geographical area of residence, between 2010 and 2018

ADR in hospitals: episodes by admission circumstances and discharge options

Between 2010 and 2018, most ADR-related hospital episodes were inpatient (n = 161,778; 99.3%) rather than outpatient (n = 1,207; 0.7%) admissions. The majority were urgent admissions (n = 134,099; 82.3%), and patients were discharged home (n = 138,808; 85.2%). Most were classified as medical cases (n = 143,868; 88.3%) (Supplementary Appendix, Table S2).

ADR in hospitals: in-hospital mortality

During the 2010–2018 period, 14,289 patients died during an ADR-related hospital episode (8.8% in-hospital mortality) (Supplementary Appendix, Table S2).

Summary of main features of ADR in hospitals

Table 5 summarises the main features of ADR in hospitals during the 2010–2018 period, as well as for the 2010–2016 (ICD-9-CM coded) and 2017–2018 (ICD-10-CM) periods.

Table 5 Summary of main features of ADR in hospitals during the 2010–2018 period

Discussion

Summary of main findings

This study aimed to produce up-to-date estimates for coded ADR rates in hospitals, in Portugal, from 2010 to 2018. By presenting the features of ADR in hospitals over the years, we sought to illustrate possible pitfalls when crosswalking between ICD-9-CM and ICD-10-CM code sets for medication harm in administrative hospital databases.

Between 2010 and 2018, the frequency of ADR in hospital episodes was 1.00%, and the mean annual rate of episodes related to ADR was 174.2/100,000 population. These are in line with previous estimates from a recent systematic review of studies with national coverage conducted in Europe, Central Asia, East Asia and the Pacific, North America, Latin America and the Caribbean. The relative frequency of ADE-related hospitalisations ranged from 0.03% to 7.3% and from 9.7 to 383.0/100,000 population [21]. The ADE definition considered by the review authors is similar to the ADR definition used in our study, and the included studies also focused on ADE as the cause of hospital admission and/or occurring during inpatient treatment. However, the review authors found heterogeneity concerning database scope, ADE definition, and ICD codes in the included studies [21].

In contrast, Stausberg estimated a higher overall prevalence rate (and 95% confidence interval, CI) of coded ADR in hospitals in 2006. This was estimated at 3.22% (3.20%–3.23%) for England, 4.78% (4.73%–4.83%) for Germany, and 5.64% (5.63%–5.66%) for the USA [22]. However, the ICD code sets used for the analysis were remarkably different from the ones used in our study and may explain these differences. Carrasco-Garrido et al., using slightly different ICD-9-CM E-codes, estimated that 1.69% of all acute admission in Spain during 2001–2006 had an ADR present (either as the cause or occurring during the hospital episode) [23].

It should be noted that we included all hospital episodes present in the Hospital Morbidity Database, irrespective of episode type (inpatient or outpatient) and the primary diagnosis (i.e., whether ADR was the cause for seeking care or not). This is not the case in other cited studies focused on inpatient episodes. The ratio of inpatient to outpatient episodes (in each country) is expected to impact the estimated frequency of ADR in hospital episodes. However, since 99,3% of included episodes in our study were classified as inpatients, including outpatient episodes is not expected to impact the estimated rates per 100,000 population. Nonetheless, criteria such as different admission criteria, differences in prescribing patterns and population characteristics may also play a role in the wide variation reported between studies conducted in different countries.

In our study, the absolute number and rate of ADR in hospitals were higher in women. However, in further analysis considering the episode rate per 100,000 population, by sex and age group, the episode rate was generally higher in men. Therefore, our results may reflect the Portuguese population age pyramid and the profile of patients subject to hospital care and are unadjusted for medication use and other confounding variables. The female gender has been associated with hospital admissions attributed to ADR [24] and sex has long been recognised as an important determinant of drug use and response [25] in previous studies.

As expected, the rate of ADR in hospitals was higher in older adults because of the increased risk of ADR likely due to multimorbidity and polypharmacy, as well as altered pharmacokinetics and pharmacodynamics [26].

Lisbon and Tagus Valley Health Region had the highest episode rate. From a public health standpoint, it would be helpful to explore the features of these episodes to ascertain if this result would persist after adjusted analyses for medication use and other confounding variables. Were the same results to persist, it would be relevant to ascertain whether they were due to a true high rate in that particular Health Region or rather due to the miscoding of ADRs.

In our study, in-hospital mortality was estimated at around 8.8%, in line with previous national and international studies. Scripcaru et al. estimated an 8.0% in-hospital mortality rate between 2004–2013 in Portugal [6]. This rate was higher compared to non-ADR hospital episodes and length of stay, in line with similar studies [22]. However, this might be due to unadjusted comparisons. In another study conducted by Sousa-Pinto et al., between 2000 and 2015, in Portugal, in-hospital mortality was found to be lower for ADE hospitalisations of all studied categories (poisoning, ADR and late effects) after propensity score matching [7]. However, this association was only observed for medical episodes and urgent admissions, not for surgical and planned admissions. Episode characteristics can, by themselves, hinder the conclusions as they also affect the outcome. For example, severe urgent admissions are prone to higher and early in-hospital mortality, irrespective of the ADR status. Residual confounding may persist despite the use of statistical procedures aimed to eliminate bias [27].

The current study proposes a set of ICD-10-CM codes to capture ADR in hospitals and compares the results with those obtained with a set of ICD-9-CM codes previously reported in the literature. Our study is the first to report ADR rates in hospitals using ICD-9-CM and ICD-10-CM in the same report.

The characteristics of hospital episodes identified through ICD-9-CM and ICD-10-CM were similar.

Cheng et al. previously studied the validity of ICD-10-CM T codes for ADR identification in hospital claims data [28]. Inpatient episodes with T codes in a primary or secondary diagnosis were identified, and pharmacists performed a retrospective review of the medical chart to confirm the ADR [28]. The positive predictive value for a T code representing an ADR was 57% [28]. It notes to be mentioned that even so, the use of T codes increased the ADR reporting rate by 9.17% [28]. However, contrary to our study, it seems that no manual refinement took place, and intentional self-harm, assault, and undetermined circumstances were included for each of the 'Poisoning' categories.

Strengths and limitations

To the best of our knowledge, this is the first study in Portugal to estimate the annual rate of episodes related to ADR per 100,000 population after the uptake of ICD-10-CM.

However, some limitations are worth mentioning. In our study, it was not possible to distinguish between ADR present on admission and those occurring during the hospital episode. A previous study in Portugal focused exclusively on ADR acquired during the hospital episode between 2013–2015 through the application of "present at admission" coding [5]. Around 28.5% of all ADR occurred during the hospital stay, i.e., were not present on admission. Our study did not have access to the "present at admission" variable.

Our study only examined one set of ICD-10-CM codes, which can be perceived as a limitation. Previous studies suggested testing multiple ICD‐10‐CM outcome definitions as part of sensitivity analysis when using data from both the ICD‐9‐CM and ICD‐10‐CM eras [9].

The mapping method applied in this work relied fundamentally upon backward mapping (ICD-10-CM to ICD-9-CM), as GEM from ICD-9-CM to ICD-10-CM (forward mapping) suggested no codes. The obtained ICD-10-CM codes were then subject to manual refinement. The combination of tentative forward mapping, backward mapping, and manual refinement does not conflict with the results and recommendations of other authors [29]. However, it is not risk-free, as some areas (such as sequela identification or underdosing coding in ICD-10-CM) may be mapped outside E-codes or have no translation in ICD-9-CM, and therefore not captured in our analysis. This situation might have been minimised by the iterative application of the forward and backward mapping strategies [29] or the dismissal of sequela and underdosing T codes, but all these solutions would also require manual refinement at the expense of subjective decisions. We opted for this more straightforward, easily replicable strategy that may be subject to validation in further studies.

Furthermore, E-Codes (ICD-9-CM), crosswalked to T codes (ICD-10-CM) may also be criticised. It is worth mentioning that using the same database (albeit for a single Institution), followed by a chart review for validation, Miguel et al. [16] found that E-codes generated 284 signals for ADR, with 95% positive predictive value. Six diagnostic codes (without simultaneous E-coding) queries were selected and generated an additional 87 signals, with 87.6% positive predictive value [16]. This is to be expected as E-codes should always be accompanied by an appropriate diagnosis that conveys the clinical presentation (E-codes are merely the description of the external cause). A similar rationale applies to the ICD-10-CM when considering the crosswalked T codes. Therefore, if coded right, a diagnosis for ADR should always be accompanied by an E-code or diagnosis T code. On another note, extending into additional diagnosis codes would make the crosswalk from ICD-9-CM to ICD-10-CM increasingly difficult and prone to gaps. In addition, the exploratory nature of our study precluded an in-depth analysis of the clinical characteristics of patients and hospital episodes. The current study provides, however, important evidence to guide further studies, particularly for the ICD-10-CM coding period.

There are specific limitations concerning the database used for analysis. The Portuguese Hospital Morbidity Database covers around 70% of all inpatient hospital episodes in Portugal [30]. It was created to monitor hospital productivity for mainland Portugal within the publicly financed NHS, explaining the underrepresentation of the islands of Madeira and Azores within the database. Therefore, the results presented may better represent the setting of mainland Portugal. Moreover, administrative databases pose relevant challenges, such as the low sensitivity for the detection of ADR, as extensively discussed by other authors [16, 31, 32]. Low sensitivity may result from undercoding. Undercoding underestimates the frequency of ADR and may result from the absence of information in the discharge summary narrative text (either because of underdiagnosis or underreporting) or solely from the underrecognition by the coding physician during the encoding procedure [33].

Implications for future research

It would be crucial to test additional code sets [9] and to evaluate the performance of the proposed ICD-10-CM codes to capture true positive ADR in hospitals in Portugal, as previously conducted for ICD-9-CM code sets [16]. Furthermore, examining key comorbidities and drug classes would help identify population groups at higher risk of ADR, especially those preventable, such as those arising from accidental poisoning and underdosing, thus contributing to designing appropriate public health interventions. A recent review of reviews acknowledged that various factors, including but not limited to event detection methods, patient age and setting, can influence estimates of preventable ADR [34]. This reinforces the need to consider using local data when designing context appropriate public health interventions. As an example, the National Action Plan for Adverse Drug Event Prevention, developed by the Office of Disease Prevention and Health Promotion (U.S. Department of Health and Human Services), used data from a nationally representative sample of hospital admissions for ADE among older adults to select the preventable targets for intervention. Three key targets were identified, namely, anticoagulants, insulin, and oral diabetes agents, and the basis for initiatives such as surveillance and prevention [35]. Similar initiatives could be devised in the Portuguese context.

Our work also sheds light on some areas, such as repeat ADR, which are beyond the scope of the present work, hence were not fully addressed, and should be subject to further research.

Conclusions

This study shows that the crosswalk between ICD-9-CM and ICD-10-CM is possible and supports the sustained use of administrative health data in Portugal for producing up-to-date estimates of ADR in hospitals. Future research should explore the use of ICD-10-CM coded data to identify target recipients for preventive interventions and contribute to improving medication safety practices in Portugal.