This will be a single-center randomized double blind placebo control clinical trial. In the cohort of patients undergoing primary elective total hip and the cohort of patients undergoing primary elective knee arthroplasty, participants are recruited from those who are willing to consent and participate in the study, and will be randomly 1:1 divided into intervention group and placebo group.
The purpose of this study is to determine the effect of melatonin supplementation on patient sleep quality, length of stay, and opioid consumption following primary, unilateral, elective total hip or knee arthroplasty.