They emerge from the anus, and while moving on the skin near the anus, the female pinworms deposit eggs either through (1) contracting and expelling the eggs, (2) dying and then disintegrating, or (3) bodily rupture due to the host scratching the worm. After depositing the eggs, the female becomes opaque and dies. The reason the female emerges from the anus is to obtain the oxygen necessary for the maturation of the eggs. Diagnosis
Diagnosis relies on finding the eggs or the adult pinworms. Individual eggs are invisible to the naked eye, but they can be seen using a low-power microscope. On the other hand, the light-yellowish thread-like adult pinworms are clearly visually detectable, usually during the night when they move near the anus, or on toilet paper. Shining a flashlight on the infected individuals anus about one hour after they fall asleep is one form of detection and may show worms crawling out of the anus. Another form of detection is the use of transparent adhesive tape (e.g. Scotch Tape) applied on the anal area which will pick up deposited eggs, and diagnosis can be made by examining the tape with a microscope. This test is most successful if done every morning for several days, because the females do not lay eggs every day, and the number of eggs varies.
Asymptomatic infections, often in small children, can serve as reservoirs of infection, and therefore the entire household should be treated regardless of whether or not symptoms are present.The benzimidazole compounds albendazole (brand names e.g., Albenza, Eskazole, Zentel and Andazol) and mebendazole (brand names e.g., Ovex, Vermox, Antiox and Pripsen) are the most effective. They work by inhibiting the microtubule function in the pinworm adults, causing glycogen depletion, thereby effectively starving the parasite. A single 100 milligram dose of mebendazole with one repetition after two weeks, is considered the safest, and is usually effective with cure rate of 96%. Mebendazole has no serious side effects, although abdominal pain and diarrhea have been reported. Pyrantel pamoate (also called pyrantel embonate, brand names e.g., Reeses Pinworm Medicine, Pin-X, Combantrin, Anthel, Helmintox, and Helmex) kills adult pinworms through neuromuscular blockade, and is considered as effective as the benzimidazole compounds and is used as a second-line medication. Pyrantel pamoate is available over the counter and does not require a prescription. Pinworms located in the genitourinary system (in this case, female genital area) may require other drug treatments. Treatment in Pregnancy and Breastfeeding
The available data on mebendazole, albendazole, and pyrantel pamoate use in pregnancy is limited and they are all assigned to pregnancy category level C. Treatment of a pinworm infection during pregnancy is only recommended for patients with significant symptoms that may be causing adverse effects to the pregnant person such as loss of sleep and weight loss.