I am so sorry for what your wife had to go through. At any point did she state that she was a victim of sexual assault and ask if she could go through the medical detector?
Personally, I would have refused to go through without discussing this with authorities first.
Not sure how they could make this a require,ent though.
I hope she will be ok. Prayers to the both of you.