I would ask your primary care provider if they could do an ultrasound to see if you have any kidney stones in the right side. From experience, people with flank pain usually have a kidney stone on that side. They can rule it out and then go from there.