How is blood taken for a hospital emergency room test is you are unconscious?

No problem. If you have blood circulation in your arteries and veins obtaining a blood test is no problem. You do not need to be conscious.