The Scottish government is being urged to embed a right to palliative care into law following the assisted dying debate.