Categorization and association analysis of risk factors for adverse drug events