The law and mental health: harmonizing objectives