Mental health

Can you have someone committed when they're not a danger to themselves or anyone else? But they are super depressed?