The hospital cannot ban you from the building, especially if it does not own the building.  If you were fired, then that is the relationship that ended but if they have a restraining order against you, then that would be an issue. You should check whatever indication you received that you are banned from the building.  If it is not a court order, continue to go to your doctor and your child's without worry.