Fewer than 5% of cases last for more than six weeks. The condition frequently recurs. In half of cases of hives, the cause remains unknown. Angioedema is a related condition (also from allergic and nonallergic causes), though fluid leakage is from much deeper blood vessels in the subcutaneous or submucosal layers. Individual hives that are painful, last more than 24 hours, or leave a bruise as they heal are more likely to be a more serious condition called urticarial vasculitis. Hives caused by stroking the skin (often linear in appearance) are due to a benign condition called dermatographic urticaria. Cause Hives can also be classified by the purported causative agent. Many different substances in the environment may cause hives, including medications, food and physical agents. In perhaps more than 50% of people with chronic hives of unknown cause, it is due to an autoimmune reaction. Risk factors include having conditions such as hay fever or asthma. Medications Drugs that have caused allergic reactions evidenced as hives include codeine, sulphate of morphia, dextroamphetamine, aspirin, ibuprofen, penicillin, clotrimazole, trichazole, sulfonamides, anticonvulsants, cefaclor, piracetam, vaccines, and antidiabetic drugs. The antidiabetic sulphonylurea glimepiride, in particular, has been documented to induce allergic reactions manifesting as hives. Food The most common food allergies in adults are shellfish and nuts. The most common food allergies in children are shellfish, nuts, eggs, wheat, and soy. One study showed Balsam of Peru, which is in many processed foods, to be the most common cause of immediate contact urticaria. Another food allergy that can cause hives is alpha-gal allergy, which may cause sensitivity to milk and red meat. A less common cause is exposure to certain bacteria, such as Streptococcus species or possibly Helicobacter pylori. Infection or environmental agent Hives including chronic spontaneous hives can be a complication and symptom of a parasitic infection, such as blastocystosis and strongyloidiasis among others. The rash that develops from poison ivy, poison oak, and poison sumac contact is commonly mistaken for urticaria. This rash is caused by contact with urushiol and results in a form of contact dermatitis called urushiol-induced contact dermatitis. Urushiol is spread by contact but can be washed off with a strong grease- or oil-dissolving detergent and cool water and rubbing ointments. Dermatographic urticaria Dermatographic urticaria (also known as dermatographism or "skin writing") is marked by the appearance of weals or welts on the skin as a result of scratching