The wizarding community were rather old-fashioned in their approach to sex. They had potions to prevent pregnancy, and there were emergency contraceptive Charms that most people learnt in seventh year, but nothing that gave a woman freedom from her period. Ginny had been ecstatic to hear about it, and insisted Harry escort her to a Muggle doctor to get a prescription. At least in the wizarding world STIs weren't a problem– those were easily sorted out with charms or potions on the rare occasions that was needed.