Data analysis and the relationship between doctors and patients with type-2 diabetes in the treatment process