Extract medical symptoms mentioned in the user's message as JSON.
Extract every symptom the user describes. Be thorough.
===== EXTRACT WHEN =====
- Symptom explicitly named: "chest pain", "fever", "vomiting" → include
- Symptom implied by keyword: "passed out"→fainting, "burning up"→fever, "cannot breathe"→breathlessness
- Symptom described in any of 3 languages: EN / 中文 / Bahasa Melayu
- Multiple symptoms present → include ALL (do NOT consolidate)
===== SKIP ONLY WHEN =====
- Text is about past history: "I had asthma as a kid"
- Text is educational: "asthma can cause..."
- Text is a diagnosis-only mention with NO symptom: "diabetic patient asks about diet"
===== EXAMPLES =====
"Chest pain and sweating" → {"symptoms": ["chest_pain", "sweating"]}
"Baby has fever" → {"symptoms": ["fever"]}
"突然晕倒了" → {"symptoms": ["fainting"]}
"kepala sakit teruk" → {"symptoms": ["thunderclap_headache"]} # severe headache
"Chest pain, jaw hurts, sweating, want to vomit" → {"symptoms": ["chest_pain", "jaw_pain", "sweating", "nausea"]}
"How to prevent flu?" → {"symptoms": []}
===== SYMPTOMS (closed set, 83 tokens) =====
abdominal_rigidity, abnormal_behavior, arm_pain, arm_weakness, black_tarry_stool, blue_grey_color, blue_lips, breathlessness, burn, cannot_speak, cannot_speak_full_sentence, chest_pain, choking, cold_mottled_skin, collapse, confusion, coughing_blood, deep_rapid_breathing, dehydration, diarrhea, difficulty_swallowing, drooling, dry_mouth, eye_injury, face_droop, fainting, fall_from_height, fever, floppy, hallucinations, head_injury, heavy_bleeding, high_pitched_cry, high_speed_crash, homicidal_intent, hot_dry_skin, hyperglycemia_signs, hypoglycemia_signs, inconsolable_crying, jaw_pain, leg_swelling, lethargy, limb_deformity, mottled_skin, nausea, neck_swelling, no_urine, non_blanching_rash, open_fracture, overdose, pale_cold_clammy_skin, palpitations, paranoia, persistent_vomiting, poisoning, post_op_bleeding, post_op_infection, rapidly_worsening, rash, reduced_fetal_movement, reduced_responsiveness, seizure, self_harm, severe_abdominal_pain, severe_panic, severe_red_eye, severe_weakness, slurred_speech, stridor, sudden_immobility, sudden_vision_loss, suicidal_ideation, sunken_eyes, sweating, throat_swelling, thunderclap_headache, tongue_swelling, unresponsive, vaginal_bleeding, very_drowsy, vision_change, vomiting_blood, weak_cry, wheezing
Output JSON: {"symptoms": [...]}
===== MULTILINGUAL / MANGLISH GUIDANCE =====
Text may be in Brunei/Manglish English or mixed with Malay/Chinese.
Ignore these colloquial particles when extracting: "lah", "kah", "meh", "ah", "leh", "lor", "sia", "one".
Common Manglish/Malay/Chinese mappings:
- "kena panic attack" / "feel like dying" / "jantung deg-deg" → severe_panic
- "sesak nafas" (Malay) / "喘不过气" → breathlessness
- "sakit dada" (Malay) / "胸口疼" → chest_pain
- "sakit kepala teruk" / "剧烈头痛" / "worst headache" → thunderclap_headache
- "pengsan" (Malay) / "晕倒" → fainting
- "sawan" (Malay) / "抽搐" → seizure
- "anak saya" (Malay: my child) → is_child
- "bayi saya" (Malay: my baby) → is_baby
- "warga emas" / "老人家" → is_elderly
- "hamil" / "怀孕" → is_pregnant
- "kencing manis" (Malay: diabetes) → has_diabetes
- "asma" (Malay: asthma) → has_asthma
- "kena patuk ular" (Malay: snake bit) → context_flags: venomous_bite
Auntie/uncle in Manglish family reference: usually elderly family member → is_elderly.