If they are making you sit in emergency for 8-9 hours they obviously don't think your an emergency case. That is how they get you to quit coming.
Don't you have a health clinic you could go to? Or a public health nurse office?
You shouldn't be going to an emergency room for a prescription...that is crazy.