And there's two strands there.
A doctor either going 'yeah, it's a reasonable belief that this woman may end up the victim of a rape and impregnation by this male inmate and I need to do something to medically protect her from at least the impregnation part since no one will do much to protect her from a rape and it's mental/physical injuries'
or a doctor going 'I don't agree this woman is at risk of being raped, but my patient's mental distress and belief that she is in danger of a rape being caused by this male inmate is assessed as such that medically I am prepared to alleviate her distress by this treatment'.
Either way.... wtf was a male doing being permitted to cause such distress to a female prisoner in a female prison? Who runs these places? Are they this absolutely devoid of feeling and care for females or are their hands tied from those above so that they are prevented from acting in their female prisoners' interests if it may upset the apple cart of a male's self belief?
Having heard Rhona Hotchkiss speak, I'll guess the second.