My granddaughter went through a period of being very constipated at about the same age. It helped to give her added fiber by mixing Metamucil or Citrucel with 8 ounces of water or juice, or another bulk forming laxative or fiber supplements.
Let us know how you make out with the physician. Take care.
Avoid rice while she is constipated, because it can make it worse.