Thank you for your query,
Your child seems to have gastroenteritis
as she has pain abdome and frequent passing of stools.
Continue the medication as advised by the Pediatrician
If the motions are loose, watery give sips of oral rehydration solution to prevent dehydration
Even after the medication course pain is not coming down, consult your Pediatrician again for basic investigations with CUE, ultrasound
abdomen if required.
Hope I have answered your query.