Visiting patient as a doctor

Hello, found out a close family friend has been admitted to the hospital I work at. Is there any issues with me quickly visiting her before I start work or will I have to adhere to the regular visiting hours etc.?