Thank you for the query.
From your description you might have spine problems what seems to be causing your chest pain. It is because the pain is on both sides and is associated with long sitting.
Any other disease which can cause chest pain (like heart issues, acid reflux, gallstones or pancreas inflammation
) do not cause constipation
. So constipation seems to be separate problem.
So answering your questions:
1. For ischemic heart disease
diagnostics you should visit cardiologist and have stress test
, Holters 24 hours ECG and heart ultrasound. Stomach issues should be diagnosed with gastroscopy. Gallstones should be easily visible in the abdominal ultrasound
2. Liver does not cause any pain at all. Yes, you may have peptic ulcer
Spine diseases should be diagnosed with an MRI.
In a meanwhile please avoid fatty foods, spicy foods, coffee.
Hope this will help.