Any ideas?

My 7 month old has recently started rashing up when she poops and if she goes a little while without pooping the rash starts getting better....does anyone have an idea about what it could be? (Been keeping happy hiney on it and plan on calling dr tomorrow)