Making advanced decisions about treatment at a time when you are unable to communicate, and the circumstances in which you don't want to be resuscitated, is often known as a Living Will.

https://www.ageuk.org.uk/information...nce-decisions/