2 month old constipation/fussiness

My son has been in the same formula since he was born with no issues. Well the last several days he’s been horribly constipated. We tried juice like his dr suggested and warm baths but nothing was working. We ended up taking him to the hospital because he was screaming bloody murder whenever you’d move him or barely touch his stomach. They put something in his butt that made him poop (I don’t remember what it was called) but today he is still acting insanely fussy and in pain. He is still clenching and pushing to poop with no luck and really fussy. I tried the juice again but I feel helpless. He seems so miserable. What can I do?

Edit: also before he went I got a rectal temp of 100. At the hospital they said it was only 98. He still feels very hot to me but they said he had no temp but my thermometer said he does.