Basic human right. Actualy, suicide is basic human right. You don't need to be sick and dying in pain.
I don't know what is the situation where you live because I don't know where you live but in my country
(France) it is not considered as a basic human right.
You can be legally being committed in a psychiatric facility if you try to suicide yourself in France or if you say you want to suicide yourself.
If you try to suicide yourself you will be considered as a person in
"Péril imminent" (Imminent danger) and people in
"Péril imminent" can be involuntary committed.
For those who can read French I advise them to read articles L3211-1 to L3251-6 and R3211-1 to R3225-1 of
"Code de la santé publique" (Public Health Code) to know the basis about involuntary commitment in France.