Thanks for posting your query.
The pain medicine(NSAIDS) or hydrocortisone
are not expected to cause a constipation
Hope I have answered your query.
But if your doctor used the opiod class of drugs, then it can be a cause but your constipation seems out of proportion.
You should visit a surgeon of your locality and also a gastroenterologist.
may help you, you should try it if not done yet.
If you have any questions I will be happy to answer.
Please close the query if you have no other questions.
Wish you a good health.