as you have a valid RP ..you can stay out of Qatar for six months and can come back without any hassle...no need for another medical test...just come back before the time frame of six months. You can renew your RP once its expired or even before that.