Congenital syphilis causes a child’s teeth to form in a very distinctive way. Dentists are trained to spot this, and then I suppose it becomes a matter of conscience whether or not to tell the patient that their mother had the disease when they were born.
Indeed a matter of conscience and the risk of a lawyer.