I think you will need to write a formal resignation letter and give them your notice. You will have to ‘work’ your notice, whether that is completely taken through sick leave or part sick leave and part working, depending on your health and what doctors note you have for that. If you want to leave immediately, you could request that but the company may not allow it.