Hi,
you can go to gharaffa immigration and get exit visa for the baby.if u want to bring the baby back to qatar u can bring him on arrival visa then u can apply for ID.The same I did for my baby