I wish I had some good advice, but I'm sorry your hammie isn't feeling well.

I noticed that you wrote there were shaving in his cage, are you using pine or cedar? If you are I would reccomend changing it because they can be toxic. If carefresh is avaliable in your area I would try using that.