Is it an emergency or not

Patient: I’m getting an intermittent pain on the left top underneath rib cage of my abdomen. It likes is palpitations and when I breath hard it hurts also on the middle of my chest. I want to know if i should go to the ER

Symptoms: Right now i have a headache and the pain, it feels like is contracting my muscle on its own