i feel you are suffering with bowel infection or inflammation .you not only have gastritis
as you get stomach pain after eating certain food items but also have enteritis/colitis
because of blood in stool
with mucus and fever.this requires complete check-up by your doctor and he may advice you to go for endoscopy
to rule out any ulcers, means you require medical attention as soon as possible.
hope u recover soon,bye.