EBF....baby poop

Ch
My 8 week old hasn't pooped in almost a week she is EBF...she has horrible gas and sometimes even cries then poots lol as if it hurt her. I'm a FTM. I called the dr and we go in a few hours. Has this happened to anyone else before?