I can't say for sure about TN, but in NC you can usually get unemployment if you leave work due to an adequate heath condition that affects your ability to do your job and your employer has notice of the health condition prior to separation. There could also be an argument that you didn't have any choice but to miss work because of the health condition. If you had no option but to miss the days, there's an argument that the absences shouldn't preclude you from getting unemployment. With that being said, it sounds like there may also be an issue with whether or not you are able and available to work. If you end up filing for unemployment, you should be clear that you are able to work given your health condition, just not in your current position.
In TN, and while I do not agree with it, if you cannot perform your former job duties then, no, you are ineligible for UI Compensation Benefits under T.C.A. 50-7-303(a)(1). You can apply, but you will likely be denied. You have to be released without restriction, return to your former employer, and if they turn you away, then you would be eligible.
I am not your attorney nor is any answer I may provide legal advice. You may contact me directly for legal advice only if you are a resident of Tennessee insofar as I only practice in Tennessee.