Urinary retention is not the same as dysuria and cannot be used to meet the UTI definition.  Dysuria is defined as painful or uncomfortable urination.