The comfort of a hug given to a person who is unwell or upset is well recognised. We all need to know that we are "loved", whether by a Group or ln a one to one situation.
Pain is something which needs plenty of loving support, plus physical contact, such as hand holding, or a gentle hug! Just by being close is often enough. Knowing that somebody cares!
If somebody has a positive attitude this will reinforce the healing process, whether given by medical or any other form of treatment.
Everybody comes to the end of their journey of life. Positivity will not cure, but does help the process of "passing" from this existence!
I have not mentioned Religion, as we all have our own ideas on that, and we all have freewill on that subject! 