Welcome to icliniq.com.
I can understand your concerns.
These worms are due to worm infestation in the intestine and as a result, when they come from the anal region, they probably crawl to the vaginal area, and that is why you are seeing worms in the urine too. You need to give Bandy plus syrup (Albendazole and Ivermectin) two teaspoons once at night before sleep today and repeat it after one week to treat the worm infestation.
Kindly do stool routine microscopy and culture test also. For bedwetting, she is still small, you have to wait for some time.