Call a healthcare professional if you or your child has green stool for more than a few days. Green stool often happens with diarrhea, so drink plenty of fluids and seek immediate medical attention if you or your child becomes dehydrated.
https://www.mayoclinic.org/symptoms/green-stool/basics/when-to-see-doctor/sym-20050708