Classification of patient-safety incidents in primary care