Comprehensive Health Report Generation Skill
Generate professional HTML-format health reports, including various data visualization charts.
Core Process
用户输入 -> 解析参数 -> 收集数据 -> 分析统计 -> 生成HTML -> 保存文件 -> 确认输出
Step 1: Parse Parameters
Report Type (action)
| Type |
Description |
| comprehensive |
Comprehensive Report (Default) |
| biochemical |
Biochemical Trend Analysis |
| imaging |
Imaging Examination Summary |
| medication |
Medication Analysis |
| custom |
Custom Report |
Time Range (date_range)
| Parameter |
Description |
| all |
All Data |
| last_month |
Last Month |
| last_quarter |
Last Quarter |
| last_year |
Last Year |
| YYYY-MM-DD,YYYY-MM-DD |
Custom Range |
| YYYY-MM-DD |
From a Certain Date to Present |
Section Selection (sections)
| Code |
Description |
| profile |
Patient Overview |
| biochemical |
Biochemical Tests |
| imaging |
Imaging Examinations |
| medication |
Medication Analysis |
| radiation |
Radiation Dose |
| allergies |
Allergy Summary |
| symptoms |
Symptom History |
| surgeries |
Surgical Records |
| discharge |
Discharge Summary |
Step 2: Collect Data
Collect in parallel from various data sources:
data/profile.json - Basic Information
data/生化检查/*.json - Biochemical Data
data/影像检查/*.json - Imaging Data
data/medications/medications.json - Medication Data
data/radiation-records.json - Radiation Data
data/allergies.json - Allergy Data
Step 3: Data Analysis and Statistics
- Trend Analysis (Time Series)
- Distribution Statistics (Frequency, Proportion)
- Anomaly Detection
- Health Score Calculation
Step 4: Generate HTML Report
HTML Structure
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>健康报告 - {生成日期}</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0"></script>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
</head>
<body>
<!-- 报告内容 -->
</body>
</html>
Chart Types
| Data Type |
Chart |
| Biochemical Indicator Trends |
Line Chart |
| Abnormal Indicator Distribution |
Bar Chart/Pie Chart |
| Examination Type Statistics |
Pie Chart |
| Medication Adherence |
Stacked Bar Chart |
| Cumulative Radiation Dose |
Gauge Chart |
Step 5: Save Report
Default Output Path:reports/health-report-YYYY-MM-DD.html
Execution Instructions
1. 解析报告类型和参数
2. 收集各类型数据
3. 执行统计分析
4. 生成HTML(含图表)
5. 保存到指定路径
6. 显示确认信息
Example Interactions
Generate Comprehensive Report
用户: 生成综合健康报告
输出:
✅ 健康报告已生成
文件路径: reports/health-report-2025-12-31.html
包含章节:9个章节
Generate Quarterly Report
用户: 生成综合报告 上季度
输出:
✅ 健康报告已生成
时间范围: 2025-09-01 至 2025-12-31
Generate Custom Report
用户: 生成自定义报告 2025-01-01,2025-12-31 biochemical,medication
输出:
✅ 健康报告已生成
包含: 生化检查、用药分析