To determine the risk of prolonged opioid use in patients receiving tramadol compared with other short acting opioids. Opioid-naive patients undergoing elective surgery. Risk of persistent opioid use after discharge for patients treated with tramadol alone compared with other short acting opioids, using three commonly used definitions of prolonged opioid use from the literature: additional opioid use (defined as at least one opioid fill 90-180 days after surgery); persistent opioid use (any span of opioid use starting in the 180 days after surgery and lasting ≥90 days); and CONSORT definition (an opioid use episode starting in the 180 days after surgery that spans ≥90 days and includes either ≥10 opioid fills or ≥120 days’ supply of opioids).