True Link Financial offers a debit card with spending controls expressly designed for people with dementia, other cognitive deficits or addiction issues.
Don't use your 401(k) to pay medical bills, if you are close to death, then you can safely ignore most medical bills.