Asalamulaikum,
الجواب وبالله التوفيق
As per the situation described in your question, for the fasts you will miss due to this condition, you will need to perform qadha(making up at a later time) for them.
(قال تعالی: فمن کان منکم مریضا او علی سفر فعدۃ من ایام اخر (البقرۃ
واللہ اعلم بالصواب
