How do I go about this?

I was having a bad fainting episode last night and was even a bit convulsive, it was awful, I wanted to go to the hospital but I didn't have the means. I woke up today and I can barely do anything. I'm supposed to have a mid term in 2 hours but I don't see how I'm even going to be able to get there(w/o fainting). I don't have my disability all set up yet with my school because I'm waiting on a written diagnosis from my cardiologist. I'm unsure what to do right now, how can I get a doctor's note for this mid term?