I don't think a judge has the right to order a child to be vaccinated against a parents wishes. I dont believe the courts should intervene unless there is abuse or neglect involved. This is a matter of choice where the science is not settled. There are many anti-vaccination advocates even within medical circles.
I think it is entirely a parent's decision. I am sure it is made with other precautions in mind to protect the child.
I am sure a Hep B parent would be ultra vigilant if it was their choice not to vaccinate (or to delay vaccination).
My doctor is anti-vax. I'm not but I am grateful for the autonomy to make decisions i believe are in the best interests of my family.