I have had pain in my upper abdomen and in the center of my chest. And it goes straight to middle of my back my stool is green. I can't eat.

Sounds like this. needs urgent hands on consultation (Emergency or Walk In unit . You could have a problem with your GALLBLADDER or PANCREAS! Take action as soon as practicable! Hope this helps Dr Z.