← 返回 Skills 市场
aipoch-ai

Discharge Summary Writer

作者 AIpoch · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
174
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install discharge-summary-writer
功能描述
Generate hospital discharge summaries from admission data, hospital course, medications, and follow-up plans. Trigger when user needs to create a discharge s...
使用说明 (SKILL.md)

Discharge Summary Writer

Generate standardized, clinically accurate hospital discharge summaries by integrating all inpatient medical data.

When to Use

  • Patient discharge preparation requires comprehensive summary documentation
  • Compiling admission, treatment, and discharge data into unified records
  • Generating follow-up instructions and medication lists for post-discharge care
  • Creating legally compliant discharge documentation for medical records

Input Requirements

Required Patient Data

{
  "patient_info": {
    "name": "string",
    "gender": "string",
    "age": "number",
    "medical_record_number": "string",
    "admission_date": "YYYY-MM-DD",
    "discharge_date": "YYYY-MM-DD",
    "department": "string",
    "attending_physician": "string"
  },
  "admission_data": {
    "chief_complaint": "string",
    "present_illness_history": "string",
    "past_medical_history": "string",
    "physical_examination": "string",
    "admission_diagnosis": ["string"]
  },
  "hospital_course": {
    "treatment_summary": "string",
    "procedures_performed": ["string"],
    "significant_findings": "string",
    "complications": ["string"],
    "consultations": ["string"]
  },
  "discharge_status": {
    "discharge_diagnosis": ["string"],
    "discharge_condition": "string",
    "hospital_stay_days": "number"
  },
  "medications": {
    "discharge_medications": [
      {
        "name": "string",
        "dosage": "string",
        "frequency": "string",
        "route": "string",
        "duration": "string"
      }
    ]
  },
  "follow_up": {
    "instructions": "string",
    "follow_up_appointments": ["string"],
    "warning_signs": ["string"],
    "activity_restrictions": "string",
    "diet_instructions": "string"
  }
}

Usage

Python Script

python scripts/main.py --input patient_data.json --output discharge_summary.md --format standard

Parameters

Parameter Type Default Required Description
--input string - Yes Path to JSON file containing patient data
--output string discharge_summary.md No Output file path
--format string standard No Output format (standard, structured, json)
--template string - No Custom template file path
--language string zh No Output language (zh or en)

Output Formats

Standard Format

Human-readable markdown document following clinical discharge summary structure:

  1. Patient Information
  2. Admission Information
  3. Hospital Course
  4. Discharge Status
  5. Discharge Medications
  6. Follow-up Instructions
  7. Physician Signature

Structured Format

Sectioned markdown with clear headers for EMR integration.

JSON Format

Machine-readable structured data for system integration.

Technical Difficulty

⚠️ HIGH - Manual Review Required

This skill handles critical medical documentation. Output requires:

  • Physician verification before use
  • Compliance with local medical documentation standards
  • Review for accuracy and completeness
  • Institutional approval for template formats

Safety Considerations

  1. Never use generated summaries without physician review
  2. Verify all medication dosages and instructions
  3. Confirm follow-up appointments with hospital scheduling system
  4. Ensure discharge diagnoses match official medical records
  5. Validate patient identifiers and dates

References

  • references/discharge_template.md - Standard discharge summary template
  • references/medical_terms.json - Standardized medical terminology
  • references/section_guidelines.md - Guidelines for each section

Limitations

  • Does not access live EMR systems (requires manual data input)
  • Medication interactions not validated
  • Does not generate ICD-10 codes automatically
  • Requires structured input data
  • Output format must align with institutional requirements

Risk Assessment

Risk Indicator Assessment Level
Code Execution Python/R scripts executed locally Medium
Network Access No external API calls Low
File System Access Read input files, write output files Medium
Instruction Tampering Standard prompt guidelines Low
Data Exposure Output files saved to workspace Low

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • Input file paths validated (no ../ traversal)
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized (no stack traces exposed)
  • Dependencies audited

