Medication errors can occur due to both human error and system errors healthcare