Dreaming of a hospital can not be good news, unless there is a baby being born.
A hospital is usually associated with serious illness, surgery or childbirth.
If you were dreaming of a hospital, a lot would depend on who you saw as the sick person in hospital. If you were the patient, it might mean your body is sick and is trying to tell you to address this problem. If you know you are unwell, you should consult your doctor to confirm this.
If you see someone else as the patient in the hospital, it can mean that person you know is ill, or has a problem. The dream metaphor of being ill, can mean there is a problem.