Skip to main content
Lippincott Open Access logoLink to Lippincott Open Access
. 2026 Aug 11;37(5):266–276. doi: 10.1097/FBP.0000000000000894

Drug-specific effects of anxiety on high-dose oxycodone: age as a modifier for oxycodone response

Longyue Wang a, Wei Chai b, Bingrong Wang b, Qian Ding b, Ye Chen b, Qin Zheng b, Nan Wang a, Yu Guo b,✉
PMCID: PMC13541607  PMID: 42573405

Abstract

To investigate the association between preoperative anxiety and opioid tolerance in patients undergoing primary hip arthroplasty, focusing on heterogeneity across opioid types and the mechanisms underlying this association, this retrospective cohort study identified 1763 such patients from the Medical Information Mart for Intensive Care IV database. Of these, 198 patients were identified as anxious based on an anxiety diagnosis at admission. Opioid tolerance was assessed by evaluating dosage patterns of morphine, oxycodone, and tramadol. Multivariable logistic regression, Johnson-Neyman, and restricted cubic spline analysis were employed to evaluate the associations and interactions. Transcriptomic data from a rat neuropathic pain model (GSE53897) were used to analyze differential pathways between morphine and oxycodone treatments. Preoperative anxiety was significantly associated with high-dose oxycodone use across model 1 [odds ratio (OR) = 2.025], model 3 (OR = 1.786), and model 4 (OR = 1.679), but not with high-dose morphine or tramadol. Exploratory age analyses revealed that this association exhibited marked age specificity: it persisted only in patients aged less than or equal to 75 years (P < 0.05) and was nonsignificant in those more than 75 years, with effect strength diminishing with increasing age. Mechanistic analysis revealed different gene profiles and enriched biological pathways between morphine and oxycodone treatment groups, suggesting a molecular basis for treatment heterogeneity. In hip arthroplasty patients, preoperative anxiety was an independent risk factor for oxycodone tolerance, and this effect was age-modulated, significant only in patients aged less than or equal to 75 years. Integrating psychological status and age into pain management strategies deserves consideration in clinical practice.

Keywords: anxiety, drug tolerance, hip arthroplasty, oxycodone

Introduction

Hip arthroplasty is considered one of the most significant advancements in modern orthopedic surgery, with approximately 450 000 operations performed annually in the USA, a number rising with the aging population (Kurtz et al., 2007; Knight et al., 2011). While hip arthroplasty provides significant pain relief and functional restoration for patients with advanced arthritis, acute postoperative pain management remains a challenge (Paladini et al., 2023; Kopp-Mulberg and Naik, 2025). Opioids are the mainstay of postoperative analgesia, with 80% of surgical patients receiving opioid medications to manage postoperative pain (Wunsch et al., 2016; Kaya-Akyuzlu, 2024), yet their use presents a paradox: inadequate analgesia vs. adverse effects and long-term dependence risk (Srivastava et al., 2021). In recent years, opioid-sparing strategies have been advocated (Naik et al., 2022), as inadequate perioperative pain management not only impedes early rehabilitation but may also precipitate chronic pain and prolonged opioid use (Perkins and Kehlet, 2000; Joshi and Ogunnaike, 2005; Gan, 2017). Consequently, the precise identification of patient groups with higher postoperative opioid requirements and the formulation of individualized, multimodal analgesic regimens hold significant clinical importance.

Postoperative pain perception and analgesic requirements are influenced by multiple factors, constituting a complex physiological and psychological process (Zheng et al., 2017). Currently, perioperative medicine increasingly emphasizes the holistic ‘bio-psycho-social’ model, wherein the patient’s psychological state, particularly anxiety, is regarded as a significant modifiable factor influencing pain outcomes. Anxiety can lower pain thresholds, prolong pain duration, and thereby exacerbate the postoperative pain experience (Kain et al., 2000; Lindner et al., 2018; Trinh et al., 2021). Although existing research has examined the association between anxiety symptoms (often assessed using tools such as the Hospital Anxiety and Depression Scale) and postoperative pain and opioid consumption (Tapar et al., 2022), anxiety ‘symptoms’ evaluated via single-measure assessments typically exhibit a state-dependent nature with considerable variability. In contrast, ‘anxiety disorders’ diagnosed according to the International Classification of Diseases (ICD) represent a more stable, clinically significant psychiatric entity. Within the specific and large cohort of patients undergoing elective primary hip arthroplasty, the relationship between pre-existing anxiety disorders at admission and postoperative opioid requirements remains under-investigated in large-scale real-world data. Furthermore, different opioid drugs exhibit distinct pharmacological characteristics due to their action on different receptor targets (Kieffer and Gaveriaux-Ruff, 2002). It remains unclear whether a state of anxiety has a differential effect on the analgesic requirements for these drugs in patients undergoing elective primary hip arthroplasty.

To address this gap, this study proposed a retrospective cohort analysis utilizing the large-scale, publicly accessible Medical Information Mart for Intensive Care IV (MIMIC-IV) database to investigate whether clinically diagnosed anxiety disorders serve as an independent factor of early postoperative opioid requirements, and further, whether this association is specific to certain opioid types. This investigation may provide evidence for the routine preoperative mental health screening (particularly for diagnosed or potential anxiety disorders) in patients undergoing hip replacement surgery. This would help perioperative teams identify individuals at high risk for analgesic needs earlier, thereby optimizing perioperative management strategies.

Methods

Study setting and population

This study constitutes a retrospective analysis utilizing data from the MIMIC-IV database, which includes electronic health records of patients hospitalized at the Beth Israel Deaconess Medical Centre (BIDMC), a tertiary academic medical center in Boston, Massachusetts, USA, from 2008 to 2019. All data have undergone deidentification and are publicly available. Researchers can access it after completing human research training and signing a data usage agreement. The Institutional Review Board at BIDMC approved the waiver of informed consent and authorized the sharing of these research resources (Johnson et al., 2023). As a result, this study did not require additional ethical review or patient consent.

