Methods
T2DM
Based on the Shanghai Link Healthcare Database, patients diagnosed with T2DM and aged 40‐99 years were identified between January 1, 2013 and December 31, 2016 and followed until December 31, 2021. All the patients were randomly allocated into training and validation sets at a 2:1 ratio. Cox proportional hazards models were used to develop the all‐cause mortality risk prediction model. The model performance was evaluated by discrimination (Harrell C‐index) and calibration (calibration plots).