Help me please

Minda

My daughter (Addilyn) does NOT want to go to school. She has been coming home early and been complaining about a stomach ache. This has been going on for 4 weeks approximately.. we brought her to the walk in clinic which told us to go to the ED who told us she is constipated and to give her miralax. I have been giving her miralax and keeping her home. (So she doesnt have an accident at school.) But still today she has been throwing a fit all morning. Is this anxiety? What can I do to help her? Any insight would be helpful!