All there symptoms suggest that your child might be having Gastroenteritis
can be attributed to the presence of bile in it.
The medicine suggested by the Doctor is correct..please continue them.
can also be used for the same.
drops can be given to take care of stomach pain.
Other than that, maintain adequate hydration in the form of fluids & ORS.
And give soft, plain food.
Wishing your daughter a speedy recovery.
Thanks & take care.