Patients, especially surgical patients, understand we have to have contact with them to heal them, so that's acceptable. Hugging, especially if someone is really going through a hard time with their care, is appropriate if it's done in the right context.