TMI but I need help

I’m currently 19 weeks pregnant and I haven’t been able to have any bowel movements since Sunday (4/24). When I do get something to come out it’s a few rabbit pellets and extremely painful. I was in the hospital on Sunday and the dr said it was hemorrhoids. Any suggestions? Currently trying to drink coffee to see if that helps cause that use to help before I got pregnant.