← Back to Skills Marketplace
fanqing203

Clinical Case Writer

by fanqing203 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ⚠ suspicious
85
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install clinical-case-writer
Description
根据患者病历资料撰写符合GB/T 7713.2-2022规范的临床案例报告,自动生成格式规范的Word文档。
README (SKILL.md)

Clinical Case Writer - 临床案例撰写技能

技能描述

根据患者病历资料撰写符合GB/T 7713.2-2022规范的临床案例报告,自动生成格式规范的Word文档。

功能特性

  • ✅ 自动提取病历资料关键信息
  • ✅ 按规范撰写临床案例(摘要、引言、病例资料、讨论、结论)
  • ✅ 自动检索核心期刊文献(知网+PubMed)
  • ✅ 参考文献格式规范(正文上标、列表不上标)
  • ✅ 自动生成Word文档(格式符合GB/T 7713.2-2022)

使用方法

基本用法

撰写临床案例

指定病历文件

撰写临床案例,病历文件:outputs/患者病历.pdf

指定疾病类型

撰写扩张型心肌病临床案例

规范要求

字数要求

部分 字数要求
摘要 200-300字,不分段
引言 300-400字,不编号
病例资料 2000-2500字
讨论 1200-1800字
结论 200-400字
正文总计 ≥4000字

参考文献要求

要求 规范
总数 5-10篇
中文文献 4-8篇,必须来自核心期刊
英文文献 0-4篇
近4年文献 100%(2022-2026年)
近3年文献 ≥70%(2023-2026年)
当年文献 ≥1篇(2026年)
文献类型 原始研究文章(禁止综述、个案)
指南引用 可以引用,但必须是近5年(2021-2026年),≤1篇
核心期刊 知网检索时勾选"核心期刊"

格式要求

内容 字体 字号 格式
题名 黑体 小三号 居中
【摘要】标签 黑体 小四号 顶格
摘要内容 宋体 小四号 首行缩进2字符
【关键词】标签 黑体 小四号 顶格
关键词内容 宋体 小四号 -
引言 宋体 小四号 首行缩进2字符,不编号
一级标题 楷体 四号 顶格
二级标题 宋体 小四号加粗 顶格
正文 宋体 小四号 首行缩进2字符
参考文献 宋体 五号 -

参考文献格式(重要)

  • 正文中的[1][2]:整个[1](包括中括号和数字)使用上标格式
  • 参考文献列表中的[1][2]不上标,与正文文字保持一致

检索策略

根据题名生成检索策略

案例类型 检索策略示例
疾病+治疗 主题:心肌梗死 AND 主题:PCI
疾病+药物 主题:心力衰竭 AND 主题:沙库巴曲缬沙坦
疾病+并发症 主题:糖尿病 AND 主题:心力衰竭
药物+指标 主题:BNP AND 主题:心力衰竭
疾病+预后 主题:(扩张型心肌病 OR DCM)AND 主题:预后

知网检索步骤

  1. 进入知网高级检索
  2. 选择"主题"或"篇名"字段
  3. 输入检索词(AND/OR连接)
  4. 勾选"核心期刊"(重要!)
  5. 设置时间:2022-2026年
  6. 排除综述、指南、个案

工作流程

1. 读取病历资料

  • 支持PDF、Word、图片等格式
  • 提取关键信息:主诉、现病史、既往史、查体、辅助检查、诊断、治疗

2. 确定主题和关键词

  • 根据病历确定疾病类型
  • 提取关键词用于文献检索

3. 检索文献

  • 使用知网检索中文文献(勾选核心期刊)
  • 使用PubMed检索英文文献
  • 筛选符合要求的文献(时间、类型、期刊)

4. 撰写案例

  • 按规范结构撰写各部分
  • 引用文献标注参考文献序号
  • 确保字数符合要求

5. 生成Word文档

  • 自动设置格式(字体、字号、缩进)
  • 参考文献上标自动处理
  • 页边距、行距符合规范

6. 验证格式

  • 检查字数是否符合要求
  • 检查参考文献数量和时间
  • 检查参考文献上标格式
  • 检查文献是否来自核心期刊

