Infections of the genital tract in females or males. They can be caused by endogenous, iatrogenic, or sexually transmitted organisms.