How would the nurse acts on those scenario considering the information about Professional Boundaries and the Code of Ethics?

I have a scenario like giving extra time with a client, decided to give a client or family member a hug; I may have had a Facebook friend request from a client or family member or you may have considered doing a personal favour to help a client. How would the nurse acts on those scenario considering the information about Professional Boundaries and the Code of Ethics?