Hi, Hannah -- welcome to ATAR Notes!
Whether you can pass your school's attendance requirements is up to the school -- it varies from place to place. For VCAA, however, I think it is best I just quote the
Administrative Handbook When a student is absent from school for prolonged periods, or has been unable to complete all assessment tasks because of illness or other special circumstances, the school may, upon application from the student, grant Special Provision for School-based Assessments. In this case, the student should not be penalised for lack of attendance. The Special Provision granted may allow a student to work from home for a period of time. Schoolsshould ensure they retain documentation about any decisions relating to granting provisions for School-based Assessment, including supporting evidence.So, talk to your school and talk to your doctor

Good luck.