Thanks for posting your query.
Yellow mucus and blood in stool
with abdominal pain
suggest Bacterial gastroenteritis
. However Inflammatory Bowel Diseases and other colon conditions should also be ruled out. In Bacterial gastroenteritis your stomach and intestines becoming inflamed and you will probably experience unpleasant symptoms such as vomiting, severe abdominal cramps and diarrhea, sometimes blood and mucus in stool.It tends to develop as the result of poor hygiene.
The main aim of treatment is to keep you fully hydrated in order to avoid complications. You should take Oral Rehydration solution to replace lost fluid and electrolytes.
You should visit your doctor and get tests like stool analysis, sigmoidoscopy
Antibiotics may be prescribed in sever conditions.
Hope it helps.