You are being treated for heartburn or hiatal hernia, and you feel sudden chest or stomach pain, have difficulty swallowing, are vomiting, or are unable to have a bowel movement or pass gas; you may have a hernia that has become obstructed or strangulated, which are emergencies.
One strong possibility for your symptom is gall bladder stones and cholesterol deposits within the gall bladder which can cause sharp pain. Getting an ultrasound of the upper abdomen done in a walk in clinic or the ER will confirm the diagnosis.
Other conditions that can produce liver pain by irritating or putting pressure on the liver include ascites (buildup of fluid in the abdomen), gallstones, gastritis (stomach inflammation), pain from pneumonia located in the lower portion of the right lung, and irritable bowel syndrome. number of disorders can cause right upper quadrant, or liver, pain. Causes of pain originating in the liver itself include chronic hepatitis (liver inflammation), fatty liver disease, liver abscess, and liver cancer.