You have full rights after paying basic pay of notice period.
Instead of fighting with them you can go by another way that on medical ground you are not fight and further you are unable to perform ADL.
ADL=Activity of Daily Living.
So doctor has ask you to take bed rest and for next 6 months to 1 year.
If you want to go legally than as per Indian Constitution company can't force you to work forcefully. Article 21 - Right to Life.
plus you're on probation period than no need to worry about it you can quit company. If you don't want experience certificate and 17 days pay.