If you go to the ER and comaplin of pain, you can just about request hydrocodone and get it - simply say "When I sprained my ankle they gave me some hydrocodeine and it took care of the pain, could I get some of that until I can get to my doctor?" ... do NOT SAY VICODIN, use something more obscure, such as Vicprofen or Norco... either way, you are not likely to get more then 10-20 pills MAX as the ER doctor is just giving you enough to get to your regular doctor... you can then call yer regular doc and work him/her for all you can - start by saying that the pain is REALLY BAD and you would like a refill on whatever it was the ER doc gave you... your regular doc will want to go the muscle relaxer/nsaid/non-narcotic route, so you need to do a little social engineering...
Good luck!
And yes, if you were rear ended, SEE A LAWYER! You can sue and make a LOT OF MONEY - most any lawyer that specializes in these things will know a doc that will "embelish" on the injuries too - remember, once you get a chart going that says you HAVE an inuury, dope will come easier!
------------------
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep