Role of advance directives in palliative care units: a prospective study