AIP and autoimmune pancreatitis: Our study elucidated the association between the risk of DR and AIP in patients with T2DM, and changes in AIP levels were correlated with the risk of DR.