Prerequisites

No additional Python packages required.

Evaluation Criteria

Success Metrics

  • Successfully executes main functionality
  • Output meets quality standards
  • Handles edge cases gracefully
  • Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
    • Performance optimization
    • Additional feature support
安全使用建议
This skill appears to do what it claims, but before installing or running it consider: 1) This processes protected health information—run only in a secure, access-controlled environment and ensure compliance with your institution's privacy policies (HIPAA/GDPR equivalents). 2) The script reads the input JSON and writes output files in the workspace; verify output paths and restrict who can access the workspace to avoid PHI leakage. 3) SKILL.md's security checklist suggests input path validation and sandboxing, but the included script does not enforce path traversal checks—avoid passing untrusted paths and consider running in a sandbox/container. 4) Always require physician review of generated summaries (the skill itself does not validate clinical correctness or drug interactions). 5) If you need stricter guarantees, inspect/modify the script to add explicit input validation, logging controls, and an allowlist for output directories before deployment. 6) If institutional integration (EMR, scheduling) is required later, expect additional credentials and network safeguards to be necessary.
功能分析
Type: OpenClaw Skill Name: discharge-summary-writer Version: 0.1.0 The discharge-summary-writer skill is a legitimate utility designed to generate medical discharge summaries from structured JSON input. The core logic in scripts/main.py is a straightforward template engine that performs basic data validation and string formatting without any network calls, external dependencies, or high-risk execution patterns (like eval or subprocess). The documentation in SKILL.md and the reference files (e.g., section_guidelines.md) provide comprehensive safety warnings and clinical guidelines, emphasizing the necessity of physician review and data accuracy.
能力评估
Purpose & Capability
Name/description (discharge summary generation) match the included artifacts: SKILL.md, templates, example input, and a Python script that reads a JSON patient file and writes a summary. No unrelated environment variables, binaries, or cloud creds are requested.
Instruction Scope
Runtime instructions are narrowly scoped (run scripts/main.py with a local JSON input). SKILL.md includes a security checklist item requiring input path validation (no ../ traversal) and sandboxing, but the provided scripts/main.py does not implement explicit path traversal or sandbox checks— it directly opens the supplied input path and writes output to the specified path. The code also prints and writes generated summaries to workspace storage (PHI exposure risk) as expected for the task.
Install Mechanism
No install spec; this is an instruction-only skill plus a local Python script that uses only the standard library. No network downloads or external package installation are required.
Credentials
No environment variables, credentials, or config paths are requested. The data the skill processes is patient data provided by the user; that is appropriate for the stated purpose. The only notable requirement is that it will read files and write output to the agent's workspace, which is proportional but carries PHI handling implications.
Persistence & Privilege
Skill is not always-on, does not request elevated platform privileges, and does not modify agent/system-wide settings. Autonomous invocation is allowed by default (normal), but there is no indication this skill requires permanent presence or other unusual privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install discharge-summary-writer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /discharge-summary-writer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of Discharge Summary Writer. - Generates standardized hospital discharge summaries from structured patient data. - Supports multiple output formats: human-readable, structured, and JSON. - Requires manual clinical data input; does not connect to live EMR systems. - Provides safety guidance and technical documentation to ensure compliant use. - Includes customizable templates and language settings (zh/en). - Marked as high-risk: output requires physician review before use.
元数据
Slug discharge-summary-writer
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Discharge Summary Writer 是什么?

Generate hospital discharge summaries from admission data, hospital course, medications, and follow-up plans. Trigger when user needs to create a discharge s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 174 次。

如何安装 Discharge Summary Writer?

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

Discharge Summary Writer 是免费的吗?

是的,Discharge Summary Writer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Discharge Summary Writer 支持哪些平台?

Discharge Summary Writer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Discharge Summary Writer?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v0.1.0。

💬 留言讨论