Welcome to e health forum.
Post Urinary infections, it is common to have intermittent pain on and off. Sometimes infection induced scarring can also be a cause of urine flow obstruction and cause of pain. Other possible causes can be a urinary stone.
In the absence of major signs and symptoms - like - fever, nausea, vomiting, burning micturition, blood in urine , etc , there is no need to be concerned about.
But she should get a repeat urinalysis and urine culture, after completing the course of antibiotics, to confirm the eradication of the urine infection.
A repeat ultrasound or a CT scan can provide more information about the probable cause. Therapy would be based on the exact cause as determined in the scan.
In the mean time, use of over the counter pain medication (eg, ibuprofen, Advil, Motrin) may be helpful. If the pain is not controlled, a stronger medication (narcotic) may be needed
I hope this helps.