Prediction of risk of diabetic retinopathy for all-cause mortality, stroke and heart failure