Manage allergy records including drug, food, and environmental allergies with severity tracking and medical alert integration.
Record and manage allergy history, including drug allergies, food allergies, environmental allergies, etc., with quick query and update support.
User Input -> Parse Operation Type -> [add] Parse Allergy Info -> Medical Standardization -> Generate JSON -> Save
-> [list] Filter and Display
-> [update] Find and Update -> Save
-> [delete] Confirm Deletion
| Input Keywords | Operation |
|---|---|
| add | add |
| list | list |
| update |
| update |
| delete | delete |
Extract from natural language:
Basic Information (Auto Extracted):
Detailed Information (Extract or Ask):
| Colloquial Description | Medical Term | Type |
|---|---|---|
| Penicillin | Penicillin | Drug allergy |
| Peanut | Peanut | Food allergy |
| Pollen | Pollen | Environmental allergy |
| Iodine contrast | Iodine contrast | Drug allergy |
| Hymenoptera venom | Hymenoptera venom | Other allergy |
Keyword Mapping:
Skin symptoms: Rash, hives, itching, redness, erythema Respiratory symptoms: Dyspnea, wheezing, laryngeal edema, chest tightness Digestive symptoms: Nausea, vomiting, diarrhea, abdominal pain Systemic symptoms: Shock, blood pressure drop, syncope, loss of consciousness, systemic urticaria
{
"allergies": [
{
"id": "allergy_20251231123456789",
"allergen": {
"name": "Penicillin",
"type": "drug",
"type_category": "Drug allergy",
"synonyms": ["Penicillin", "盘尼西林"]
},
"severity": {
"level": "severe",
"level_code": 3,
"description": "Severe allergic reaction"
},
"reactions": [
{
"reaction": "Rash",
"onset_time": "Within 30 minutes of exposure",
"severity": "moderate"
}
],
"discovery": {
"date": "2010-05-15",
"age_at_discovery": "8 years old",
"circumstances": "Appeared after penicillin injection during pneumonia treatment"
},
"confirmation": {
"method": "doctor_confirmed",
"method_name": "Doctor diagnosis",
"confirmed_by": "XX Hospital Pediatrics"
},
"current_status": {
"status": "active",
"status_name": "Active"
},
"management": {
"avoidance_strategy": "Strictly avoid penicillin-class medications",
"emergency_plan": "Seek immediate medical attention if accidentally used, carry allergy information",
"medical_alert": true
},
"notes": "Must proactively inform medical staff during all medical visits"
}
]
}
File path: data/allergies.json
Filter Parameters:
active: Display only active allergiesdrug: Display only drug allergiesfood: Display only food allergiessevere: Display only severe and above allergiesSupported Fields:
severity: Severity level (mild/moderate/severe/anaphylaxis)status: Current status (active/resolved)notes: Notes1. Parse operation type (add/list/update/delete)
2. [add] Parse allergy info, medical standardization, generate JSON, save
3. [list] Read allergies.json, filter and display
4. [update] Find allergen, update fields, save
5. [delete] Confirm deletion, remove record
User: Penicillin severe allergy from childhood injection caused difficulty breathing
-> Save drug allergy record, severity level 3
User: View all allergies
-> Display all allergy records grouped by type
User: View severe allergies
-> Display only level 3 and above allergy records
User: Peanut status changed to resolved
-> Update current status to resolved
User: Delete penicillin allergy
-> Confirm then delete record