Ideally, they should have put you on a hospital bed or gurney, with an IV med to make the pain disappear... even a short-acting injection of Talwin would have been an incredibly huge help. Emergency rooms, and pain management, are not what they should be.
Here's hoping you are all better soon!
_