Risk of Opioid-Related Adverse Events After Primary and Revision Total Knee Arthroplasty.