Check out your gallbladder, but I can tell you that right upper quadrant pain is often the result of what is called the "flight or fight" reflex, where you unconsciously cringe and hunch over due to daily and on-going stress. This strains the muscles in your back and chest, and even the intercoastal muscles of the rib cage.
If your GB is normal or has stones, don't let some urgent surgeon yank it out. Plenty of people have stones but not an infected gallbladder. Typical symptoms of GB disease are bloating, getting sick after eating fatty foods, and pain usually in front but that can spread to the right shoulder. Eventually the GB gets so bad even water will cause the reaction.
Here is another test. Reach around to your traps and see if they are tight. Or have your friend or SO give your shoulders a big of a massage. Then take a warm bath or shower. If the pain leaves, it's probably muscle tension brought on by anxiety and/or depression.