Lower right flank pain

I’m quite worried as to what it might be, when i move my abdomen/pelvic area i can feel the pain and it feels almost like a soreness. For example if i adjust myself in bed or move my right thigh i can feel the pain as well, i keep thinking the worst and feel like this might end up with me in the hospital again, any advice is appreciated!