The condition described requires a full work-up of the genitourinary system. The whole process can usually be completed within a week. Do consult the relevant specialist for details.
Repeated attacks of the said condition require a complete work-up including urinalysis with particular attention to the red blood cells, imaging of the upper tract and endoscopic examination of the lower tract. The rationale for the above would be elaborated by the appropriate specialist.