Right upper back pain spasms

Patient: My right upper back hurts when I lay down. Sometimes it hurts so much to turn in bed that it takes my breath away. Sometimes it is a pain, and sometimes it is a spasm. This has been going on for about a year and is getting worse. I had an ultrasound in Aug 2012 of my right upper quad and was negative. I had my gallbladder removed in 2007. It only hurts once in a while when I am not laying down.