Prevalence and characteristics in coding, classification and diagnosis of diabetes in primary care