Diagnose This

A patient with hematuria, painful urination, and the findings shown here is likely to have a history of which of the following?