Simon KORNVIG 1,2, Henrik KEHLET 3,4, Christoffer C JØRGENSEN 4–6, Anders FINK-JENSEN 6,7, Poul VIDEBECH 6,8, Alma B PEDERSEN 9,10, and Claus VARNUM 1,2,4
1 Department of Orthopaedic Surgery, Lillebaelt Hospital – Vejle; 2 Department of Regional Health Research, University of Southern Denmark; 3 Section for Surgical Pathophysiology, Copenhagen University Hospital; 4 Centre for Fast-track Hip and Knee Replacement, Rigshospitalet; 5 Department of Anaesthesia and Intensive Care, Hospital of Northern Zealand, Hillerød; 6 Department of Clinical Medicine, University of Copenhagen; 7 Mental Health Center, Copenhagen; 8 Mental Health Center, Glostrup; 9 Department of Clinical Epidemiology, Aarhus University Hospital; 10 Department of Clinical Medicine, Aarhus University, Denmark
Background and purpose — Chronic opioid use is of great concern worldwide. Thus, identification of risk factors for new chronic opioid use (COU) after hip and knee arthroplasty is imperative to target preventive strategies. Depression/anxiety may be risk factors for new COU. However, no studies have investigated whether any or subgroups of preoperative psychopharmacological treatments (PPTs) are risk factors for new COU after hip and knee arthroplasty in a nationwide setting, which was the aim of the present study.
Methods — This population-based cohort study included 40,476 primary hip and 32,557 primary knee arthroplasties from 2015 to 2022 using the Danish Hip/Knee Arthroplasty Registers. Preoperative opioid users were excluded. Dispensing records of psychotropics and opioids were obtained from the Danish National Prescription Registry. Relative risks of new COU were estimated with 95% confidence intervals (CI) using binary regression and adjusted for age, sex, and Charlson Comorbidity Index.
Results — Among hip patients using psychopharmacological treatments (PPTs), 4.6% (202/4,439) had new COU compared with 2.2% (788/36,037) of patients not using PPTs, corresponding to an adjusted relative risk of 1.8 (CI 1.6–2.1). Among total and unicompartmental knee arthroplasties, 9.1% (298/3,261) and 6.4% (59/926) had new COU compared with 4.7 (1,011/21,529) and 2.9% (201/6,841) of patients not using PPTs, corresponding to adjusted relative risks of 1.8 (CI 1.6–2.1) and 2.0 (CI 1.5–2.7), respectively. Analyses of PPT subgroups showed similar results.
Conclusion — Hip and knee arthroplasty patients using PPTs have almost a twofold increased risk of new COU. This emphasizes the need for prevention strategies in these patients.
Citation: Acta Orthopaedica 2025; 96: 492–498. DOI: https://doi.org/10.2340/17453674.2025.44228.
Copyright: © 2025 The Author(s). Published by MJS Publishing – Medical Journals Sweden, on behalf of the Nordic Orthopedic Federation. This is an Open Access article distributed under the terms of the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/)
Submitted: 2024-12-30. Accepted: 2025-06-04. Published: 2025-06-29.
Correspondence: simon.kornvig@rsyd.dk
SK, HK, CJ, AF, PV, AP, and CV conceptualized and designed the study. SK conducted the data management, the statistical analyses, and drafted the manuscript. SK, HK, CJ, AF, PV AP, and CV participated in the interpretation of the results and the critical revision of the final manuscript.
The authors would like to thank Signe Timm for valuable statistical advice and Open Patient data Explorative Network (OPEN), Odense University Hospital, Region of Southern Denmark for advice regarding data access at the Danish Health Data Authority and the Danish Clinical Quality Program – National Clinical Registries for data extraction from DHR/DKR.
Handling co-editors: Marianne Westberg and Robin Christensen
Acta thanks Maaike Gademan and Tina Strømdal Wik for help with peer review of this manuscript.
Chronic opioid use (COU) can induce a vicious cycle of tolerance, dependence, and withdrawal symptoms, causing decreased quality of life and ultimately death [1]. The United States is currently reporting increasing numbers of opioid-related deaths. In 2010, 6.8 per 100,000 Americans died from an opioid-related overdose, whereas 24.7 per 100,000 died in 2021 [2]. Major drivers may include pharmaceutical companies, inadequate regulation, and illegal opioids but also overprescribing [3]. This has led to an increased focus on opioids in other countries, including Denmark [4].
Surgery is an important risk factor for new COU. In Denmark, the incidence of opioid prescriptions in the fourth quarter after hip arthroplasty (THA) among preoperative non-users was 5% from 2013–2018 [5]. Also, an American study found that both minor and major surgeries are risk factors, suggesting that new COU may not be explained entirely by post-surgical pain but also by other risk factors [6]. In THA and knee arthroplasty, several potential risk factors have been identified, e.g., age < 65 years, larger opioid prescriptions on discharge, total knee arthroplasty (TKA), preoperative use, depression, and anxiety [7]. Moreover, a Danish study, performed between 2011 and 2013, has shown that self-reported psychiatric disorder is a risk factor [8]. However, their findings may be influenced by self-report bias and may not reflect current practice as the median length of hospital stay in Denmark decreased from 3 days to 1 day from 2011 to 2020 [9].
The incidence of THAs/TKAs has been projected to increase [10]. Thus, it is paramount to identify high-risk patients to prevent the consequent increase in new COU. No studies have investigated whether any and subgroups of preoperative psychopharmacological treatments (PPTs) are risk factors for new COU after THA, TKA, and unicompartmental knee arthroplasty (UKA) in a nationwide setting, which was the aim of the present study [7].
We performed a nationwide population-based cohort study using data from the Danish national registries. The unique 10-digit Civil Personal Register (CPR) number issued to every Danish citizen was used to link registry data in this study [11]. All 5.9 million Danish citizens have equal access to tax-financed healthcare. This study is reported in accordance with the REporting of studies Conducted using Observational Routinely-collected health Data (RECORD) Statement [12].
We assessed all primary THAs, TKAs, and UKAs due to primary osteoarthritis in Denmark from January 1, 2015 to November 30, 2022 for inclusion using the Danish Hip/Knee Arthroplasty Registries (DHR/DKR), which have a completeness level of more than 95% [13,14]. Patients under 45 years and patients with previous surgery on the same joint were excluded to avoid including patients who may have been misclassified with primary osteoarthritis in the registry. Additional exclusion criteria were simultaneous bilateral procedure, previous contralateral hip or knee arthroplasty within the study period, death within 1 year after surgery, and 1 or more redeemed opioid prescriptions within a half-year before surgery.
Exposures were defined using Anatomical Therapeutic Chemical (ATC) codes, which classify medications by their action and chemical properties. The primary exposure was any preoperative psychopharmacological treatment (PPT) (N05A*, N05B*, N05C*, N06A*, and N06B*), while exposure subgroups were antidepressants (N06A*), serotonin reuptake inhibitors (N06AB* and N06AX16/-21), hypnotics/sedatives (N05C*), anxiolytics (N05B*), and antipsychotics (N05A*).
Since 1995, every redeemed prescription in Denmark has been registered in the Danish National Prescription Registry (NPR). The NPR is considered complete and valid and contains information on CPR number, dispensing date, number of packages, product name, ATC code, package size, tablet/unit strength, prescriber, and pharmacy [15]. However, the intended treatment duration and daily dose are not registered. Thus, the treatment duration for any redeemed PPT prescription was estimated at 99 days for our study population, using a modified version of the waiting time distribution method [16]. This duration was then used to assign exposure status to primary and secondary exposures for each procedure at the time of surgery, as done previously [17].
The outcome, new COU, was defined as at least 2 redeemed opioid prescriptions (ATC codes: N02A*) in the NPR within at least 2 quarters during the last 3 quarters of the first year following surgery. That is, redeemed opioid prescriptions within the first quarter were not included in the outcome definition because opioids can be part of the standard treatment during this time period. Also, the definition was selected to align with a previous study by Edwards et al., which showed that SSRIs, antidepressants, and antipsychotics were risk factors for new COU after hip fracture surgery [18].
All hospitals in Denmark register patients’ primary and secondary discharge diagnoses in the Danish National Patient Registry (DNPR) as International Classification of Diseases 10th edition (ICD-10) codes [19]. This data was used to calculate a Charlson Comorbidity Index (CCI) using primary and secondary diagnoses from a 10-year period before surgery. The 19 Charlson conditions in the DNPR have been validated with a consistently high proportion of confirmed diagnoses [20]. CCI was categorized into 3 groups: no (CCI = 0), low (CCI = 1–2), and high (CCI > 2) comorbidity. Additionally, DHR/DKR provided baseline data on body mass index (BMI), which was categorized as BMI < 25, BMI 25–34.9, and BMI ≥ 35. The DHR included BMI only from the last half of 2016 and onwards.
Frequencies with percentages or medians with interquartile ranges (IQRs) were used to describe the patient characteristics for each procedure in the study population. Arthroplasty characteristics were compared between patients in any and no PPT using standardized mean differences (SMD). Binary regression was used to calculate relative risks (RRs) of new COU with 95% confidence intervals (CIs). The minimal adjustment set was defined as age, sex, and CCI group based on a directed acyclic graph using DAGitty.net (Figure 1). Importantly, all these covariates were collected before the assignment of exposure status. Time trends in absolute risks of new COU between patients in any and no PPT were calculated and plotted with 95% CIs. All observations in the study were independent, as patients with previous contralateral hip or knee arthroplasty in the study period were excluded. Patients not using PPTs were used as references in all analyses. All analyses were performed using STATA 18.0 BE (StataCorp, College Station, TX, USA).

