Analysis of diabetic patients through their examination history