What ethical and legal considerations arise in deciding to withdraw life-sustaining treatment for patients in India?

The Supreme Court is considering a plea about withdrawing life-sustaining treatment. I want to understand the ethical dilemmas and legal frameworks involved in making such sensitive decisions in the Indian context.