Refer to the ICD code for hip arthroplasty as published in the relevant literature (Wang et al., 2025). A total of 2286 patients were identified, with 105 cases of hip arthroplasty revision surgery and 2191 cases of primary hip arthroplasty. To minimize confounding factors such as repeated anesthetic drug use, the analysis focused mainly on primary hip arthroplasty patients (n = 2191). Subsequently, the following patients were excluded: those with dementia (n = 148), malignant tumors (n = 101), severe liver disease (n = 18), severe malnutrition (BMI < 18.5 kg/m2) or morbid obesity (BMI > 40 kg/m2) (n = 112), or in-hospital mortality (n = 14). Finally, this yielded 1763 patients over 25 years of age undergoing primary hip arthroplasty. Furthermore, given the variability in opioid prescribing patterns across patients (eg, some patients received morphine but not oxycodone, and vice versa), no additional exclusions were made for the absence of specific opioid administration records. Instead, each opioid type was analyzed separately using all available data for that particular drug.

Exposure

The primary exposure variable in this research was whether patients received an anxiety disorder diagnosis upon hospital admission. Based on this definition, patients were categorized into an anxiety group and a nonanxiety group. Anxiety diagnoses were based on the ICD codes (ICD-10: F41.1, F41.0, F40.10, F40.2, F06.4 and ICD-9: 300.02, 300.01, 300.23, 300.29, 293.84).

Opioid tolerance

Drug tolerance refers to the reduced effectiveness of a medication and increased pain sensitivity that can occur with long-term or repeated use, often requiring higher doses to achieve the same analgesic effect (Khan and Mehan, 2021). In this study, patients’ tolerance levels were determined by analyzing dosage data for three opioids: morphine, oxycodone, and tramadol. Patients were then categorized based on their dosage levels. Specifically, morphine and tramadol were divided into low- and high-dose groups, while oxycodone, which had a more concentrated dosage distribution, was further divided into low-, mid-, and high-dose groups.

Collected variables

The following variables were collected to control for confounding factors: (a) demographic characteristics: age, BMI, race, marital status, and gender; (b) healthcare coverage and comorbidities: health insurance, diabetes, hypertension, peripheral nerve disorder, perioperative complications, and anemia; (c) health assessment scores: Sequential Organ Failure Assessment at 24 h, Simplified Acute Physiology Score II, Systemic Inflammatory Response Syndrome, Oxford Acute Severity of Illness Score, and Charlson Comorbidity Index; (d) other medications used: warfarin, aspirin, heparin, lorazepam, and vancomycin; (e) surgical-related information: type of hip arthroplasty surgery; (f) hospitalization information: admission type, admission to ICU, and 7-day hospital length of stay; and (g) laboratory parameters: anion gap, blood urea nitrogen (BUN), creatinine, platelets, red blood cell distribution width, and white blood cell count.

Mechanistic exploration

To investigate the potential mechanisms underlying anxiety and differential opioid tolerance at the molecular level, this study utilized transcriptome data from the Gene Expression Omnibus (GEO) database. Given the absence of human transcriptional data related to opioid analgesia within the GEO repository, we selected a rat dataset (GSE53897) as the subject for preliminary mechanistic exploration. This dataset was derived from a study by Thibault et al. (2014), which established a vincristine-induced neuropathic pain model in Sprague–Dawley rats. Neuropathic pain was induced by intraperitoneal injection of vincristine (0.1 mg/kg/day) over two 5-day cycles, followed by intraperitoneal administration of morphine or oxycodone (3.33 mg/kg/day) or saline for 5 consecutive days. L2-L5 dorsal root ganglia were harvested for RNA extraction and microarray analysis. Detailed experimental procedures are available in the original publication (Thibault et al., 2014). To focus on molecular changes related to analgesic effects, this study selected and compared two groups treated with morphine or oxycodone following neuropathic pain induction: the ‘vincristine + morphine’ group and the ‘vincristine + oxycodone’ group, comprising four samples per group for a total of eight samples.

Initially, box plots were created to preliminarily assess heterogeneity among samples. Subsequently, expression data from RNA sequencing underwent log2(X + 1) transformation for standardization. Using the ‘Limma’ package in R, key differentially expressed genes (DEGs) between the two groups were systematically identified based on the screening criteria of an adjusted P value less than 0.05 and |log2(fold change)|(log2 FC) > 0.5. Volcano plots were generated using GraphPad Prism 8 software to visually represent the distribution of DEGs. Finally, Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis and Gene Ontology Biological Processes analysis were performed on the key DEGs. This aimed to elucidate the biological mechanisms underlying the functional heterogeneity of opioid tolerance.

Statistical analysis

For categorical variables, statistical description was performed using counts and composition ratios (percentages). For continuous variables, normality was first assessed using the Shapiro–Wilk test. Where data met normal distribution, description employed mean ± SD; otherwise, median and quartiles were used. For statistical inference, comparisons of categorical variables between groups were performed using χ2 tests. Comparisons of continuous variables between groups were determined based on their distribution: independent samples t tests were used if data were normally distributed with homogeneity of variance; otherwise, the nonparametric Mann–Whitney U test was employed.

Multiple logistic regression models were constructed to investigate the association between anxiety and tolerance to three opioid medications: morphine, oxycodone, and tramadol. Model 1 represented an unadjusted crude model; model 2 adjusted for baseline differences in demographic characteristics; model 3 adjusted for baseline differences in laboratory data; model 4 adjusted for differences in surgery-related factors and other medications. To assess the robustness of our findings against potential unmeasured confounding, we calculated the E-value for each significant association. In addition, Johnson-Neyman analysis was employed to investigate potential interactions between anxiety and other variables on opioid tolerance. The Johnson-Neyman technique is a probing method for interactions between continuous and categorical moderators. Unlike traditional simple slope analysis that arbitrarily selects moderator values, the Johnson-Neyman technique identifies specific threshold values of the continuous moderator at which the effect of the categorical predictor transitions between statistical significance and nonsignificance, thereby providing a more objective and data-driven approach for interaction detection. Restricted cubic spline (RCS) analysis was then used to determine threshold nodes for interaction variables. Following stratification of patients based on this RCS threshold node, further stratified analyses were conducted to investigate the association between anxiety and key opioid tolerance. All statistical analyses were performed using R software and SPSS 26.0, with P < 0.05 indicating statistical significance.