核心文件

  • 规范文档:memory/knowledge/临床案例写作规范.md
  • 快速参考:memory/knowledge/临床案例写作规范_快速参考.md
  • 参考文献规则:memory/knowledge/参考文献引用规则.md
  • Word生成规则:memory/knowledge/Word文档生成规则_临床案例.md
  • 生成脚本:scripts/generate_word_with_superscript.py

示例输出

Markdown格式

# 1例扩张型心肌病合并心力衰竭的诊疗体会

【摘要】患者女性,64岁,因"反复胸闷、气促3年,加重2周"入院...

【关键词】扩张型心肌病;心力衰竭;心室重构;沙库巴曲缬沙坦

扩张型心肌病(dilated cardiomyopathy,DCM)是以左心室或双心室扩大伴收缩功能障碍为特征的心肌疾病\x3Csup>[1]\x3C/sup>...

## 1 病例资料

### 1.1 一般资料

患者女性,64岁...

## 2 讨论

### 2.1 病例特点与诊疗难点

本例为老年女性患者...

## 3 结论

本例扩张型心肌病合并心力衰竭患者的诊疗体会...

【参考文献】

[1] 张伟, 李明, 王芳. 扩张型心肌病心力衰竭的临床特点与治疗策略[J]. 中国心血管病研究, 2025, 23(2): 145-152.

[2] 王建华, 刘晓峰, 陈志强. 慢性射血分数降低的心力衰竭住院患者指南导向药物应用分析与评价[J]. 中华心血管病杂志, 2025, 53(1): 15-23.

Word文档

  • 自动生成格式规范的Word文档
  • 参考文献上标自动处理
  • 符合GB/T 7713.2-2022要求

注意事项

  1. 核心期刊:所有中文文献必须来自核心期刊(知网检索勾选"核心期刊")
  2. 文献时间:近4年100%、近3年≥70%、当年≥1篇
  3. 文献类型:只引用原始研究文章,禁止综述、个案
  4. 指南引用:可以引用指南,但必须是近5年(2021-2026年),不超过1篇
  5. 参考文献格式:正文上标、列表不上标
  6. 字数要求:正文≥4000字
  7. 引用顺序:按顺序递增,每篇文献只引用一次
  8. 患者姓名脱敏文档名称和正文中都不能出现患者真实姓名,使用"患者"或"本例"代替
  9. 文献标题检查:题名中不得包含"进展"二字
  10. 禁止重复引用:每篇参考文献在正文中只能引用一次

常见错误

错误 正确
引言写标题编号 引言不编号,直接写内容
摘要分段 摘要不分段,连续叙述
参考文献少于5篇 至少5篇,不超过10篇
引用综述、个案 引用原始研究、临床研究
文献标题含"进展" 题名不含"进展"二字
引用虚构文献 必须使用知网/PubMed搜索的真实文献
英文文献过多 英文文献不超过4篇
禁止引用指南 可以引用近5年内的指南,≤1篇
参考文献列表[1]上标 列表中[1]不上标,与正文一致
引用顺序混乱 按出现顺序递增([1]→[2]→[3])
重复引用同一文献 每篇文献只引用一次
文档名称含患者姓名 文档名称不含患者姓名
正文含患者姓名 使用"患者"或"本例"代替

更新日志

  • 2026-04-04: 创建SKILL
  • 2026-04-04: 添加核心期刊要求
  • 2026-04-04: 添加检索策略规则
  • 2026-04-04: 添加Word文档生成规则
  • 2026-04-04: 更新指南引用规则(可以引用近5年内指南,≤1篇)
  • 2026-04-04: 更新Word生成脚本(修复二级标题重复编号、结论缺失问题)
  • 2026-04-05: 修复引言部分重复问题(v2.0.1)
