Electronic health records (EHRs) offer a largely untapped source of information to conduct genetic studies, which could facilitate the investigation of the genetic background of complex diseases and their comorbidities(Wei and Denny, 2015; Wright et al., 2011). EHR may be a particularly valuable data source for disorders like OUD that tend to be underrepresented in the cohort studies that comprise many genetic consortia.