I was hospitalised when my son was 6 months old and exclusively BFing. My son couldn't stay with me but after a bit of negotiation my son was allowed to come in any time and nurse. He couldn't spend all day in there, but he was able to pop in and out throughout the day.
When my son was hospitalised one parent was allowed to stay.
Both times this was in a public hospital.