A slang term, used especially is the North East of England, for a bout of diarrhea.
"I've got to go to the loo, I've got the shits."