I think that your question is: People say that hard work is important but if any one works hard and at exam time he/she is sick then what happens?
Here - there is a process called an 'aegrotat'. You can apply to be graded based on your work during the year. You usually have to supply a doctor's certificate.