Bayesian mixture modeling for classifying electronic health records with applications on diabetic retinopathy prediction