Figure 1. Directed acyclic graph (DAG). PPT: preoperative psychopharmacological treatment; CCI: Charlson Comorbidity Index; COU: chronic opioid use.
This study was conducted in compliance with the Declaration of Helsinki and approved by the Record of Data Processing Activities in the Region of Southern Denmark (Journal Number: 22/16325). SK has received funding for salary from the University of Southern Denmark and the Region of Southern Denmark. Lillebaelt Hospital funded the data access at the Danish Health Data Authority. The funders had no role in the planning of the study and were involved in neither the analysis nor the interpretation of the results. Complete disclosure of interest forms according to ICMJE are available on the article page, doi: 10.2340/17453674.2025.44228
This study assessed all 69,153 primary THAs, 48,264 primary TKAs, and 14,676 UKAs in Denmark from January 1, 2015 to November 30, 2022 for inclusion. After exclusion of non-eligible patient, the final study population comprised 40,476 THAs, 24,790 TKAs, and 7,767 UKAs (Figure 2).

Figure 2. Flowchart of the study populations.
A. The total hip arthroplasty (THA) cohort.
B. The total knee arthroplasty (TKA) cohort.
C. The unicompartmental knee arthroplasty (UKA) cohort.
PPT: preoperative psychopharmacological treatment.
Due to the exclusion of patients who had redeemed 1 or more opioid prescriptions within a half-year before surgery, 31%, 28%, and 25% of otherwise eligible THA, TKA, and UKA patients were excluded from the study population, respectively. In the final study population, 11%, 13%, and 12% of THA, TKA, and UKA patients used PPTs, respectively. Patients using PPTs were more likely to be women and had higher CCIs. However, exposed and unexposed patients had similar ages and BMIs. UKAs constituted 24% of all knee arthroplasties (Table 1).
After THA, 4.6% (CI 4.0–5.2) of patients using PPTs became new COUs compared with 2.2% (CI 2.0–2.3%) of patients not using PPTs. This corresponds to an adjusted RR of new COU of 1.8 (CI 1.6–2.1). After TKA and UKA, 9.1% (CI 8.2–10.2) and 6.4% (CI 4.9–8.1) of patients using PPTs became new COUs, compared with 4.7% (CI 4.4–5.0) and 2.9% (CI 2.6–3.4) of patients not using PPTs, respectively. This corresponds to adjusted RRs of new COU of 1.8 (CI 1.6–2.1) and 2.0 (1.5–2.7), respectively (Table 2).
The most prevalent subgroup of PPTs was antidepressants, with 7% of THA, 8% of TKA, and 8% of UKA patients being users. THA patients using antidepressants had an adjusted RR of new COU of 1.9 (CI 1.6–2.3), while TKA and UKA patients using antidepressants had adjusted RRs of new COU of 1.8 (CI 1.5–2.0) and 2.3 (CI 1.6–3.1), respectively. Similar adjusted RRs were found for serotonin reuptake inhibitors, which constituted the majority of the antidepressants. In both THA and TKA the largest adjusted RRs of 2.5 (CI 1.8–3.4) and 2.5 (CI 1.9–3.2) were found for anxiolytics, respectively. Finally, subgroup analyses of hypnotics/sedatives and antipsychotics yielded adjusted RRs similar to any PPT with larger CIs due to smaller sample sizes (Table 2).
The absolute risks of new COU after THA and TKA have decreased since 2016 for patients on both any and no PPT. However, the relative risk of new COU between patients on any and no PPT has been on the same level (Table 3, see Appendix). The absolute risk of new COU after UKA has decreased since 2015 for patients with no PPT. This tendency was not seen for UKA patients on any PPT (Figure 3).