Results

Participant demographics

This study included 1763 patients undergoing primary hip arthroplasty, with a median age of 68.000 years. Among these, 198 patients (11.231%) were diagnosed with anxiety at admission. Comparing baseline characteristics between the anxiety and nonanxiety groups showed differences in age, race, gender, type of hip arthroplasty, lorazepam use, creatinine, and BUN (all P < 0.05). Patients in the anxiety group exhibited a lower age (63.000 vs. 68.000), male proportion (35.859 vs. 45.112%), BUN (15.000 vs. 16.000), and creatinine (0.800 vs. 0.900) than in the nonanxiety group. On the other hand, the anxiety group had a higher proportion of White race patients (87.879 vs. 79.553%), total hip arthroplasty (87.879 vs. 78.850%), and lorazepam use (30.303 vs. 18.530%) than the nonanxiety group (Table 1). Regarding opioid use, no significant differences were observed between groups in the use of morphine or tramadol, nor in their dose groups (low/high dose) (all P > 0.05) (Fig. 1a–d). Although the difference in oxycodone use between the anxiety and nonanxiety groups was marginal (55.556 vs. 48.179%; P = 0.050), a more pronounced difference was observed in oxycodone dosage groups (low/mid/high dose) (P = 0.007) (Fig. 1e and f).

Table 1.

Distribution of participant characteristics

Variables Total (n = 1763) Anxiety P value
No (n = 1565) Yes (n = 198)
Age (years) 68.000 (57.000–78.000) 68.000 (58.000–79.000) 63.000 (55.000–72.000) <0.001
BMI (kg/m2) 27.500 (24.000–31.400) 27.600 (24.000–31.500) 27.200 (23.800–31.000) 0.615
Race, n (%)
 White 1419 (80.488) 1245 (79.553) 174 (87.879) 0.005
 Other 344 (19.512) 320 (20.447) 24 (12.121)
Marital status, n (%)
 Married 797 (45.990) 717 (46.619) 80 (41.026) 0.140
 Other 936 (54.010) 821 (53.381) 115 (58.974)
Gender, n (%)
 Male 777 (44.073) 706 (45.112) 71 (35.859) 0.013
 Female 986 (55.927) 859 (54.888) 127 (64.141)
Health insurance, n (%)
 Medicare 903 (51.220) 800 (51.118) 103 (52.020) 0.811
 Other 860 (48.780) 765 (48.882) 95 (47.980)
ICU, n (%)
 No 1646 (93.364) 1462 (93.419) 184 (92.929) 0.794
 Yes 117 (6.636) 103 (6.581) 14 (7.071)
7 Days LOS, n (%)
 No 1545 (87.635) 1374 (87.796) 171 (86.364) 0.564
 Yes 218 (12.365) 191 (12.204) 27 (13.636)
Type of HA surgery, n (%)
 Total HA 1408 (79.864) 1234 (78.850) 174 (87.879) 0.003
 Partial HA 355 (20.136) 331 (21.150) 24 (12.121)
Admission type, n (%)
 Planned or nonurgent 1164 (66.024) 1025 (65.495) 139 (70.202) 0.188
 Acute or unplanned 599 (33.976) 540 (34.505) 59 (29.798)
Diabetes, n (%)
 No 1433 (81.282) 1268 (81.022) 165 (83.333) 0.432
 Yes 330 (18.718) 297 (18.978) 33 (16.667)
Hypertension, n (%)
 No 880 (49.915) 792 (50.607) 88 (44.444) 0.102
 Yes 883 (50.085) 773 (49.393) 110 (55.556)
Peripheral nerve disorder, n (%)
 No 1669 (94.668) 1483 (94.760) 186 (93.939) 0.628
 Yes 94 (5.332) 82 (5.240) 12 (6.061)
Perioperative complications, n (%)
 No 1624 (92.116) 1448 (92.524) 176 (88.889) 0.074
 Yes 139 (7.884) 117 (7.476) 22 (11.111)
Anemia, n (%)
 No 1173 (66.534) 1042 (66.581) 131 (66.162) 0.906
 Yes 590 (33.466) 523 (33.419) 67 (33.838)
Warfarin, n (%)
 No 1558 (88.372) 1376 (87.923) 182 (91.919) 0.098
 Yes 205 (11.628) 189 (12.077) 16 (8.081)
Aspirin, n (%)
 No 1138 (64.549) 1016 (64.920) 122 (61.616) 0.36
 Yes 625 (35.451) 549 (35.080) 76 (38.384)
Heparin, n (%)
 No 1481 (84.005) 1312 (83.834) 169 (85.354) 0.583
 Yes 282 (15.995) 253 (16.166) 29 (14.646)
Lorazepam, n (%)
 No 1413 (80.147) 1275 (81.470) 138 (69.697) <0.001
 Yes 350 (19.853) 290 (18.530) 60 (30.303)
Vancomycin, n (%)
 No 1491 (84.572) 1327(84.792) 164(82.828) 0.471
 Yes 272 (15.428) 238(15.208) 34(17.172)
AG (mEq/L) 13.000 (11.000–15.000) 13.000 (11.000–15.000) 13.000 (11.000–15.000) 0.585
BUN (mg/dl) 16.000 (12.000–22.000) 16.000 (12.000–22.000) 15.000 (11.000–21.000) 0.042
Creatinine (mg/dl) 0.800 (0.700–1.100) 0.900 (0.700–1.100) 0.800 (0.700–0.900) 0.002
Platelets (K/µl) 202.000 (165.000–247.000) 202.000 (164.000–246.000) 202.000 (171.000–248.000) 0.637
RDW (%) 13.600 (13.000–14.400) 13.600 (13.000–14.400) 13.500 (13.000–14.300) 0.595
WBC (K/µl) 9.900 (7.900–12.500) 9.900 (7.800–12.500) 10.000 (8.100–12.900) 0.198
SOFA-24 h 1.000 (0.000–3.000) 1.000 (0.000–3.000) 1.000 (0.000–2.000) 0.407
SAPSII 36.060 ± 10.812 35.874 ± 10.855 37.429 ± 10.383 0.617
SIRS 3.000 (2.000–3.000) 3.000 (2.000–3.000) 3.000 (2.000–3.000) 0.35
OASIS 30.829 ± 7.253 30.621 ± 7.330 32.357 ± 6.454 0.405
CCI 4.000 (3.000–5.000) 4.000 (3.000–5.000) 4.000 (3.000–5.000) 0.241

