you don't. You let people die in a manner according to their own means without blowing through several hundred thousand of public funds on their way out.
If given the choice of 100k EoL care, or 100k for their grandchildren, most people would choose the latter. Add a layer between and it becomes a prisoners dilemma problem. If you forgo treatment, your children still get billed 99.9k instead of 100k.