Population and needs-based planning for care at the end of life