← 返回
未分类 中文

Symptom Checker Triage

Suggest triage levels (Emergency, Urgent, Outpatient) based on red flag symptoms using a rule-based engine. For AI-assisted decision support only — not a sub...
根据红旗症状使用规则引擎建议分诊级别(急诊、紧急、门诊)。仅用于AI辅助决策支持——不能替代专业医疗。
aipoch-ai aipoch-ai 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 354
下载
💾 0
安装
1
版本
#latest

概述

Symptom Checker Triage

Analyzes symptom descriptions and suggests triage levels (Emergency / Urgent / Outpatient) based on red flag identification. Provides rationale and recommended next steps. For AI-assisted decision support only.

Quick Check

python -m py_compile scripts/main.py

Audit-Ready Commands

python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py "Chest pain, difficulty breathing, lasting 30 minutes"
python scripts/main.py "Headache, fever 38.5 degrees, vomiting" --verbose

When to Use

  • Triage a patient symptom description to Emergency, Urgent, or Outpatient level
  • Identify red flag symptoms in a clinical or research context
  • Generate structured triage output for documentation or downstream processing

Workflow

  1. Confirm the symptom description is provided as natural language text.
  2. Validate that the request is a symptom triage task; stop early if not.
  3. Run scripts/main.py with the symptom string or use --interactive mode.
  4. Return a structured result with triage level, red flags, rationale, and disclaimer.
  5. If execution fails or inputs are incomplete, switch to the Fallback Template below.

Fallback Template

If scripts/main.py fails or required fields are missing, respond with:

FALLBACK REPORT
───────────────────────────────────────
Objective        : <triage goal>
Inputs Available : <symptom description provided>
Missing Inputs   : <list exactly what is missing>
Partial Result   : <any triage assessment that can be made safely>
Blocked Steps    : <what could not be completed and why>
Disclaimer       : This is AI-assisted advice only. Seek professional medical care.
Next Steps       : <minimum info needed to complete>
───────────────────────────────────────

Stress-Case Output Checklist

For complex multi-constraint requests, always include these sections explicitly:

  • Assumptions: symptom keywords matched, confidence threshold applied
  • Constraints: rule-based engine only; no differential diagnosis
  • Risks: false positives and false negatives are possible; always defer to clinician
  • Unresolved Items: ambiguous symptoms requiring clarification

CLI Usage

# Direct symptom input
python scripts/main.py "Chest pain, radiating to left arm, sweating"

# Interactive mode
python scripts/main.py --interactive

# Verbose output
python scripts/main.py "Headache, fever" --verbose

# JSON output
python scripts/main.py "Abdominal pain, right lower quadrant tenderness" --json

Output Format

{
  "triage_level": "emergency|urgent|outpatient",
  "confidence": 0.85,
  "red_flags": ["Chest pain", "Difficulty breathing"],
  "reason": "Chest pain with difficulty breathing may indicate myocardial infarction or pulmonary embolism",
  "recommendation": "Go to emergency department immediately",
  "department": "Emergency/Cardiology",
  "warning": "This is AI-assisted advice and cannot replace professional medical diagnosis"
}

Triage Levels

LevelDescriptionAction
---------
emergencyLife-threatening red flags presentCall emergency services or go to ED immediately
urgentSerious but not immediately fatalSeek care within 2–4 hours
outpatientNon-urgentSchedule outpatient appointment

Red Flag Categories

→ Full red flags reference: references/red_flags.md

Key categories: Cardiovascular, Respiratory, Neurological, Gastrointestinal, Trauma/Poisoning, Obstetric.

Disclaimer

> Important: This tool provides AI-assisted triage suggestions only. It cannot replace professional medical diagnosis. If in doubt, seek medical care immediately. Call emergency services in life-threatening situations.

Input Validation

This skill accepts: natural language symptom descriptions in English or Chinese for triage level suggestion.

If the request does not involve symptom triage — for example, asking to diagnose a specific disease, prescribe medication, interpret lab results, or perform general medical Q&A — do not proceed. Instead respond:

> "symptom-checker-triage is designed to suggest triage levels based on symptom red flags. Your request appears to be outside this scope. Please provide a symptom description, or use a more appropriate tool. This tool does not provide diagnoses or treatment recommendations."

Error Handling

  • If no symptom description is provided, request it explicitly.
  • If the task goes outside documented scope (diagnosis, prescription), stop immediately.
  • If scripts/main.py fails, use the Fallback Template above.
  • Do not fabricate triage levels, red flag matches, or medical advice.

Output Requirements

Every final response must include:

  1. Objective — what symptom set was triaged
  2. Inputs Received — symptom description used
  3. Assumptions — keyword matching applied, confidence threshold
  4. Triage Result — level, red flags identified, rationale
  5. Risks and Limits — AI-only, not a diagnosis, false positive/negative risk
  6. Next Checks — always recommend professional medical evaluation

Dependencies

  • Python 3.8+
  • No third-party dependencies (rule-based engine, standard library only)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 11:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Survival Analysis (KM)

aipoch-ai
生成Kaplan‑Meier生存曲线,计算生存统计量(log‑rank检验、中位生存时间),并估算临床及生物...的 hazard ratios。
★ 2 📥 1,035
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 136 📥 43,547
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 166 📥 40,598