Psychiatric referral in the terminally ill patient