The objectives were to assess the process of early referral from the emergency department ( ED ) to palliative care for patients with advanced , incurable cancer as part of a randomized controlled trial and to compare the proportion and timing of consultation to a care as usual group .