Usage Guidance
This skill's documentation promises automated extraction from patient records and automatic literature retrieval, but the only code provided converts Markdown into a formatted Word document and validates references. Before installing or using: 1) Do not assume the skill will perform PDF/OCR or web searches — those capabilities are not implemented and would require additional tools, network access, or credentials (especially for CNKI). 2) Protect patient privacy: the instructions reference reading patient files; ensure no PHI is uploaded to external search services and verify the agent will anonymize names as required. 3) Verify missing files: SKILL.md refers to knowledge documents that are not bundled — ask the author for the referenced memory/knowledge files or inspect how the agent will obtain them. 4) Test locally in a sandbox: run the Python script offline with sample Markdown to confirm behavior and check that it does not make network calls. 5) If you expect automated literature retrieval, require explicit explanations of how the skill will access CNKI/PubMed (APIs, scraping, credentials) and confirm compliance with site terms and data governance. If these gaps are acceptable and you will provide the missing extraction/retrieval components yourself, the docx-generation part appears benign; otherwise treat the skill as incomplete and verify origins/author before trusting with PHI or automating web searches.
Capability Analysis
Type: OpenClaw Skill Name: clinical-case-writer Version: 2.0.1 The skill bundle is a legitimate tool designed to automate the creation of clinical case reports following Chinese national standards (GB/T 7713.2-2022). The Python script `scripts/clinical_case_writer.py` uses the standard `python-docx` library to format Markdown content into Word documents, specifically handling medical citations and font requirements without any dangerous system calls or network activity. The instructions in `SKILL.md` and `README.md` emphasize data privacy through patient anonymization and provide clear, non-malicious guidelines for literature retrieval and document structure.
Capability Assessment
Purpose & Capability
SKILL.md and README promise automatic extraction from PDF/Word/images and automatic literature retrieval (知网/CNKI + PubMed). The only included script (clinical_case_writer.py) implements Markdown→docx conversion and formatting/validation; it contains no OCR, PDF parsing, web retrieval, or CNKI/PubMed API calls. Declared features (automatic extraction, web retrieval and filtering, core-journal filtering) are therefore unmet by the code bundle.
Instruction Scope
Runtime instructions tell the agent to read patient records (PDF/Word/images), extract PHI and key information, and search CNKI/PubMed with specific filters (勾选'核心期刊', date ranges, exclude reviews/guidelines). Those actions imply file I/O, OCR/parsing, and web access, but the skill does not declare tools, credentials, or safe handling of protected health information. The SKILL.md also references memory/knowledge files and a generate script name that exists, but the referenced knowledge documents are not included in the package manifest. The instructions therefore grant broad discretion without describing the mechanisms or constraints.
Install Mechanism
No install spec; instruction-only with a small Python script. Requirements in skill.json list python-docx, which matches the script's use. No downloads, remote installers, or unusual install behavior present.
Credentials
The skill requests no environment variables, no credentials, and no config paths — this is proportionate for the included docx-generation script. However, SKILL.md expects the agent to perform online CNKI searches and possibly access external systems; that would normally require network access or credentials (particularly for CNKI), but none are declared. The absence of declared credentials is inconsistent with the claimed automatic retrieval capability.
Persistence & Privilege
always is false and autonomous invocation is allowed by default. The skill does not request persistent or elevated privileges and does not modify other skills' configurations. No concern on persistence from the package contents.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clinical-case-writer
  3. After installation, invoke the skill by name or use /clinical-case-writer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.1
v2.0.1: 修复引言部分重复问题
v2.0.0
v2.0.0: 修复二级标题重复编号、结论缺失问题;更新指南引用规则;新增文献标题检查、引用顺序检查、禁止重复引用检查
Metadata
Slug clinical-case-writer
Version 2.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Clinical Case Writer?

根据患者病历资料撰写符合GB/T 7713.2-2022规范的临床案例报告,自动生成格式规范的Word文档。 It is an AI Agent Skill for Claude Code / OpenClaw, with 85 downloads so far.

How do I install Clinical Case Writer?

Run "/install clinical-case-writer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Clinical Case Writer free?

Yes, Clinical Case Writer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Clinical Case Writer support?

Clinical Case Writer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Clinical Case Writer?

It is built and maintained by fanqing203 (@fanqing203); the current version is v2.0.1.

💬 Comments