Anticipating the need for palliative care