if visa was issued for your wife and she did not enter Qatar yet then it is valid for almost 90 days,
after entry the visit visa is valid for 30 days, then you go for medical check up and extend the visit up to 6 months, but be carefull if the visa is expired the fine will be very high,