My bride was recently hospitalized for acute pancreatitis (after being misdiagnosed by the local acute care!!) She was put on a strict NPO with only IV fluids for 4 days, then a liquid diet. Add to this morphine for pain. The result was that she could not poop. The status board in her room actually stated that the priority for the day was to poop!
They started her on Mirilax, then stool softener, then prune juice - all to no avail! I suggested she ask the for an enema and was told what part of Hell I could visit - immediately! After day 5 of no results a pair of nurses came in and said they would try a suppository to see if it would break up the log jam. I was surprised that I was not asked to leave the room, but I had seen it all that week - from ultrasounds to bed baths to bedpans for peeing. So they rolled her up - one nurse supporting her on her side while the other raised a butt cheek and inserted the suppository. They rolled her back and said "give it time to work and call when you feel the urge to go."
After 15 minutes one returned and asked "any need to go? I'll help you to the toilet." She helped her from bed, and trailing her IV's, she was escorted to the bathroom. After what seemed a week in there she came out and just shook her head. The nurse said she'd ask the doctor what else he would prescribe.
Lo and behold she returned after a bit with a familiar green box. "The doctor sent up orders for an enema. Have you ever had an enema?" My bride just answered sullenly "I'm familiar with them." The nurse then said I'll get the aide to help roll you up, then I'll do the procedure."
Again, I thought I would be asked to step outside, but I was not. I watched as the aide rolled her up on her left side and moved her right leg up toward her belly. I was surprised the nurse put surgical lube on the nozzle before she inserted it.
The nurse said "OK, I'm going to squeeze the enema and it may feel a bit cold. Try to hold the liquid until you feel the need to go." Then added, "I can get you a bedpan or the aide can help you to the toilet." She opted for the toilet after a short wait.
It did work as promised. Later my bride told me it was embarrassing for me to have witnessed the enema. I replied that with the number of enemas she has given me over the years she should not feel any shame. (and reminded her of my upcoming colonoscopy where she will get her revenge on me! Several times, I suspect!)
So they absolutely will give enemas in a hospital, but only after a routine of laxatives.