Hospitals are not social venues!! Patients are there because they need acute medial care – they need to sleep, rest and recover.  They are discharged as soon as medically possible, while still needing recovery support – that’s the time to help out.  DO NOT visit unless you are immediate family, or asked to by immediate family, especially if they are not in a private room.  If you’re not personally close enough to help the person you are visiting with toileting, eating, passing gas or cleaning up after these activities, then do not visit! 
Your friend may be OK for a short visit, but others in their room may be too ill to handle the noise of visitors.  Fact: visitors bring all sorts of bacteria/viruses into health care settings and carry a whole bunch out with them.  Why do you want to do this?  Send a card or send flowers when they are home – better yet, drop by with food and help out with care when they are home.  
Do NOT phone or text & expect a response - they are busy as a patient.