← 返回 Skills 市场
unisound-llm

unisound-chief-complaint-disease-op

作者 Unisound-LLM · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
77
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install unisound-chief-complaint-disease-op
功能描述
门诊病历内涵质控:主诉不应使用疾病和操作。给定门诊病历文本,调用内部医疗大模型,输出无缺陷或有缺陷及原因。
使用说明 (SKILL.md)

主诉不应使用疾病和操作

概述

本 skill 仅针对**「主诉不应使用疾病和操作」**这一条内涵质控规则。将字段解析、多步 LLM 推理与条件分支实现在本目录 scripts/emr_qc_impl.py 中;scripts/emr_qc.pyscripts/run.py 为入口,本 skill 可单独打包发布。调用 HiVoice MaaS 医疗大模型(OpenAI 兼容 chat/completions),输出 无缺陷有缺陷 + 原因。

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

  • 最小必要原则:仅处理质控所必需的病历文本内容;不要求提供姓名、证件号等身份信息。
  • 严格脱敏:在发送至任何接口前,请确保病历文本已完成脱敏/去标识化处理。
  • 不做本地持久化:不将输入与中间结果写入本地持久化存储;本次调用结束即销毁
  • 医疗边界:本技能为辅助质控工具,不构成医疗诊断或治疗建议;最终结论请由执业医生审核。

输入格式

纯文本门诊病历(UTF-8),各字段用中文标签开头,例如:

主诉:发热3天
现病史:患者3天前无明显诱因出现发热,体温最高38.5℃...
既往史:高血压病史5年,规律服用氨氯地平,血压控制可...
体格检查:T 38.2℃,BP 150/90mmHg,双肺呼吸音清...
初步诊断:上呼吸道感染
处理意见:对症治疗

支持的字段标签:主诉现病史既往史体格检查辅助检查初步诊断/诊断处理意见/处理(中英文冒号均可)。

也支持通过 scripts/run.py 直接输入 pdf/doc/docx/xls/xlsx/csv/txt/json

快速开始

# 文本入口(在仓库 skills 根目录运行)
python3 doctor/emr-qc/chief-complaint-disease-op/scripts/emr_qc.py \
  --input data/med-emr-qc/record.txt \
  --appkey \x3Cyour-appkey>

# 多格式入口
python3 doctor/emr-qc/chief-complaint-disease-op/scripts/run.py \
  --input data/med-emr-qc/record.xlsx \
  --appkey \x3Cyour-appkey>

参数说明

scripts/emr_qc.py

  • --input PATH必填。门诊病历文本文件路径(UTF-8)。
  • --appkey STRING必填。调用内部医疗大模型的鉴权 key,由平台分配;不得写入仓库
  • --base URL:大模型 base URL(默认:https://maas-api.hivoice.cn/v1)。
  • --model STRING:模型名称(默认:u1-insuremed)。
  • --timeout SECONDS:HTTP 超时秒数;0 表示一直等待(默认:0)。
  • --output PATH:输出文件路径(默认:../runs/med-emr-qc/chief-complaint-disease-op.txt)。

scripts/run.py 附加参数:

  • --input-type auto|pdf|doc|docx|xls|xlsx|csv|txt|json:输入类型;默认 auto
  • --sheet STRING:读取 Excel 时指定 sheet(可选)。
  • --encoding STRINGtxt/csv 编码(默认:utf-8)。
  • --save-prepared:保存预处理后的文本,便于调试。

输出约定

  • 输出为 UTF-8 文本:
    • 无缺陷:输出 无缺陷
    • 有缺陷:输出 有缺陷 + 换行 + 原因说明

依赖

自包含实现

质控与 LLM 调用逻辑均在 scripts/emr_qc_impl.py(与同 skill 一并发布)。

预处理(仅 run.py

scripts/run.py 依赖 _shared/doc-preprocesspreprocess.py),须位于仓库 skills/ 根下。

运行环境

  • Python 3.7+
  • 无需第三方包(仅标准库;多格式输入时可选 openpyxlpypdf

外部 API

  • 医疗大模型:https://maas-api.hivoice.cn/v1/chat/completions(POST,OpenAI 兼容格式)
安全使用建议
This skill appears purpose-aligned and not suspicious. Before installing or running it, verify the publisher/provenance, use the default or another trusted model endpoint, pass the app key carefully, de-identify medical records, and avoid the --save-prepared debug option unless local storage is acceptable.
功能分析
Type: OpenClaw Skill Name: unisound-chief-complaint-disease-op Version: 1.0.0 The skill bundle is a specialized medical tool designed for quality control of Electronic Medical Records (EMR), specifically checking if 'Chief Complaints' incorrectly use disease names or procedures. The implementation in `scripts/emr_qc_impl.py` uses standard Python libraries (`urllib`) to interact with a legitimate medical LLM API (hivoice.cn) and contains well-defined prompts for medical logic. There is no evidence of data exfiltration, unauthorized execution, or malicious prompt injection; the code is transparent, follows its stated purpose, and handles sensitive medical data with documented privacy considerations.
能力评估
Purpose & Capability
The implementation parses outpatient record fields and calls a disclosed HiVoice-compatible medical LLM for the specific chief-complaint quality-control rule; no unrelated endpoint, shell execution, destructive action, or hidden autonomous behavior was found.
Instruction Scope
The skill instructions are scoped to producing a quality-control result and do not attempt to override user intent, force tool use, or change stopping conditions.
Install Mechanism
There is no install spec, but the multi-format runner imports a shared preprocessor outside the provided manifest, and package metadata has a provenance mismatch between registry metadata and _meta.json.
Credentials
Reading a user-selected medical record and sending selected text to the configured medical model is purpose-aligned, but it involves sensitive clinical text and a provider app key.
Persistence & Privilege
No background persistence or privilege escalation was found; the skill writes the QC result by default and can optionally save the preprocessed input when the documented --save-prepared flag is used.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install unisound-chief-complaint-disease-op
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /unisound-chief-complaint-disease-op 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
med-emr-qc-chief-complaint-disease-op v1.0.0 - Initial release supporting outpatient medical quality control for: "Chief complaint should not include diseases and operations". - Provides script-based command-line tool to analyze and validate medical record files in multiple formats (txt, pdf, doc, excel, etc). - Integrates with HiVoice MaaS medical LLM via API, returning result as "无缺陷" or "有缺陷" with explanation. - Ensures data privacy: requires de-identified text, never stores input or results, and is for quality control only—not medical advice. - Self-contained implementation; no third-party dependencies needed for core use (standard library only).
元数据
Slug unisound-chief-complaint-disease-op
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

unisound-chief-complaint-disease-op 是什么?

门诊病历内涵质控:主诉不应使用疾病和操作。给定门诊病历文本,调用内部医疗大模型,输出无缺陷或有缺陷及原因。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。

如何安装 unisound-chief-complaint-disease-op?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install unisound-chief-complaint-disease-op」即可一键安装,无需额外配置。

unisound-chief-complaint-disease-op 是免费的吗?

是的,unisound-chief-complaint-disease-op 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

unisound-chief-complaint-disease-op 支持哪些平台?

unisound-chief-complaint-disease-op 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 unisound-chief-complaint-disease-op?

由 Unisound-LLM(@unisound-llm)开发并维护,当前版本 v1.0.0。

💬 留言讨论