Regardless whether you took time off because your doctor told you to or because you felt like going swimming, if you were not working, your employer has no responsibility to pay you.  You should explore, with your doctor, your options under short-term disability (if available) and FMLA.