We have just been through this. The baby should get a temporary visa on entry. Then you have to apply for residency (they need a stamped medical commission form plus blood type as well as passport). If the baby isn't born here you cannot apply for residency until they are three months old.