Relationship between medication errors and adverse drug events