I was in the place last year when I was studying medicine, my suggestion would be to speak to your personal tutor or another member of staff at your university. If you explain your situation then they will give you suggestions on what you should do. If they know about your problems it is unlikely that they will just kick you off the course.
From my experience universities let you re- take the year if you have had health problems. I suggest you let them know as soon as possible because if you don't pass then they may just think you are making the health problems up as an excuse because you failed.