Causes of pain in the right upper quadrant can be:
Appendicitis in pregnancy
Retrocecal appendicitis
Liver abscess
Subphrenic abscess
Hepatic flexure cancer
Cholangitis
Cholecystitis
Choledocholithiasis
Biliary colic
Duodenitis
Pulmonary embolism
Right pleural empyema
Hepatitis
Congestive hepatomegaly
Hepatomegaly from congestive heart failure
Gastritis
Shingles
Pulmonary infarction
Myocardial ischemia
Inflammatory bowel disease
Right nephrolithiasis
Intestinal obstruction
Acute pancreatitis
Pericarditis
Right pyelonephritis
Right lower lobe pneumonia
Radiculitis
Liver tumors
Perforated duodenal ulcer