It’s a brilliant idea if something is done with the information. As it is now, the government often knows that individuals are illegal and does nothing about it.
Also, I don’t see how this stops anchor babies. The hospital notes that the parents are illegal, refers the list to the government, which does nothing about it. The baby is still, by the politically motivated misinterpretation of the 14th amendment, considered to be a US citizen.
Sux to be us.
Not until it's born.
Until then, it's just a tissue mass, like a mole.