Cardiac devices and end-of-life care