First, a woman chooses in the first trimester whether or not to carry a pregnancy to term, then if someone murders her they have taken her life as well as the life of the unborn.
When a woman chooses to carry a baby to term and then also chooses not to have herself tested for HIV in the third trimester, she is putting the child she chose to have, at a much higher risk unnecessarily.
I agree that HIV testing of the mother is in the best interests of the unborn baby, but is it an unborn baby or just a part of the mother's body? In the third trimester, the most recent rulings of the Supreme Court seem to lean towards calling it an unborn baby by allowing bans on late term abortions to stand in many states.
The point is that if the third trimester fetus is considered an unborn baby, then the state arguably has the right to require HIV testing for the sake of this baby, but then it would also have the right to ban abortions for the sake of this baby. On the other hand, if the third trimester fetus is considered a part of the woman's body and not a separate human being, as Roe v. Wade held, then the state has no right to violate the woman's right to privacy that the Supreme Court has divined from the fourth amendment by requiring HIV testing, but it also has no right to limit abortions.
It gets even more interesting. If the state's interest in protecting the health and welfare of the unborn baby takes precedence over the woman's right to privacy in the instance of requiring HIV testing, then might the state not also prosecute a woman who gets drunk or smokes in the third trimester for endangering the welfare of a child?
Moreover, since the argument the Court used to allow bans on late term abortions stand was that the increasing viability of the fetus strengthens the argument that it is a separate human being and not a part of the woman's body, as technological advances make the fetus viable at earlier and earlier stages, the window for abortions will likely become smaller and smaller, and if this bill passes and withstands the test of constitutionality, won't the state, some states anyway, use it as a justification for requiring pregnant women to do other things, like get regular medical check ups, accept medical treatments they might not want, eat right and exercise, for the sake of the unborn baby's health and welfare and also to limit activities that might be harmful to the health and welfare of the unborn baby?