When they stop taking their antipsychotic medications which causes them to stop taking their insulin because they have diabetes
or
When they intentionally burn themselves
This is not enough information. Were these the exact answer choices? If so, I don't like the question.
Burn--well if the person knew what they were doing, and they burn themselves for reasons not due to severe mental illness, they can't be held for commitment. Problem is that the choice doesn't specify.
Stop the meds? This too, I feel, is a poor choice because several patients can not be compliant with their medications and still be fine for several months, if not years. Most commitment laws are for the intention of committing someone who is immediately dangerous, not for harm that will likely be experienced months to years down the road.
The real answer (which is likely more than you need to know) is it depends on the laws of the state. Commitment laws have some variability between states, though in general, they are very similar.
In most states, the doctor has to have enough evidence (clear and convincing legal standard, which means there has to be enough evidence to the point where it's true by about 75% or more), that due to a severe mental illness, that the person is dangerous to him/herself, others, or cannot care for him/herself in the community.
(Emphasis on severe: e.g. psychotic disorder, bipolar, major depression).
Wisconson has the criteria that the evidence must be beyond reasonable doubt. That's a smoking gun level which is very difficult to clinically obtain.
NJ has the added criteria that the person can be committed if the person due to mental illness, destroys property.
Ohio has the criteria that a commitable patiant has to have to a disorder of thought, mood, memory, or perception, to the degree that person is dangerous to him/herself, others, cannot care for him/herself, or...and this is important,
due to mental illness will significantly hurt the rights of him/herself or others, or is in need of treatment.
Under the Ohio criteria, you can commit a borderline patient who self-mutilates (though I still know several psychiatrists that would not hold a person for commitment simply because that person is a borderline who self-mutilates). Borderline is not a mood disorder? Yes--to us psychiatrists. The words in the law are based on their use in English, not in psychiatry. Borderline PD is characterized by unstable mood--hence in real English it can be considered a mood disorder.