Use this skill during pre-diagnosis triage (clinic_agent) to assign a structured severity score (0–100) and triage colour (RED/YELLOW/GREEN) to the user's reported symptoms. Invoke automatically when the user has described at least one symptom. The score drives urgency messaging: RED means call 120 immediately, YELLOW means same-day visit, GREEN means watchful waiting. Always show triggered_flags to the user.
Rule-based clinical triage engine that evaluates free-text symptom descriptions against a library of red-flag and yellow-flag patterns, fever thresholds, duration escalation rules, pain scores, and age-specific risk weights.
Final score is capped at 100.
symptoms_text — raw symptom description from the user (Chinese or English)pain_scale — 0–10 NRS self-reported pain scoreduration_days — symptom duration in days (auto-parsed from text if omitted)age — patient age for risk weighting| Score | Colour | Action |
|---|---|---|
| ≥70 or critical flag | 🔴 RED | Call 120 immediately |
| 35–69 | 🟡 YELLOW | See doctor within 4–8 hours |
| 0–34 | 🟢 GREEN | Watchful waiting 1–3 days |
triage_label and recommended_action prominentlytriggered_flags — these explain the urgency to the userdisclaimer below the assessment