Diagnosis typically involves a thorough medical history and physical examination. Healthcare providers may use screening tools such as the CAGE-AID questionnaire or the Opioid Risk Tool (ORT) to assess the risk of opioid dependence. Laboratory tests may also be conducted to identify the presence of opioids in the system.