You can have the baby legally, no problem,your wife will have free heath care at Hamaad.

The problem is though, how can your wife continue to say on a work visa when she is too pregnant to work? She can't stay in the country without sponsorship and you can't sponsor her or your child.

Your child will be able to get a birth certificate but not be able to get an RP without a family visa and so after a few months they will have to leave.