Does the doctor have the right? Yes, most definitely, especially for the teens out there that are having unprotected sex because their sex education was lacking from the beginning.
Does it in infringe on our rights? As what exactly? It is our job as parents to openly discuss sex with our children and help them walk down the right avenues when the time comes, if a parent has failed to take this important action, then thank your lucky stars that the doctor thought better of it.
Taking care of children and ensuring they are safe in every aspect of the word and teaching them to be safe is imperative, the education coming from a parent, teacher or doctor shouldn't matter.