They are diagnosed soon after the birth. The midwife may try to pass a tube though the baby's nose into their stomach and find that it is not possible.