Baby’s belly is rock hard!

My 10 month old has been sick with diarrhea for a week now, dr said to give her some applesauce, Cheerios, rice ect and that’s all she’s had for a week plus formula. Her belly is rock hard and bloated even tho she’s still having diarrhea so I know she’s not constipated. Anyone know what this could be?