Had cardio-thoraccic surgery when I was 30- DAME manual recommended 12 weeks off post-op. I had my Class 1 exactly 12 weeks later and was back in action 2 weeks after that.
Get your DAME and specialists all lined up to keep it to a minimum, then hope nothing goes wrong.