“…Psychotic disorders (yes, no), diabetes mellitus (yes, no), and HIV viral load suppression (yes, no, unknown) were measured as categorical time-varying variables at the beginning of each new OAT episode. Psychotic disorders were determined based on one applicable hospitalization (DAD) or two healthcare encounters (MSP) within a twelve-month period using specific diagnostic codes, as previously described ( Yazdani et al, 2022 , Chronic Disease Information Working Group, 2018 ). Diabetes mellitus was identified based on various criteria, including hospitalizations (DAD), healthcare encounters (MSP), insulin, and oral antihyperglycemic prescriptions (PharmaNet), all within a twelve-month period ( Chronic Disease Information Working Group, 2018 ).…”