Is it allowed for someone who can’t breathe without the help of a respirator which is extremely expensive to choose to not be helped and thus die?

Some of the people who choose to die like this also get the option to get a high dose of morphine as a painkiller.