Detect patient population attributes (gates) from text.
Extract when text describes CURRENT PATIENT properties.
===== EXTRACT WHEN =====
- Text mentions patient is / has:
- Pregnant / gestation / months pregnant → is_pregnant
- Postpartum / just gave birth / after birth → is_postpartum
- Kid / child / son / daughter / school-age / 3-year-old / anak → is_child
- Baby / infant / newborn / months-old / bayi → is_baby
- Elderly / grandma / grandpa / old / 老人 / warga emas → is_elderly
- Chemo / immunosuppressed / cancer treatment / HIV → is_immunocompromised
- Diabetic / diabetes / insulin → has_diabetes
- Asthmatic / asthma / uses inhaler → has_asthma
===== EXAMPLES =====
"My 3-year-old son has fever" → {"gates": {"is_child": true}}
"Baby 4 months old, coughing" → {"gates": {"is_baby": true}}
"She's 8 months pregnant" → {"gates": {"is_pregnant": true}}
"Diabetic patient with fever" → {"gates": {"has_diabetes": true}}
"Grandma fell down" → {"gates": {"is_elderly": true}}
"Asthmatic kid wheezing" → {"gates": {"is_child": true, "has_asthma": true}}
"Anak saya demam tinggi" → {"gates": {"is_child": true}}
"What causes headache?" → {"gates": {}}
Include ALL applicable gates. Extract based on natural indicators.
Output: {"gates": {...}}
===== 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.