Manages allergy profiles including food, environmental, and drug allergies. Tracks reactions, identifies cross-reactivity risks, provides seasonal allergy forecasts, and warns about allergen exposure. Use when the user reports allergies, asks about cross-reactions, or needs allergen avoidance guidance.
Comprehensive allergy profile management, reaction tracking, cross-reactivity identification, seasonal forecasting, and allergen avoidance guidance.
Maintain a structured allergy profile for the user. Each allergy entry includes the following fields:
| Field | Description | Allowed Values |
|---|---|---|
allergen | Name of the allergen | Free text (e.g., "Peanuts", "Penicillin", "Birch pollen") |
type | Category of allergen | food, environmental, drug, insect, contact |
severity | Severity classification | mild, moderate, severe, anaphylaxis |
diagnosed_by | How the allergy was identified |
self, doctor, allergy-test (skin prick, blood IgE, patch test) |
date_diagnosed | Date of diagnosis or first known reaction | ISO 8601 date |
notes | Additional context | Free text |
Food Allergens (Top 9 + common others):
Environmental Allergens:
Drug Allergens:
Insect Allergens:
Contact Allergens:
Record individual allergic reactions with detailed context for pattern analysis.
| Field | Description | Allowed Values |
|---|---|---|
date | Date and time of reaction | ISO 8601 datetime |
trigger | Suspected or confirmed allergen | Free text |
symptoms | List of symptoms observed | See symptom categories below |
severity | Reaction severity score | 1 (minor) to 5 (life-threatening) |
onset_time | Time from exposure to first symptom | Duration (e.g., "5 minutes", "2 hours") |
duration | Total duration of the reaction | Duration (e.g., "30 minutes", "3 days") |
treatment_used | Medications or interventions applied | Free text |
outcome | How the reaction resolved | resolved_spontaneously, resolved_with_treatment, required_ER, hospitalized |
Skin Reactions:
Respiratory Reactions:
Gastrointestinal Reactions:
Ocular Reactions:
Cardiovascular / Systemic Reactions:
| Score | Label | Description |
|---|---|---|
| 1 | Minor | Localized symptoms, no treatment needed (e.g., mild itching) |
| 2 | Mild | Localized symptoms requiring OTC treatment (e.g., hives in one area) |
| 3 | Moderate | Multiple symptom categories or widespread involvement (e.g., hives + GI upset) |
| 4 | Severe | Respiratory compromise or significant systemic involvement |
| 5 | Life-threatening | Anaphylaxis, cardiovascular collapse, loss of consciousness |
When a user reports an allergy, check for known cross-reactivity risks and proactively warn them.
Latex allergy is associated with IgE cross-reactivity to certain fruit and vegetable proteins (hevein-like domains):
Cross-reactivity between inhaled pollen proteins and structurally similar proteins in raw fruits, vegetables, and nuts:
| Pollen Allergy | Cross-Reactive Foods |
|---|---|
| Birch | Apple, pear, cherry, peach, plum, apricot, kiwi, carrot, celery, hazelnut, almond, soybean |
| Ragweed | Melon (watermelon, cantaloupe, honeydew), banana, zucchini, cucumber, sunflower seeds |
| Grass | Tomato, potato, melon, orange, peanut, Swiss chard |
| Mugwort | Celery, carrot, parsley, coriander, fennel, anise, sunflower, chamomile, pepper, mustard |
| Alder | Apple, cherry, peach, pear, parsley, celery, almond, hazelnut |
| Plane tree | Hazelnut, apple, lettuce, corn, chickpea, peanut |
Note: Cooking typically denatures the offending proteins and eliminates OAS symptoms. Allergy to the cooked form suggests a separate, potentially more serious, food allergy.
Tropomyosin is the major allergen shared across crustaceans and some other invertebrates:
Month-by-month guide to predominant airborne allergens in the Northern Hemisphere. Actual timing varies by latitude, climate, and local flora.
| Season | Months | Primary Allergens | Notes |
|---|---|---|---|
| Late Winter | Feb - Mar | Tree pollen begins (cedar, juniper, alder, elm) | Earliest tree pollens; varies by region |
| Spring | Mar - May | Tree pollen peaks (birch, oak, maple, ash, hickory, walnut, sycamore) | Highest tree pollen counts; rain temporarily reduces airborne pollen |
| Late Spring | May - Jun | Grass pollen begins (timothy, bermuda, ryegrass, bluegrass, fescue) | Overlaps with late tree pollen |
| Summer | Jun - Aug | Grass pollen peaks; outdoor mold spores rise (Alternaria, Cladosporium) | Hot, humid conditions favor mold growth |
| Late Summer | Aug - Sep | Ragweed season begins; mold spores remain high | A single ragweed plant can produce ~1 billion pollen grains |
| Fall | Sep - Nov | Ragweed peaks then fades; leaf mold increases; burning bush, sagebrush | First frost typically ends ragweed season |
| Winter | Dec - Feb | Indoor allergens dominate: dust mites, pet dander, indoor mold, cockroach | Heating systems circulate indoor allergens; dry air irritates airways |
Many allergens appear under unfamiliar names on ingredient labels. Use this reference to identify hidden allergens.
Casein, caseinate (sodium/calcium/magnesium), whey, lactalbumin, lactoglobulin, lactulose, ghee, curds, hydrolysates, recaldent, rennet casein, tagatose. May be in: caramel color, chocolate, nougat, "natural flavoring," baked goods, deli meats, hot dogs.
Albumin (albumen), globulin, lysozyme, ovalbumin, ovomucin, ovomucoid, ovovitellin, meringue, surimi, lecithin (sometimes egg-derived). May be in: pasta, marshmallows, baked goods, foam toppings, vaccines (influenza, yellow fever).
Durum, einkorn, emmer, kamut, semolina, spelt, triticale, bulgur, couscous, farro, seitan, fu (gluten). May be in: soy sauce, modified food starch, hydrolyzed vegetable protein, malt (sometimes), surimi.
Edamame, miso, natto, tempeh, tofu, soy protein isolate/concentrate, textured vegetable protein (TVP), soy lecithin, soybean oil (often tolerated). May be in: bouillon, vegetable broth, "natural flavoring."
Arachis oil (peanut oil), beer nuts, ground nuts, mandelonas, monkey nuts, arachis hypogaea. May be in: chili, egg rolls, enchilada sauce, marzipan (sometimes), nougat, ice cream.
Specific nut flours, butters, oils, extracts, milks, pastes (e.g., praline, marzipan/almond paste, nougat, gianduja, mortadella). Coconut is classified as a tree nut by the FDA but is botanically a fruit.
Surimi, Worcestershire sauce, Caesar dressing, caponata, bouillabaisse, fish sauce (nam pla), fish gelatin, omega-3 supplements (fish-derived).
Surimi (may contain shellfish extract), glucosamine (often shrimp-derived), bouillabaisse, cuttlefish ink, shrimp paste.
Tahini, halvah, hummus, za'atar, sesame oil, benne seeds, gingelly oil, til. May be in: bread, bagels, sushi, tempeh.
| Hidden Name | Allergen Source |
|---|---|
| Casein, caseinate | Milk |
| Albumin, albumen | Egg (or sometimes milk) |
| Lysozyme | Egg |
| Semolina, spelt, kamut | Wheat |
| Lecithin (soy) | Soy |
| Arachis oil | Peanut |
| Tahini | Sesame |
| Surimi | Fish and/or shellfish |
| Glucosamine | Shellfish |
| Carmine, cochineal | Insect (red dye from beetles) |
| Shellac, confectioner's glaze | Insect (lac bug secretion) |
| Gelatin | Beef/pork (alpha-gal concern) |
| Isinglass | Fish (used in some beers/wines) |
| Ghee | Milk (trace casein possible) |
| Natural flavoring | May contain any allergen |
| Hydrolyzed vegetable protein | May be soy or wheat |
| Modified food starch | May be wheat or corn |
╔══════════════════════════════════════════════════════════════╗
║ ANAPHYLAXIS EMERGENCY ACTION PLAN ║
╠══════════════════════════════════════════════════════════════╣
║ Name: [User name] ║
║ Known Allergens: [List] ║
║ Epinephrine Location: [Where auto-injector is kept] ║
║ ║
║ SIGNS OF ANAPHYLAXIS (any ONE of these): ║
║ • Difficulty breathing, wheezing, stridor ║
║ • Swelling of tongue or throat ║
║ • Persistent dizziness or collapse ║
║ • Pale and floppy (in children) ║
║ • Abdominal pain with vomiting (after insect sting/drug) ║
║ ║
║ ACTION: ║
║ 1. Give epinephrine auto-injector into outer mid-thigh ║
║ 2. Call emergency services (911 / 112 / 999) ║
║ 3. Lay person flat; elevate legs (if breathing permits) ║
║ 4. If no improvement in 5-15 min, give 2nd epinephrine ║
║ 5. Stay with person until paramedics arrive ║
║ ║
║ Emergency Contact: [Name, phone] ║
║ Allergist: [Name, phone] ║
║ Hospital: [Preferred hospital] ║
╚══════════════════════════════════════════════════════════════╝
When sufficient reaction data has been logged, perform the following analyses:
When reporting patterns, provide:
When recording a reaction in the daily log, use this format:
### Allergy Reaction - [Time]
- **Trigger:** [Allergen]
- **Symptoms:** [Comma-separated list]
- **Severity:** [1-5] ([label])
- **Onset:** [Duration from exposure]
- **Duration:** [How long symptoms lasted]
- **Treatment:** [What was taken/done]
- **Outcome:** [How it resolved]
- **Notes:** [Any additional context]
When presenting the allergy profile, format as:
## Allergy Profile Summary
### Food Allergies
| Allergen | Severity | Diagnosed By | Date | Notes |
|---|---|---|---|---|
| [name] | [level] | [method] | [date] | [notes] |
### Environmental Allergies
| Allergen | Severity | Diagnosed By | Date | Notes |
|---|---|---|---|---|
### Drug Allergies
| Allergen | Severity | Diagnosed By | Date | Notes |
|---|---|---|---|---|
### Cross-Reactivity Alerts
- [Allergen] → Watch for: [cross-reactive items]
When a cross-reactivity or exposure risk is detected:
> ⚠️ **ALLERGY ALERT**
> [Description of the risk]
> **Known allergy:** [Allergen]
> **Risk factor:** [Cross-reactive substance or exposure scenario]
> **Recommended action:** [What to do]
For anaphylaxis-level warnings:
> 🚨 **ANAPHYLAXIS RISK**
> [Description]
> **Carry epinephrine at all times.**
> **If symptoms occur: Use epi-pen → Call emergency services → Do NOT delay.**
Reaction events are recorded in the user's daily log file at the standard daily log path. Each reaction is appended under the appropriate date with full details.
The master allergy profile is stored at:
items/allergies.md
This file contains:
When updating the allergy profile:
items/allergies.md file.Anaphylaxis is a life-threatening medical emergency. If the user describes symptoms consistent with anaphylaxis (difficulty breathing, throat swelling, rapid drop in blood pressure, widespread hives with systemic symptoms), immediately advise:
This allergy management tool provides informational guidance only and does not constitute medical advice, diagnosis, or treatment. Allergy management decisions, including medication use, allergen avoidance strategies, and emergency action plans, should be developed in partnership with a qualified healthcare provider such as a board-certified allergist/immunologist. Never delay seeking emergency medical care based on information from this tool. If you believe you are experiencing a severe allergic reaction, call emergency services immediately.