once you get visit visa then come to Qatar and do the medical test, after that you can extend it up to 6 months but not at one go.

Regards,
Hassan