Toddler with 40 degree fever

Ce

I’m freaking out. My nineteen month old has had a fever since Sunday morning. I went to the emergency room and waited about four hours just to be sent home. She’s barely eaten and drank water or milk. She basically throws up everything she has anything in her stomach. HELP. I DON’T KNOW WHAT TO DO