Medication errors are often preventable in hospitals