Opioid prescribing for postoperative pain management is challenging because of inter-patient variability in opioid response and concern about opioid addiction. Tramadol, hydrocodone, and codeine depend on the cytochrome P450 2D6 (CYP2D6) enzyme for formation of highly potent metabolites. Individuals with reduced or absent CYP2D6 activity (i.e., intermediate metabolizers [IMs] or poor metabolizers [PMs], respectively) have lower concentrations of potent opioid metabolites and potentially inadequate pain control. The primary objective of this prospective, multicenter, randomized pragmatic trial is to determine the effect of postoperative CYP2D6-guided opioid prescribing on pain control and opioid usage. Up to 2020 participants, age ≥8...