I agree with Margypops, sounds like a gallbladder problem to me. I would request a US of the pancreas and a HIDA scan. I don't agree it is a lower intestinal problem.
Secondly, have you ever had a upper endoscopy done?
Could be gall bladder attacks , google Gall bladder and check the symptoms in gall bladder, the pain is severe and is usually located under the right ribs can radiate up into the shoulder and round into the back ..nausea can accompany it, it is food related , low fat food is best , do not eat later in evenings make last meal early , again if you google there is a list of foods you can eat and food to avoid.Good luck