AG, anion gap; BUN, blood urea nitrogen; CCI, Charlson Comorbidity Index; HA, hip arthroplasty; LOS, length of stay; OASIS, Oxford Acute Severity of Illness Score; RDW, red blood cell distribution width; SAPSII, Simplified Acute Physiology Score II; SIRS, Systemic Inflammatory Response Syndrome; SOFA-24 h, Sequential Organ Failure Assessment at 24 h; WBC, white blood cell count.

Fig. 1.

Fig. 1

Opioid use between the anxiety and nonanxiety groups. (a) Morphine use. (b) Morphine dose groups. (c) Tramadol use. (d) Tramadol dose groups. (e) Oxycodone use. (f) Oxycodone dose groups.

Association between patient anxiety and opioid tolerance

This study aimed to clarify the link between anxiety and opioid tolerance by systematically evaluating the correlation between patients’ anxiety status and their tolerance to different opioids, while controlling for confounding variables through logistic regression analysis (Table 2). The results indicated that anxiety was consistently not linked to the use of high-dose morphine or tramadol in both unadjusted and adjusted models (all P > 0.05). However, the findings regarding oxycodone use exhibited greater complexity. In models 1, 3, and 4, anxiety was associated with high-dose oxycodone use [model 1: odds ratio (OR) = 2.025, 95% confidence interval (CI): 1.283–3.196, E-value = 3.180; model 3: OR = 1.786, 95% CI: 1.129–2.827, E-value = 2.580; model 4: OR = 1.679, 95% CI: 1.046–2.694, E-value = 2.275]. However, in model 2, which adjusted for demographic characteristics, anxiety was not linked to high-dose oxycodone use (OR = 1.370, 95% CI: 0.838–2.240), suggesting that demographic factors might significantly confound the relationship between anxiety and high-dose oxycodone use.

Table 2.

Results of the logistic regression analysis examining anxiety’s influence on tolerance to different opioids

Model High-dose oxycodone High-dose morphine High-dose tramadol
Model 1 2.025 (1.283–3.196)** 0.715 (0.392–1.304) 0.619 (0.268–1.429)
Model 2 1.370 (0.838–2.240) 0.698 (0.380–1.283) 0.476 (0.195–1.164)
Model 3 1.786 (1.129–2.827)* 0.601 (0.317–1.140) 0.618 (0.263–1.449)
Model 4 1.679 (1.046–2.694)* 0.672 (0.365–1.236) 0.579 (0.247–1.359)

Model 1 was a crude model; model 2 was adjusted for age, gender, and race; model 3 was adjusted for BUN and creatinine; model 4 was adjusted for the type of HA surgery and lorazepam.

BUN, blood urea nitrogen; HA, hip arthroplasty.

*

P < 0.05.

**

P < 0.01.

Age influences the association between anxiety and oxycodone dosage

Regarding the association between anxiety and oxycodone dose, we observed that this relationship disappeared after adjusting for demographic characteristics (particularly age) in model 2. Analysis demonstrated that age was the key confounding factor responsible for this disappearance. The association re-emerged when the age variable was removed from the model (Fig. 2a).

Fig. 2.

Fig. 2

The influence of age on the relationship between anxiety and oxycodone dose. (a) Logistic regression results after excluding age in model 2. (b) JN analysis of age and anxiety. (c) RCS curve for age and high-dose oxycodone. In the JN analysis, gender, race, BUN, creatinine, type of HA surgery, and lorazepam were adjusted. BUN, blood urea nitrogen; CI, confidence interval; HA, hip arthroplasty; JN analysis, Johnson-Neyman analysis; OR, odds ratio; RCS, restricted cubic spline.

Further analysis indicated a significant interaction between age and anxiety in influencing oxycodone dose (interaction OR = 0.959, 95% CI: 0.918–0.998). Full adjustment Johnson-Neyman analysis revealed that age under 50 significantly influenced the association between anxiety and oxycodone dose (Fig. 2b). However, owing to the small sample size (n = 78) with complete data for those under 50 years in this study, including only 12 patients with anxiety, and the division of the dependent variable (oxycodone dosage) into three groups, anxiety patients were sparsely distributed across dosage groups, resulting in insufficient statistical power. As a result, we did not use 50 years as the grouping threshold. To address this, we used RCS analysis to identify age thresholds affecting oxycodone dose. The results indicated 75 years as the critical point for risk change (Fig. 2c). Consequently, we stratified the population using 75 years as the age boundary. The stratified analysis revealed that, among patients aged less than or equal to 75 years, anxiety status was an independent risk factor for oxycodone tolerance (P = 0.042). In patients aged more than 75 years, no significant association was observed between anxiety and oxycodone tolerance (P = 0.102) (Table 3).

Table 3.

Stratified analysis using 75 years as the grouping threshold

Variables Age ≤ 75 Age > 75
OR (95% CI) P value OR (95% CI) P value
BUN 0.988 (0.962–1.014) 0.355 0.993 (0.961–1.025) 0.648
Creatinine 0.823 (0.573–1.182) 0.291 1.021 (0.602–1.731) 0.938
Gender
 Male Reference Reference
 Female 0.793 (0.541–1.161) 0.232 0.624 (0.356–1.096) 0.101
Race
 White Reference Reference
 Other 1.058 (0.674–1.661) 0.806 1.489 (0.761–2.913) 0.245
Type of HA surgery
 Total HA Reference Reference
 Partial HA 0.171 (0.098–0.300) <0.001 0.296 (0.172–0.510) <0.001
Lorazepam
 No Reference Reference
 Yes 1.816 (1.185–2.783) 0.006 0.843 (0.403–1.761) 0.649
