
Portugal immigration article 122, section 1, sub-paragraph g) – someone’s who suffer from health conditions needing lengthy medical care.
The foreign national will to long medical treatment in Portugal can apply for a residence permit as above mentioned, subject to sufficient proof of medical examination.
source