@feruze-- Yes, that's stomach bile. It basically means that no food was left in your stomach, and the urge to vomit was so strong that you ended up vomiting stomach bile.
When you get to that stage, you need medical assistance and you did the right thing by going to a hospital. Dehydration is a very high risk when you're vomiting severely enough to see bile. They must have put you on an IV drip at the hospital.