when they will discharge ur wife after delivery they will give u a vaccination card and discharge paper. then u have to go to national health building next to lulu centre and bring all the paper that u get from hospital, also bring copy qatar id/ passport for u and ur wife. then the birth cert. will be ready after 2 days and u have to pay qr 120. when the birth cert is ready then u have to go to ur embassy to make the new passport, i don`t know how long it will take usually not more than 3 days. with the photo of ur baby of course passport size. after the passport ready u can go to immigration for the visa. my advice pls make soon as possible or u`ll get fine if it`s more than 30 days. good luck