Immediate medical attention is warranted if the child shows signs of severe dehydration, such as dry mouth, sunken eyes, decreased urine output, or lethargy. Other red flags include persistent vomiting, high fever, bloody stools, or if the diarrhea lasts more than two weeks.