what could it be when a three year old pass loose stool with a big mucous filled with stool?

He strted with a tummy ache,then when she passed stool it was loose and in it there was a big mucous like thing and when i pressed it bursted and had stool in it.what could it be?is it normal?