End of life planning and medical intervention