← Back to Skills Marketplace
med-followup-record-struct
by
Unisound-LLM
· GitHub ↗
· v1.0.1
· MIT-0
95
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install med-followup-record-struct
Description
将中文门诊复诊病历文本结构化为细粒度字段,输出 JSON(如现病史/既往史/诊断/处理意见等)。
Usage Guidance
Key points before installing or using this skill:
- Do not run this on real patient data until the desensitization behavior is proven: the code sends the record text to a hardcoded remote API (shangbao.yunzhisheng.cn) with no de‑identification step or API key. This contradicts the SKILL.md privacy claims.
- The tool writes structured output to disk by default (../runs/med-followup-record-struct/structured.json) and can optionally save prepared text; expect local persistence unless you change the code or CLI options.
- If you need to use this for real PHI, request or implement one of the following: (a) a local/offline structuring backend, (b) an explicit, configurable endpoint plus required API key env var, (c) a vetted de‑identification/redaction step applied to the text before any network call (and verify it works on edge cases).
- If you cannot verify the remote service operator and the data minimization/de‑id guarantees, test only with synthetic or fully de‑identified samples.
- Suggested immediate changes to improve safety: remove or make API_URL configurable, require an API key or explicit opt‑in to enable network calls, implement and demonstrate de‑identification before sending, and document exactly what is persisted and where. If the author claims no persistence, ask them to fix code to avoid writing files by default or to make file saving opt‑in.
Capability Analysis
Type: OpenClaw Skill
Name: med-followup-record-struct
Version: 1.0.1
The skill bundle is designed to structure Chinese medical records by extracting text from various file formats (PDF, DOCX, Excel, Images) and processing them via a disclosed external API (shangbao.yunzhisheng.cn). The implementation in `scripts/run.py` and `scripts/struct_followup_record.py` uses standard libraries and safe subprocess execution (non-shell) to call tools like LibreOffice and Tesseract. While it transmits medical data to a third-party service, this behavior is explicitly documented in `SKILL.md` along with privacy considerations, and no evidence of unauthorized data exfiltration, persistence, or malicious intent was found.
Capability Assessment
Purpose & Capability
The skill purpose (structure Chinese outpatient follow‑up records) aligns with its code and the declared external API (record structuring). The hardcoded API endpoint (https://shangbao.yunzhisheng.cn/skills/record-struct/gen_abstract_by_his) is consistent with the stated capability, but embedding a remote service endpoint without configurable auth or opt‑out is a noteworthy design choice.
Instruction Scope
SKILL.md asserts strict de‑identification before sending data and claims no local persistence of inputs/intermediates. However, the implementation (scripts/struct_followup_record.py -> struct_followup_record -> call_followup_struct_api) reads the input file and sends the raw record_text directly to the remote API with no de‑identification step. The tool also writes the structured JSON to disk (default ../runs/...), and run.py offers a --save-prepared option to persist normalized text. These behaviors contradict the documented privacy claims.
Install Mechanism
No install spec or third‑party package installs are required by the skill itself; optional Python packages and external tools are documented (openpyxl, pypdf, soffice, pdftotext, tesseract) and are reasonable for file extraction tasks. Nothing is downloaded from an unknown URL by an installer.
Credentials
The skill requests no credentials or env vars, which reduces risk, but it unconditionally posts potentially sensitive text to a hardcoded third‑party endpoint without authentication or an explicit opt‑in/configurable backend. Lack of a configurable endpoint or a requirement to supply an API key means data may be sent to that remote server by default — this is disproportionate given the privacy-sensitive input.
Persistence & Privilege
The skill is not set to always:true and does not request elevated platform privileges. However, SKILL.md's claims of 'no local persistence' are false in practice: the code writes structured output to disk by default and can save normalized/prepared text. That mismatch between promise and behavior is a privacy/storage concern.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install med-followup-record-struct - After installation, invoke the skill by name or use
/med-followup-record-struct - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 新增统一入口脚本 `scripts/run.py`,支持直接处理 pdf/doc/docx/xls/xlsx/csv/txt/json 多种文件格式。
- 自动预处理并归一化输入,便于结构化复诊病历文本抽取。
- SKILL.md 文档详细补充了通用入口用法、依赖和参数说明。
- 保留原有纯文本入口,兼容旧有流程。
v1.0.0
med-followup-record-struct v1.0.0
- Initial release: Extracts and structures Chinese outpatient follow-up medical records into detailed JSON fields.
- Supports granular output for key sections such as current history, past history, diagnosis, and treatment suggestions.
- Ensures strict data privacy: personal identifiers are de-identified, no local storage, and secure encrypted transfer if using third-party services.
- Output format and usage instructions provided for easy integration.
- Clearly states medical and data boundaries: results are for structural extraction only, not medical advice.
Metadata
Frequently Asked Questions
What is med-followup-record-struct?
将中文门诊复诊病历文本结构化为细粒度字段,输出 JSON(如现病史/既往史/诊断/处理意见等)。 It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.
How do I install med-followup-record-struct?
Run "/install med-followup-record-struct" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is med-followup-record-struct free?
Yes, med-followup-record-struct is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does med-followup-record-struct support?
med-followup-record-struct is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created med-followup-record-struct?
It is built and maintained by Unisound-LLM (@unisound-llm); the current version is v1.0.1.
More Skills