When to go to labor and delivery instead of the ER?

My daughter was hospitalized with the flu and I’m pretty sure she passed it to me. Im 22 weeks pregnant and absolutely miserable. I feel insanely weak and dehydrated. I don’t want to go to labor and delivery and end up being told to go to the ER.