Your health care provider can diagnose a pinworm infection by simply finding the eggs. If your health care provider prescribes medicine for this condition, everyone who lives in your house should take it. This is true even if other people in your home do not have symptoms.