We repeated the PheWAS analyses after adjusting for SUD and OUD diagnoses (Supplementary Tables 19 and 20). The magnitude of the effects persisted for most traits even though the strength of the association for a few conditions was diminished, particularly when controlling for general SUD.