Anxiety
 No Reference Reference
 Yes 1.787 (1.020–3.129) 0.042 0.273 (0.058–1.293) 0.102

BUN, blood urea nitrogen; CI, confidence interval; HA, hip arthroplasty; OR, odds ratio.

Subsequently, within the cohort aged 75 years or younger, patients were further grouped into age brackets of less than or equal to 60 years and 5-year increments to investigate the presence of an age gradient effect, thereby enabling more precise identification of the critical window period for the association between anxiety and oxycodone dosage. Fully adjusted logistic regression analysis observed a trend of ‘decreasing OR values with increasing age’, suggesting that the strength of the association between anxiety and oxycodone dose may diminish with advancing age (Fig. 3a). Johnson-Neyman analysis demonstrated changes in OR values for the association between anxiety and oxycodone dose as age increased. This similarly confirmed the trend of declining OR values with increasing age (Fig. 3b).

Fig. 3.

Fig. 3

Effect of anxiety on high-dose oxycodone with age. (a) Age-stratified results. (b) Curve of OR changes in JN analysis. Gender, race, BUN, creatinine, type of HA surgery, and lorazepam were adjusted. BUN, blood urea nitrogen; CI, confidence interval; HA, hip arthroplasty; JN analysis, Johnson-Neyman analysis; OR, odds ratio; RCS, restricted cubic spline.

Exploring mechanisms underlying heterogeneous associations between anxiety and oxycodone dose

The above findings indicated that, among three opioid medications, anxiety was only associated with high-dose oxycodone use. Further exploration of differences in pain responses to oxycodone vs. other opioids (morphine) via the GEO database revealed potential underlying mechanisms. Boxplots showed balanced samples with no noticeable batch effects (Fig. 4a). The ‘limma’ method identified 10 409 DEGs between the oxycodone group and the morphine group (Fig. 4b). Subsequently, key DEGs were filtered based on |log2FC| > 0.5 and P < 0.05, yielding 255 DEGs. KEGG analysis revealed that these 255 DEGs were primarily enriched in the neuroactive ligand signaling pathway and the peroxisome pathway. The biological processes involved mainly comprised positive regulation of the mitogen-activated protein kinase (MAPK) activity, hydrogen peroxide metabolism, and response to interleukin-1 (Table 4).

Fig. 4.

Fig. 4

Batch effects for morphine and oxycodone groups in the GSE53897 dataset (a), and volcano plot of differentially expressed genes (b).

Table 4.

Enriched pathways for 255 key differentially expressed genes

Description P value
KEGG
 Neuroactive ligand signalling 0.001
 Peroxisome 0.002
 Taste transduction 0.003
 Serotonergic synapse 0.014
 GABAergic synapse 0.015
GO-BP
 Positive regulation of MAP kinase activity 0.048
 Hydrogen peroxide metabolic process 0.049
 Response to interleukin-1 0.049
 Positive regulation of protein serine/threonine kinase activity 0.049
 Negative regulation of organelle organisation 0.049

DEG, differentially expressed gene; GABA, gamma aminobutyric acid; GO-BP, Gene Ontology Biological Process; KEGG, Kyoto Encyclopedia of Genes and Genomes; MAP, mitogen-activated protein.

Discussion

This study utilized a large-scale real-world clinical database to systematically investigate, for the first time, the complex association between preoperative anxiety disorder diagnoses and postoperative opioid requirements in patients undergoing primary hip arthroplasty. Key findings can be summarized across three dimensions: First, the association between anxiety disorders and postoperative opioid requirements exhibited marked drug specificity, being independently linked solely to increased oxycodone dose, while showing no relationship with morphine or tramadol. Second, this association was significantly modified by age, exhibiting a clear threshold effect that held only in patients under 75 years. Finally, underlying bioinformatics analyses provided potential neurobiological mechanisms for this specific association. These findings deepen our understanding of perioperative psychophysiological interactions and provide crucial evidence for implementing precise, stratified perioperative analgesia management.

Preoperative anxiety is recognized for increasing the need for anesthesia, delaying recovery, and causing hemodynamic issues, postoperative pain, slower wound healing, higher infection risk, treatment cancelations, extended hospital stays, and dissatisfaction (Baagil et al., 2023). Our study further revealed that anxiety disorders were independently associated with increased postoperative oxycodone dose while showing no significant association with morphine or tramadol use. Opioids primarily exert their effects through corresponding receptors (Amaram-Davila et al., 2020). Three main opioid receptor subtypes exist: the mu receptor (MOR), delta receptor, and kappa receptor (KOR), which share similar physiological functions in regulating motor activity, pain perception, and emotional behavior (Kieffer and Gaveriaux-Ruff, 2002). Although both oxycodone and morphine are potent opioid analgesics, their pharmacological properties differ: oxycodone acts as a dual agonist at MOR and KOR, whereas morphine primarily targets MOR (Tan et al., 2022). KORs are widely distributed throughout the peripheral and central nervous systems, and their activation is frequently associated with chronic pain, addiction, and anxiogenic effects (Snyder et al., 2018; Abraham et al., 2021). Consequently, we hypothesize that patients with anxiety disorders may exhibit altered endogenous KOR system function, leading to a distinct pharmacodynamic response to oxycodone, which possesses KOR agonist activity, manifesting as altered analgesic efficacy or reduced tolerance to adverse effects. Clinically, this ultimately presents as variations in dosage requirements. Tramadol, however, operates through a distinct analgesic pathway owing to its dual mechanism of weak opioid action and serotonin–norepinephrine reuptake inhibition (Webster and Rauck, 2021). This further supports the hypothesis that anxiety exerts highly mechanistically selective effects on analgesic efficacy. Furthermore, studies indicate that oxycodone may alleviate anxiety (Bruijnzeel et al., 2022). Clinically, it is also observed that patients with anxiety disorders are more likely to initiate prescription opioid use, while opioid use may exacerbate the risk of dependence in such patients (Martins et al., 2012), thereby creating a vicious cycle.

