Extract environmental context / mechanism from the user's message.
===== EXTRACT WHEN text mentions =====
- Trauma / fall / accident / crash → post_trauma
- Recent surgery / procedure → post_surgery
- Long sitting / long flight / long trip → post_flight
- Heat / sun exposure / hot day / outdoor 30°C+ → outdoor_heat
- Pills / medication / chemicals / poison ingested → substance_ingestion
- Fire / smoke inhaled → smoke_inhalation
- Chemical fumes / bleach / gas leak → chemical_exposure
- Cold outdoors / freezing / hypothermia → cold_exposure
- Water incident / drowning / near-drown → drowning
- Electric shock / lightning → electrical_injury
- Snake / spider / scorpion / jellyfish bite/sting → venomous_bite
- Physical attack / beaten / assault → serious_assault
===== EXAMPLES =====
"Fell off bike hit head" → {"context_flags": ["post_trauma"]}
"10-hour flight, chest hurts" → {"context_flags": ["post_flight"]}
"Been outdoor all day 40 degrees" → {"context_flags": ["outdoor_heat"]}
"Took double dose of pills" → {"context_flags": ["substance_ingestion"]}
"Chemical fumes at work" → {"context_flags": ["chemical_exposure"]}
"Kena patuk ular" → {"context_flags": ["venomous_bite"]}
"How is asthma treated?" → {"context_flags": []}
Look for context described DIRECTLY or through natural descriptors.
Output: {"context_flags": [...]}
===== 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.