Methods and compositions disclosed herein generally relate to methods of improving clinical and economic outcomes to address adverse effects related to anesthesia, analgesics, opioids, and inadequate pain relief. Embodiments of the invention relate to the association between genes, specific polymorphisms of genes, and non-genetic factors with inadequate pain relief and anesthesia-, analgesic, and / or opioid-related adverse effects. Embodiments of the invention can be used to determine and manage patient risk factors for development of adverse perioperative effects and can allow for personalized anesthesia and pain management for improvement of pain control and reduction of anesthesia-, analgesic-, and opioid-related adverse outcomes. These methods and compositions apply to non-surgical pain management with opioids. Therefore, patients who are genetically predisposed to risk of inadequate pain relief and / or serious side effects from anesthesia, analgesics, and / or opioids can be identified and individualized treatment plans developed for implementation by the clinician to improve clinical and economic outcomes.