Figure 3. Time trends in absolute risks of new chronic opioid use (COU) for patients in any (red) and no (green) preoperative psychopharmacological treatment stratified by type of surgery.
We aimed to investigate the association between PPTs and new COU after hip and knee arthroplasty in a nationwide setting and showed that patients using PPTs have an almost twofold increased risk of new COU.
A recent narrative review has reported that depression and anxiety are risk factors for prolonged opioid use after hip and knee arthroplasty [7]. Inacio et al. have shown that depression was a risk factor for new COU in 9,122 Australian THA patients with an adjusted odds ratio (OR) of 1.70 (CI 1.20–2.41) defining new COU as 90 days of continuous opioid use or 120 days of non-continuous use [21]. Also, Cancienne et al. reported an OR of prolonged opioid use for depression of 1.32 (CI 1.28–1.36) in 113,337 American TKA patients. Prolonged opioid use was here defined as the filling of an opioid prescription between 3 and 6 months post-surgery [22]. Lastly, Bedard et al. have shown that THA, TKA, and UKA patients with depression/anxiety have a relative risk of COU of 2.2 (CI 2.1–2.4), 2.2 (CI 2.1–2.3), and 2.3 (CI 1.8–2.9) 12 months after surgery, respectively [23-25]. Importantly, both Cancienne et al. and Bedard et al. did not exclude preoperative opioid users from their analyses. Even though these studies used slightly different definitions of COU, their definitions probably produce proportional absolute risks, making their relative outcome measures (e.g., ORs and RRs) comparable to our study. That is, most of these studies have reported relative outcome measures similar to ours. However, the estimate by Cancienne et al. was lower, which is probably explained by different methodologies and populations.
The sub-analysis of anxiolytics in THA and TKA patients yielded the highest RRs of new COU. This is in line with an Australian study of 15,000 patients showing that a history of anxiety increases the risk of COU after initiation [26]. Worryingly, benzodiazepines are associated with a markedly increased risk of death when combined with opioids [27].
Generally, the absolute risks of new COU after THA, TKA, and UKA in our study are decreasing. This is uplifting and a testament that the media attention in 2017 and concurrent regulatory actions by the Danish Health Authority have been fruitful [28]. Since 2018, the number of Danish opioid users has decreased by 12% and the amount of opioids used has decreased by 27%. Additionally, the number of chronic users has decreased by 26%. However, there is still room for improvement as Denmark still has a higher consumption than Sweden [4].
This study used nationwide data with complete data on PPT and new COU. This practically eliminates the problem of selection bias and greatly improves the external and internal validity. All 73,033 eligible primary hip and knee arthroplasties from 2015 to 2022 were included, making this one of the largest studies on PPT and new COU.
Only patients who survived for the first year after surgery could be categorized as new chronic opioid users. Thus, we excluded patients from the analyses who died within the first year, making our results applicable only to first-year survivors. However, the 1-year mortality was low.
We also excluded preoperative opioid users from our study as we were interested in new COU. Future studies may investigate the association between PPT and chronic opioid use after hip and knee arthroplasty in preoperative opioid users. However, the results may be hard to interpret given that preoperative opioid users may use opioids for reasons other than osteoarthritis, e.g., back or shoulder pain, which are not affected by the surgery.
Finally, unmeasured confounders may explain our results even though we adjusted for sex, age, and CCI. To illustrate, Klenø et al. have shown that low education, low wealth, and living alone are associated with analgesic use after THA in Denmark, which would bias our results if low socioeconomic status is also associated with PPT [29]. However, we did not have any data on socioeconomic status. Additionally, serotonin-norepinephrine reuptake inhibitors (SNRIs) and tricyclic antidepressants (TCAs) are also used for pain management, which might confound our results [30].
We found that hip and knee arthroplasty patients using PPTs had an almost twofold increased risk of new COU. Similar results were found for subgroups of PPTs.
In perspective, this study provides the clinician with an easy way to identify patients at increased risk of new COU and subsequently target prevention strategies.