← 返回
未分类 中文

Medical Priority Scorer

Score medical messages using urgency, sentiment, and patient context to produce priority rankings (P1/P2/P3).
根据紧迫度、情感倾向和患者上下文对医疗消息进行评分,生成优先级排名(P1/P2/P3)。
binubmuse binubmuse 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 153
下载
💾 0
安装
1
版本
#latest

概述

Medical Priority Scorer

Produce deterministic priority scores for medical messages without mutating any state.

Quick Triggers

  • Rank messages by medical urgency for callback priority
  • Classify messages into P1/P2/P3 queue
  • Score follow-up priority from triaged messages

Recommended Chain

medical-triage -> medical-priority-scorer -> medical-entity-extractor

Execute Workflow

  1. Accept input from medical-triage containing triaged messages
  2. Score each message with:
    • urgency_score in range [0, 1] (based on triage category)
    • sentiment_score in range [-1, 1] (anxiety, distress, frustration)
    • recency_score in range [0, 1] (how recent the message is)
    • patient_context_score in range [0, 1] (chronic conditions, known patient)
  3. Compute priority_score on a 0-100 scale:
    • priority_score = 100 (0.50urgency_score + 0.25sentiment_score_risk + 0.15recency_score + 0.10*patient_context_score)
    • sentiment_score_risk = max(0, -sentiment_score) (negative sentiment = higher risk)
  4. Assign buckets:
    • P1 for priority_score >= 75 (immediate attention)
    • P2 for priority_score >= 50 and < 75 (same-day)
    • P3 for < 50 (routine)
  5. Produce plain-language evidence tokens that explain the score

Input Format

[
  {
    "id": "msg-123",
    "category": "urgent",
    "subject": "Medication side effects",
    "from": "patient@example.com",
    "date": "2026-02-27T10:30:00Z",
    "body": "I've been feeling dizzy since starting the new medication..."
  }
]

Output Format

[
  {
    "id": "msg-123",
    "priority_score": 78,
    "priority_bucket": "P1",
    "urgency_score": 0.8,
    "sentiment_score": -0.4,
    "recency_score": 1.0,
    "patient_context_score": 0.6,
    "evidence": "Urgent triage category + negative sentiment (concern) + very recent message + known patient"
  }
]

Enforce Boundaries

  • Never write to databases or files
  • Never send messages or trigger outbound channels
  • Never create reminders or execute actions
  • Never bypass routing or approvals

Handle Errors

  1. Reject schema-invalid inputs
  2. Return field-level reasons when scoring cannot be computed
  3. Fail closed if required scoring features are missing

Integration

This skill can be invoked via the OpenClaw CLI:

openclaw skill run medical-priority-scorer --input '[{"id":"msg-1","category":"urgent",...}]' --json

Or programmatically:

const result = await execFileAsync('openclaw', [
  'skill', 'run', 'medical-priority-scorer',
  '--input', JSON.stringify(triagedMessages),
  '--json'
]);

Recommended Model: Claude Sonnet 4.5 (openclaw models set anthropic/claude-sonnet-4-5)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 194 📥 63,356
professional

Stock Monitor

thirtyfang
全功能智能股票监控预警系统。支持成本百分比、均线金叉死叉、RSI超买超卖、成交量异动、跳空缺口、动态止盈等7大预警规则。符合中国投资者习惯(红涨绿跌)。
★ 95 📥 32,772
professional

All-Market Financial Data Hub

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