I think they have a right to that information, for me that includes details of the pregnancy. Lets not lose sight of the fact the child's medical records first and foremost belong to the child.
Medical records about the pregnancy belong to the mother, not her child. And the mother's medical records first and foremost belong to the mother.
I believe Rh disease is placed on a newborn's medical records. Should the same privacy concerns be used to restrict this information and why/why not? Technically, any harm caused is purely down to maternal biology.
My mother's family lost almost all subsequent babies due to RH disease for several generations. As all firstborns were girls and for whatever reason only those subsequent babies who were female survived, the family had no male children until my uncle was born first. And lucky for me, my mother survived. My brother survived because by that time, treatment was available for a Rh(d) mother with a subsequent RH(D) child.
There's nothing any of my foremothers could have done to prevent these losses. We inherit the Rh genes, behaviour has nothing to do with that. There's also nothing they could have done to stop their bodies producing antibodies that attacked their unborns before the advent of treatment, behaviour has nothing to do with that either.
So while recording a disease the get us develops because of the mother that is not caused by the mother's behaviour but instead by inherited genes and an antibody reaction she has no control over is not an ethical issue at all. But more importantly, recording Rh disease on a baby's record is the recording of a disease the baby suffers itself, hence it belongs on its medical record.
What is at issue with recording the alcohol consumption of the mother during pregnancy is that this is the recording of the behaviour of the mother in the medical record of the child regardless of whether this behaviour had any actual impact on the child.
So these are not the same thing.