That is often called a ‘no code’. The Church does allow us to allow loved ones to die naturally without using extraordinary means to keep them alive that would only make them miserable.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.