Work environment influences adverse events in an emergency department.