It's something that should be discussed prior to the time when making a decision is necessary. There are grey areas, but ultimately it should be spelled out ahead of time. There are things like DNRs for this reason. I for one wouldn't want to keep someone around for that reason - to me, keeping them around in that state would cause more grief.