RecruitingBehavioural interventionMachine-Learning Prediction and Reducing Overdoses With EHR NudgesThe goal of this cluster randomized clinical trial is to test a clinician-targeted behavioral nudge intervention in the Electronic Health Record (EHR) for patients who are identified by a machine-learning based risk prediction model as having an elevated risk for an opioid overdose. The clinical trial will evaluate the effectiveness of providing a flag in the EHR to identify individuals at elevated risk with and without behavioral nudges/best practice alerts (BPAs) as compared to usual care by primary care clinicians. The primary goals of the study are to improve opioid prescribing safety and reduce overdose risk.