Health issues and staying-out-of-the-country period

Speaking of the time per year a person (say, on Professional Visa) is allowed to leave the country: can this period be extended for any reason? Namely, for medical reasons?

I am not sure about the professional visa, but if you opt for an investment or property visa, you may come and go as you please with no restrictions.