
As far as I know, unless you're a danger to yourself or others - nobody can have you committed. However, some people do benefit from time in the hospital for treatment of self-injury. Think of it as a break away from your lifes problems.
Talk to them, if they know anything about self injury then they know that most people don't do it because they want to kill themselves (suicidal intent) but because they just want to be able to cope.