Is it inappropriate for a 15 year old to be asked if she's pregnant during an x-ray?

Si & Gary 28/03/2018

After her 15 year old daugther went in for an x-ray, something dawned on this mother. While she was in getting the x-ray done the medical professional asked her if she was pregnant.

It's thought that x-rays can cause harm to unborn babies, so the question would have been medical, but the mum questioned if that was an appropriate question to ask someone of that age.

Si, Gary and team discussed it and all pretty much agreed that the question was fair, but what do you think?