Epic Research is not viewable using Internet Explorer. Please try accessing it with an alternate browser.
Cosmos Study

Short-Term Post-Op Opioids Associated with Better Early Functional Recovery After Hip Replacement, Less so for Knee Replacement

April 28, 2026
Dual-Team Study
Team A:Kersten Bartelt, RNNicholas Volker
Team B:Blaine Franklin, PT, DPTEric Barkley

Key Findings

  • Patients who received a short-term opioid prescription within seven days of a hip replacement surgery had a slightly higher proportion of top-tier functional scores at three months (69.8%) compared to those who did not receive opioids (59.3%).
  • After knee replacement, three-month functional scores were similar between groups, with 35.5% of opioid-prescribed patients and 31.4% of those without opioids scoring in the top-tier.
  • The hip replacement and knee replacement groups both improved substantially following surgery regardless of opioid prescription status: the share of patients with the worst functional scores dropped from as high as 19.1% before surgery to 2–4% at three months.

Hip and knee replacements, formally known as total hip arthroplasty (THA) and total knee arthroplasty (TKA), are commonly performed surgical procedures intended to relieve pain and restore functional ability by replacing damaged joint surfaces. Recovery typically involves physical therapy and pain management. Opioid prescriptions have historically been a cornerstone of acute postoperative pain management following joint replacement, though their role has come under increasing scrutiny amid broader concerns about opioid-related harms.1 Prior research has demonstrated that preoperative opioid use is associated with worse patient-reported outcomes following arthroplasty, including lower functional scores, longer hospital stays, and higher rates of persistent opioid use.2 However, less is known about the relationship between short-term postoperative opioid prescriptions and functional recovery as measured by validated patient-reported outcome instruments. The Hip Disability and Osteoarthritis Outcome Score for Joint Replacement (HOOS, JR)3 and Knee Injury and Osteoarthritis Outcome Score for Joint Replacement (KOOS, JR)4 are widely endorsed outcome measures for THA and TKA, respectively, with scores ranging from 0 (extreme disability) to 100 (no limitations).

To understand the relationship between opioid prescriptions and functional recovery after joint arthroplasty, we studied 1,296 adults who underwent THA and 1,960 adults who underwent TKA between January 2022 and January 2025 with recorded baseline and follow-up scores. We excluded patients who had active opioid prescriptions beyond 30 days after surgery, underwent revision surgery or bilateral same-day procedures, or had another arthroplasty before the follow-up score was obtained. Patients who received a short-term opioid prescription were matched with those who did not receive an opioid prescription based on surgery type and baseline functional score. Because of this, both groups started with identical score profiles.

Three months after hip replacement surgery, both those who received short-term opioids and those who received no opioids showed substantial improvement. Among patients who received an opioid prescription, 69.8% scored 70 or greater at three months, compared to 59.3% of patients who did not receive opioids. The opioid group also had fewer patients remaining in the lowest-scoring range at three months (1.5% vs. 3.7%).

Figure 1
HOOS, JR Score Distribution
HOOS, JR Score Distribution
Figure 1. The distribution of HOOS, JR scores among patients who underwent THA at baseline and three months after surgery by whether they received a short-term opioid prescription.

A similar but more modest pattern emerged among knee replacement patients. The proportion reaching scores of 70 or greater was comparable between groups: 35.5% among patients who received opioids and 31.4% among those who did not. Both groups saw sharp reductions in the share of patients with the worst functional scores, dropping from about 10% before surgery to under 3% at three months.

Figure 2
KOOS, JR Score Distribution
KOOS, JR Score Distribution
Figure 2. The distribution of KOOS, JR scores among patients who underwent TKA at baseline and three months after surgery by whether they received an opioid prescription.

These data come from Cosmos, a dataset created in collaboration with a community of Epic health systems representing more than 300 million patient records from 2,000 hospitals and more than 47,000 clinics from all 50 U.S. states, Canada, Lebanon, and Saudi Arabia. This study was completed by two teams that worked independently, each composed of a clinician and research scientists. The two teams came to similar conclusions. Graphics by Brian Olson.

References

  1. Hannon CP, Fillingham YA, Hamilton WG, Della Valle CJ. Multimodal Analgesia and Anesthesia: Enabling Safe and Rapid Recovery for Total Joint Arthroplasty Patients. J Arthroplasty. 2022;37(9):1669-1670. doi:10.1016/j.arth.2022.07.016
  2. Goplen CM, Verbeek W, Kang SH, et al. Preoperative opioid use is associated with worse patient outcomes after Total joint arthroplasty: a systematic review and meta-analysis. BMC Musculoskelet Disord. 2019;20(1):234. Published 2019 May 18. doi:10.1186/s12891-019-2619-8
  3. Lyman S, Lee YY, Franklin PD, Li W, Mayman DJ, Padgett DE. Validation of the HOOS, JR: a short-form Hip Replacement Survey. Clin Orthop Relat Res. 2016;474(6):1472-1482.
  4. Lyman S, Lee YY, Franklin PD, Li W, Cross MB, Padgett DE. Validation of the KOOS, JR: a short-form Knee Arthroplasty Outcomes Survey. Clin Orthop Relat Res. 2016;474(6):1461-1471.

Data Definitions

Study period
Study population: inclusion
Study population: exclusion
Exposures
Outcomes
Arthroplasty surgery
Matching
Opioids
Total knee arthroplasty
Total hip arthroplasty
Revision Definition
Face-to-face encounter
International considerations
Model specifications