Evaluating the capacity to work of the mentally ill.