To my knowing, you take them to the nearest Pokecenter or use a revive, which you'd have to buy, I got one for emergencies. Um if the wild Pokémon is still coming after you, grab your Pokémon and run?
[Steve is actually completely unsure how he'd handle that]
Video
[Steve is actually completely unsure how he'd handle that]