← Back to Skills Marketplace
unisound-llm

unisound-common-disease-advice

by Unisound-LLM · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
82
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install unisound-common-disease-advice
Description
基层常见病诊疗建议。输入患者主诉/症状/体征文本,输出鉴别诊断(概率+依据)、推荐检查、初步处理意见及转诊判断(JSON + 自然语言摘要)。
README (SKILL.md)

基层常见病诊疗建议

概述

面向社区诊所/基层卫生机构医生,给定患者主诉、症状、体征及基本信息,本技能会:

  • 给出鉴别诊断(最多3种,按可能性排序,含诊断依据)
  • 推荐适合基层开展的检查项目
  • 提供初步处理意见(药物建议优先国家基本药物 + 一般处理)
  • 识别红旗症状并给出转诊判断

数据安全、隐私与伦理声明

  • 最小必要原则:仅处理生成诊疗建议所必需的患者信息;不要求也不鼓励包含姓名、证件号、手机号、详细地址等身份信息。
  • 严格脱敏:在发送至任何模型/接口前,会对可识别个人身份的信息进行脱敏/去标识化处理。仅传递脱敏后的必要信息用于本次 skill 调用。
  • 不做本地持久化:不将用户输入与中间结果写入本地持久化存储。仅在内存中短暂处理;本次调用结束即销毁
  • 医疗边界:本技能输出为辅助诊疗建议,不构成医疗诊断或治疗决定;请由执业医生复核并承担最终医疗责任。

输入格式

纯文本(UTF-8),包含患者基本信息和临床资料,例如:

主诉:发热3天,咳嗽有黄痰
年龄:35岁,性别:男
既往史:无特殊
体格检查:T 38.5℃,双肺可闻及湿啰音
辅助检查:WBC 12.0×10⁹/L,中性粒细胞85%

也支持 JSON 格式(包含 text/content/patient_info 字段的对象,或直接为字符串)。

快速开始

# 从 skills 目录运行
python3 clinic/primary-care-assist/common-disease-advice/scripts/run.py \
  --input data/clinic-common-disease/case-001.txt \
  --appkey \x3Cyour-appkey>

# 保存输出到文件
python3 clinic/primary-care-assist/common-disease-advice/scripts/run.py \
  --input data/clinic-common-disease/case-001.txt \
  --appkey \x3Cyour-appkey> \
  --output runs/clinic-common-disease/case-001.json

参数说明

  • --input PATH必填。患者信息文件路径(txt 或 json,UTF-8)。
  • --appkey STRING必填。调用内部医疗大模型的鉴权 key,由平台分配。
  • --output PATH:输出文件路径(默认:打印到 stdout)。
  • --base URL:内部大模型 base URL(默认:https://maas-api.hivoice.cn/v1)。
  • --model STRING:模型名称(默认:u1-insuremed)。
  • --timeout SECONDS:HTTP 超时秒数;0 表示一直等待(默认:0)。
  • --encoding STRING:输入文件编码(默认:utf-8)。

输出约定

输出分两部分:

JSON 结构

{
  "possible_diagnoses": [
    {
      "diagnosis": "社区获得性肺炎",
      "probability": "高",
      "basis": "发热、黄痰、双肺湿啰音、WBC升高"
    }
  ],
  "recommended_exams": ["胸部X线", "痰培养+药敏"],
  "treatment_advice": {
    "medication": "阿莫西林克拉维酸钾 457mg tid 口服,疗程7天",
    "general": "卧床休息,多饮水,监测体温,退热处理"
  },
  "warnings": ["如72小时内症状无改善或出现呼吸困难,需立即转诊"],
  "referral_needed": false,
  "referral_reason": null
}

自然语言摘要:以"【摘要】"开头,总结关键诊断和处理要点。

依赖

运行环境

  • Python 3.7+(仅使用标准库,无需额外安装)

外部 API

  • 内部医疗大模型:https://maas-api.hivoice.cn/v1/chat/completions
    • 方法:POST,OpenAI 兼容格式
    • 需要网络访问内部地址

备注

  • 药物建议优先选用《国家基本药物目录》品种,并给出具体剂量和用法
  • 红旗症状(如胸痛、意识障碍、严重呼吸困难等)触发时,referral_needed 自动置为 true
  • 发布约束:示例输入、运行输出均放在 skill 包外(data/runs/),skill 目录内仅保留可发布的核心文件
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install unisound-common-disease-advice
  3. After installation, invoke the skill by name or use /unisound-common-disease-advice
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
clinic-common-disease-advice v1.0.0 released - Initial version providing primary care clinical advice for common diseases. - Accepts patient symptoms and findings as text or JSON; outputs differential diagnoses (with probabilities and basis), recommended exams, treatment suggestions (medication and general management), and referral assessment. - Ensures strict data privacy: de-identification, no local storage, and minimal data use. - Outputs both structured JSON and a natural language summary. - Designed for community/primary clinic physicians; recommendations stress use of China’s National Essential Medicines. - Simple command-line interface for input/output; requires only standard Python 3.7+.
Metadata
Slug unisound-common-disease-advice
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is unisound-common-disease-advice?

基层常见病诊疗建议。输入患者主诉/症状/体征文本,输出鉴别诊断(概率+依据)、推荐检查、初步处理意见及转诊判断(JSON + 自然语言摘要)。 It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.

How do I install unisound-common-disease-advice?

Run "/install unisound-common-disease-advice" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is unisound-common-disease-advice free?

Yes, unisound-common-disease-advice is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does unisound-common-disease-advice support?

unisound-common-disease-advice is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created unisound-common-disease-advice?

It is built and maintained by Unisound-LLM (@unisound-llm); the current version is v1.0.0.

💬 Comments