Thanks for writing your query.
After reading your post, it seems that your pain can be due to renal colic
Following investigations may be helpful :-
1. Complete Blood Count(CBC).
3. Urine examination(Routine/Microscopic and Culture/Sensitivity).
You should drink lots of water daily.
You can continue with the medications prescribed by your doctor.
I hope this is helpful to you.