It would be the same as for any hospitalization, such as for a broken bone or an acute infection. I’d stay in close contact with your advisor, who can send notices to your professors about a medically-excused absence. It would be wise to contact your professors yourself, too, when you’re able, in order to arrange ways to make up lost work, get class notes, etc.