Hospital, local palliative care network and public health: how do they involve terminally ill patients?