If it's on the right side just below the ribs, it's likely ileocecal valve pain related to mercury passing through the gut. The night I had my amalgams removed (9 all at once at a natural dentist) I had horrible pain just below the ribs on the right side. I was sure that I had swallowed amalgam fragments and so I took a load of magnesium oxide to make sure that nothing stayed in my colon too long. The pain then intensified for a few days. At the time, I suspected that it was either ileocecal valve pain or gall bladder pain. Because it intensified, I thought it might have been related to an accidental and incomplete liver/gall bladder flush triggered by taking so much magnesium (which relaxes smooth muscle). So, I did a true flush using a magnesium sulphate/grapefruit juice/olive oil protocol. I got a lovely batch of small "stones", but the pain did not subside until I started using Sonne's clay in water (Algin will probably accomplish the same). I now think that mercury makes my ileocecal valve hurt. In fact, it serves as a kind of early warning system that, for some reason (diet or other), my body is dumping mercury through the gut, because if I don't take immediate action neurological symptoms that I know are caused by mercury soon appear.