Effects of work environments on nurse and patient outcomes.