Our GEO data analysis provided indirect support for a specific association between anxiety disorders and postoperative oxycodone requirements. The differential response to oxycodone vs. morphine involves positive regulation of MAPK activity, responsiveness to interleukin-1, and peroxisome/hydrogen peroxide metabolic pathways. These pathways collectively highlight neuroinflammation and intracellular signal transduction as a central mechanism. Chronic anxiety states are closely linked to low-grade central nervous system inflammation and increased oxidative stress levels (Bouayed et al., 2009; Guo et al., 2023). At the same time, studies show that the MAPK signaling pathway is associated with anxiety (Amini et al., 2023), serving as a pivotal hub mediating cellular stress, inflammation, and pain sensitization (Ji et al., 2009). More importantly, the MAPK cascade is one of the key downstream branches of KOR signal transduction. KOR agonists can activate the p38 MAPK pathway via a G protein-coupled receptor kinase/arrestin-dependent mechanism; this pathway is a key molecular switch mediating the anxiety- and aversion-inducing effects of KOR (Bruchas and Chavkin, 2010; Zan et al., 2016). In addition to the MAPK-related pathways identified through bioinformatics, previous literature indicates that anxiety-related hypothalamic–pituitary–adrenal axis dysfunction can influence the metabolic clearance and central distribution of oxycodone and morphine by upregulating the expression of hepatic metabolic enzymes via glucocorticoids and modulating P-gp function at the blood-brain barrier (Narang et al., 2008; Daskalopoulos et al., 2012; Bloise and Matthews, 2019). These mechanisms, together with the GEO data, may constitute a multilayered network of mechanisms, providing a multidimensional pharmacological explanation for the differential increase in oxycodone requirements under conditions of anxiety. In summary, these findings offer an insightful hypothetical framework for understanding how anxiety specifically modulates the response to opioids; however, direct validation through further research is still required.

A notable discovery of this research was the significant impact of age on the relationship between anxiety and oxycodone needs. Johnson-Neyman analysis confirmed a significant interaction between age and anxiety, while the RCS model identified 75 years as the critical age threshold. Among patients aged greater than or equal to 75 years, anxiety constituted an independent risk factor for increased oxycodone demand; this association disappeared in those more than 75 years. Subsequent age gradient analysis demonstrated a clear monotonic decline in the OR for anxiety with increasing age, further corroborating the protective modifying effect of age. Neurologically, older adults often have higher pain thresholds and reduced pain sensitivity, which may lead to lower opioid needs (Lautenbacher et al., 2017). Physiologically, aging causes a slowdown in metabolism, requiring smaller drug doses to achieve the same therapeutic effects (Chau et al., 2008). In addition, older adults are more susceptible to comorbidities, polypharmacy, and cognitive changes (Yong et al., 2001; Spitz et al., 2011; Clarke and Bennett, 2013), which can obscure or alter the usual link between anxiety and pain-analgesia responses. Therefore, employing 75 years as a simplified threshold for risk stratification facilitates rapid and effective preoperative assessment in clinical practice: for younger and middle-aged hip arthroplasty patients, preoperative anxiety screening holds high predictive value for analgesic requirements; whereas for elderly patients, management should adopt a more multifaceted approach, necessitating a comprehensive evaluation of their overall physiological status and cognitive function.

The findings of this study have direct clinical translational importance. First, they strongly support routine preoperative anxiety screening in patients under 75 years of age undergoing hip arthroplasty. Identifying individuals with anxiety disorders enables the anaesthesia and analgesia team to pre-emptively flag them as being at high risk for postoperative oxycodone requirements. Second, this shifts analgesic strategies from reactive postoperative management towards proactive preoperative prevention. For high-risk patients, nonopioid multimodal analgesia protocols should be prioritized and intensified, thereby reducing the need for oxycodone exposure at source. Finally, this study provides a targeted rationale for integrating psychological interventions during the perioperative period. However, this study has several limitations: (a) as a retrospective observational study, despite multivariate adjustments, unmeasured confounders (such as pain catastrophizing tendencies, socioeconomic status, and family support) cannot be entirely excluded; (b) the diagnosis of anxiety disorders relied on inpatient ICD codes, potentially overlooking undiagnosed or subclinical anxiety symptoms, introducing a degree of misclassification bias. This bias may be particularly pronounced in elderly patients, who tend to express anxiety through somatic complaints (eg, fatigue, anorexia, and sleep disturbances) rather than psychological symptoms, and in whom cognitive decline may further contribute to underdiagnosis (Lenze et al., 2001). Such nonrandom misclassification could attenuate the observed association in the older age group; (c) opioid dose was based on administration records without direct correlation to patient-reported pain scores, precluding assessment of analgesic adequacy; (d) owing to the absence of critical clinical data in MIMIC-IV (such as pain score changes or breakthrough pain episodes), tolerance classification in this study relied solely on dosage, employing a singular definition that may have overlooked ‘functional tolerance’ (where sufficient dosage yields diminished efficacy); (e) as the MIMIC-IV database primarily records medication use during hospitalization and does not fully capture patients’ long-term history of antianxiety medication before admission, this study did not adjust for this factor, and residual confounding may therefore be present. However, the E-value was calculated in this study, which further supports the robustness of the findings; (f) the literature suggests that the responsiveness to opioids varies depending on the type of pain; neuropathic pain may be less responsive to μ-opioid receptor agonists such as morphine than inflammatory pain (Labuz and Machelska, 2013). Although oxycodone is a μ-receptor agonist, it also exhibits KOR agonist activity (Tan et al., 2022). Studies in models of postoperative incisional pain have shown that KOR agonists can effectively block thermal allodynia and mechanotouch-induced pain without causing respiratory depression (Field et al., 1999), suggesting that KOR-mediated analgesic effects are highly context-dependent. The GEO data analysis originated from a vincristine-induced neuropathic pain rat model, which is different to some extent in its pathophysiological mechanisms from the acute postsurgical pain present in the central joint replacement cohort of this study. We therefore caution against direct extrapolation to postoperative scenarios and view this analysis primarily as hypothesis-generating rather than mechanistically conclusive. Future prospective studies combining standardized psychological assessment tools and neurobiological biomarkers are required to validate these findings across broader surgical populations and elucidate underlying molecular mechanisms.

Conclusion

