Dear
Anyone can stay outside Qatar more than 6 months as long as their RP is still valid till that period. that means if she is expecting to come back on may 2017 her RP should have validity till June/ July 2017 or more.

Before she enters Doha you should get return visa by paying QAR. 500/- which she should bring upon arrival.