Did your doc ever do any tests to look at the state of your gallbladder? Upper right quadrant pain is often an indication of a gallbladder issue. You may want to ask about doing a GB ultrasound and HIDA scan with CCK injection if the pain truly is in the upper right quadrant. You should also get a blood test that measures your liver enzyme levels and you pancreatic enzyme levels.
GB issues can also result in vomiting and diarrhea.
I asked my doctor if it could be gall bladder and he said my symptoms didn't really match it. At the time I was going to him with pain in my lower right quadrant though, and had 2 CT scans with IV injections, both showing several large lymph nodes in my lower right quadrant. I think he was pretty focused on something reproductive because of that. But now with this sharp pain under my ribs I'm wondering if the lymph nodes are spreading or if it is my gall bladder. I wasn't sure what type of tests to ask for though. I sure do appreciate the advise! I will ask my doctor for these tests and hope we find something out! =)