This study demonstrated that preoperative anxiety disorders constituted an independent factor of increased postoperative oxycodone requirements, with this association exhibiting drug specificity. Age emerged as a critical effect modifier, with 75 years serving as a significant threshold for risk stratification. These findings not only enriched the ‘bio-psycho-social’ model of perioperative pain management but also advocate for individualized analgesic strategies stratified by age and psychological characteristics. By identifying high-risk individuals preoperatively and implementing enhanced multimodal analgesia alongside psychological support, it is anticipated that effective pain control can be achieved while minimizing opioid-related risks, thereby advancing accelerated recovery surgery and improving overall patient outcomes.

Acknowledgements

L.W. contributed to the conception and design. L.W., W.C., and B.W. contributed to the collection and assembly of data. Y.G., Q.D., Y.C., and Q.Z. analyzed and interpreted the data. All authors wrote and approved the final manuscript.

The Ethics Committee of Xi’an No.9 Hospital deemed that this research is based on open-source data, so the need for ethics approval was waived.

The datasets generated during and analyzed during the current study are available from the corresponding author on reasonable request.

Conflicts of interest

There are no conflicts of interest.

References

  1. Abraham AD, Casello SM, Schattauer SS, Wong BA, Mizuno GO, Mahe K, et al. (2021). Release of endogenous dynorphin opioids in the prefrontal cortex disrupts cognition. Neuropsychopharmacology 46:2330–2339. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Amaram-Davila J, Davis M, Reddy A. (2020). Opioids and cancer mortality. Curr Treat Options Oncol 21:22. [DOI] [PubMed] [Google Scholar]
  3. Amini J, Beyer C, Zendedel A, Sanadgol N. (2023). MAPK is a mutual pathway targeted by anxiety-related miRNAs, and E2F5: is a putative target for anxiolytic miRNAs. Biomolecules 13:544. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Baagil H, Baagil H, Gerbershagen MU. (2023). Preoperative anxiety impact on anesthetic and analgesic use. Medicina (Kaunas) 59:2069. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Bloise E, Matthews SG. (2019). Multidrug resistance P-glycoprotein (P-gp), glucocorticoids, and the stress response. In: Fink G, editor. Stress: physiology, biochemistry, and pathology. Academic Press. pp. 227–241. [Google Scholar]
  6. Bouayed J, Rammal H, Soulimani R. (2009). Oxidative stress and anxiety: relationship and cellular pathways. Oxid Med Cell Longev 2:63–67. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Bruchas MR, Chavkin C. (2010). Kinase cascades and ligand-directed signaling at the kappa opioid receptor. Psychopharmacology (Berl) 210:137–147. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Bruijnzeel AW, Behnood-Rod A, Malphurs W, Chellian R, Caudle RM, Febo M, et al. (2022). Oxycodone decreases anxiety-like behavior in the elevated plus-maze test in male and female rats. Behav Pharmacol 33:418–426. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Chau DL, Walker V, Pai L, Cho LM. (2008). Opiates and elderly: use and side effects. Clin Interv Aging 3:273–278. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Clarke LH, Bennett E. (2013). ‘You learn to live with all the things that are wrong with you’: gender and the experience of multiple chronic conditions in later life. Ageing Soc 33:342–360. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Daskalopoulos EP, Malliou F, Rentesi G, Marselos M, Lang MA, Konstandi M. (2012). Stress is a critical player in CYP3A, CYP2C, and CYP2D regulation: role of adrenergic receptor signaling pathways. Am J Physiol Endocrinol Metab 303:E40–E54. [DOI] [PubMed] [Google Scholar]
  12. Field MJ, Carnell AJ, Gonzalez MI, McCleary S, Oles RJ, Smith R, et al. (1999). Enadoline, a selective kappa-opioid receptor agonist shows potent antihyperalgesic and antiallodynic actions in a rat model of surgical pain. Pain 80:383–389. [DOI] [PubMed] [Google Scholar]
  13. Gan TJ. (2017). Poorly controlled postoperative pain: prevalence, consequences, and prevention. J Pain Res 10:2287–2298. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Guo B, Zhang M, Hao W, Wang Y, Zhang T, Liu C. (2023). Neuroinflammation mechanisms of neuromodulation therapies for anxiety and depression. Transl Psychiatry 13:5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Ji RR, Gereau RW, Malcangio M, Strichartz GR. (2009). MAP kinase and pain. Brain Res Rev 60:135–148. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Johnson AEW, Bulgarelli L, Shen L, Gayles A, Shammout A, Horng S, et al. (2023). MIMIC-IV, a freely accessible electronic health record dataset. Sci Data 10:1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Joshi GP, Ogunnaike BO. (2005). Consequences of inadequate postoperative pain relief and chronic persistent postoperative pain. Anesthesiol Clin North Am 23:21–36. [DOI] [PubMed] [Google Scholar]
  18. Kain ZN, Sevarino F, Alexander GM, Pincus S, Mayes LC. (2000). Preoperative anxiety and postoperative pain in women undergoing hysterectomy. A repeated-measures design. J Psychosom Res 49:417–422. [DOI] [PubMed] [Google Scholar]
  19. Kaya-Akyuzlu D. (2024). Personalized medicine and opioid use disorder. World J Psychiatry 14:1285–1288. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Khan F, Mehan A. (2021). Addressing opioid tolerance and opioid-induced hypersensitivity: recent developments and future therapeutic strategies. Pharmacol Res Perspect 9:e00789. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Kieffer BL, Gaveriaux-Ruff C. (2002). Exploring the opioid system by gene knockout. Prog Neurobiol 66:285–306. [DOI] [PubMed] [Google Scholar]
  22. Knight SR, Aujla R, Biswas SP. (2011). Total hip arthroplasty – over 100 years of operative history. Orthop Rev (Pavia) 3:e16. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Kopp-Mulberg FE, Naik H. (2025). Arthritis: knee and hip arthroplasty. FP Essent 548:13–17. [PubMed] [Google Scholar]
  24. Kurtz S, Ong K, Lau E, Mowat F, Halpern M. (2007). Projections of primary and revision hip and knee arthroplasty in the United States from 2005 to 2030. J Bone Joint Surg Am 89:780–785. [DOI] [PubMed] [Google Scholar]
  25. Labuz D, Machelska H. (2013). Stronger antinociceptive efficacy of opioids at the injured nerve trunk than at its peripheral terminals in neuropathic pain. J Pharmacol Exp Ther 346:535–544. [DOI] [PubMed] [Google Scholar]
  26. Lautenbacher S, Peters JH, Heesen M, Scheel J, Kunz M. (2017). Age changes in pain perception: a systematic-review and meta-analysis of age effects on pain and tolerance thresholds. Neurosci Biobehav Rev 75:104–113. [DOI] [PubMed] [Google Scholar]
  27. Lenze EJ, Rogers JC, Martire LM, Mulsant BH, Rollman BL, Dew MA, et al. (2001). The association of late-life depression and anxiety with physical disability: a review of the literature and prospectus for future research. Am J Geriatr Psychiatry 9:113–135. [PubMed] [Google Scholar]
  28. Lindner M, Nosseir O, Keller-Pliessnig A, Teigelack P, Teufel M, Tagay S. (2018). Psychosocial predictors for outcome after total joint arthroplasty: a prospective comparison of hip and knee arthroplasty. BMC Musculoskelet Disord 19:159. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Martins SS, Fenton MC, Keyes KM, Blanco C, Zhu H, Storr CL. (2012). Mood and anxiety disorders and their association with non-medical prescription opioid use and prescription opioid-use disorder: longitudinal evidence from the National Epidemiologic Study on Alcohol and Related Conditions. Psychol Med 42:1261–1272. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Naik BI, Kuck K, Saager L, Kheterpal S, Domino KB, Posner KL, et al. ; MPOG EOS Investigator Group (2022). Practice patterns and variability in intraoperative opioid utilization: a report from the multicenter perioperative outcomes group. Anesth Analg 134:8–17. [DOI] [PubMed] [Google Scholar]
  31. Narang VS, Fraga C, Kumar N, Shen J, Throm S, Stewart CF, Waters CM. (2008). Dexamethasone increases expression and activity of multidrug resistance transporters at the rat blood-brain barrier. Am J Physiol Cell Physiol 295:C440–C450. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Paladini A, Rawal N, Coca Martinez M, Trifa M, Montero A, Pergolizzi J, Jr, et al. (2023). Advances in the management of acute postsurgical pain: a review. Cureus 15:e42974. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Perkins FM, Kehlet H. (2000). Chronic pain as an outcome of surgery. A review of predictive factors. Anesthesiology 93:1123–1133. [DOI] [PubMed] [Google Scholar]
  34. Snyder LM, Chiang MC, Loeza-Alcocer E, Omori Y, Hachisuka J, Sheahan TD, et al. (2018). Kappa opioid receptor distribution and function in primary afferents. Neuron 99:1274–1288.e6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Spitz A, Moore AA, Papaleontiou M, Granieri E, Turner BJ, Reid MC. (2011). Primary care providers’ perspective on prescribing opioids to older adults with chronic non-cancer pain: a qualitative study. BMC Geriatr 11:35. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Srivastava D, Hill S, Carty S, Rockett M, Bastable R, Knaggs R, et al. (2021). Surgery and opioids: evidence-based expert consensus guidelines on the perioperative use of opioids in the United Kingdom. Br J Anaesth 126:1208–1216. [DOI] [PubMed] [Google Scholar]
  37. Tan M, Wang H, Gao C, Jiang Z, Yin Y, Xing R, et al. (2022). Agonists specific for kappa-opioid receptor induces apoptosis of hcc cells through enhanced endoplasmic reticulum stress. Front Oncol 12:844214. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Tapar H, Ozsoy Z, Balta MG, Dasiran F, Tapar GG, Karaman T. (2022). Associations between postoperative analgesic consumption and distress tolerance, anxiety, depression, and pain catastrophizing: a prospective observational study. Braz J Anesthesiol 72:567–573. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Thibault K, Calvino B, Rivals I, Marchand F, Dubacq S, McMahon SB, Pezet S. (2014). Molecular mechanisms underlying the enhanced analgesic effect of oxycodone compared to morphine in chemotherapy-induced neuropathic pain. PLoS One 9:e91297. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Trinh JQ, Carender CN, An Q, Noiseux NO, Otero JE, Brown TS. (2021). Resilience and depression influence clinical outcomes following primary total joint arthroplasty. J Arthroplasty 36:1520–1526. [DOI] [PubMed] [Google Scholar]
  41. Wang G, Xie Y, Bai X, Zhang Y, Guo J. (2025). Development and validation comparison of multiple models for perioperative neurocognitive disorders during hip arthroplasty. Sci Rep 15:9393. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Webster L, Rauck RL. (2021). Atypical opioids and their effect on respiratory drive. J Opioid Manag 17:109–118. [DOI] [PubMed] [Google Scholar]
  43. Wunsch H, Wijeysundera DN, Passarella MA, Neuman MD. (2016). Opioids prescribed after low-risk surgical procedures in the United States, 2004-2012. JAMA 315:1654–1657. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Yong HH, Gibson SJ, Horne DJ, Helme RD. (2001). Development of a pain attitudes questionnaire to assess stoicism and cautiousness for possible age differences. J Gerontol B Psychol Sci Soc Sci 56:P279–P284. [DOI] [PubMed] [Google Scholar]
  45. Zan GY, Wang Q, Wang YJ, Chen JC, Wu X, Yang CH, et al. (2016). p38 Mitogen-activated protein kinase activation in amygdala mediates kappa opioid receptor agonist U50,488H-induced conditioned place aversion. Neuroscience 320:122–128. [DOI] [PubMed] [Google Scholar]
  46. Zheng H, Schnabel A, Yahiaoui-Doktor M, Meissner W, Van Aken H, Zahn P, Pogatzki-Zahn E. (2017). Age and preoperative pain are major confounders for sex differences in postoperative pain outcome: a prospective database analysis. PLoS One 12:e0178659. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Behavioural Pharmacology are provided here courtesy of Wolters Kluwer Health

RESOURCES