living will

noun

1.
a document written by someone still legally capable requesting that they should be allowed to die if subsequently severely disabled or suffering terminal illness