Usage instructions for the health report generation command with examples and troubleshooting tips.
提供 /report 命令的详细使用说明和示例。
/report comprehensive
生成包含所有可用数据的综合健康报告,保存在 reports/health-report-YYYY-MM-DD.html。
/report <action> [date_range] [sections] [output]
| 报告类型 | 说明 |
|---|---|
| comprehensive | 综合报告(包含所有章节) |
| biochemical |
| 生化趋势分析 |
| imaging | 影像检查汇总 |
| medication | 用药分析 |
| custom | 自定义报告 |
| 参数 | 说明 |
|---|---|
| all | 所有数据(默认) |
| last_month | 上个月 |
| last_quarter | 上季度 |
| last_year | 去年 |
| YYYY-MM-DD,YYYY-MM-DD | 自定义范围 |
| YYYY-MM-DD | 从某日期至今 |
| 章节代码 | 说明 |
|---|---|
| profile | 患者概况 |
| biochemical | 生化检查 |
| imaging | 影像检查 |
| medication | 用药分析 |
| radiation | 辐射剂量 |
| allergies | 过敏摘要 |
| symptoms | 症状历史 |
| surgeries | 手术记录 |
| discharge | 出院小结 |
输出文件名(默认:health-report-YYYY-MM-DD.html)
生成的HTML报告包含:
# 生成综合报告
/report comprehensive
# 生成最近季度的报告
/report comprehensive last_quarter
# 生成去年的报告
/report comprehensive last_year
# 生成自定义时间范围的报告
/report custom 2024-01-01,2024-12-31
# 生成包含特定章节的报告
/report custom 2024-01-01,2024-12-31 biochemical,medication,radiation
# 生成生化趋势分析
/report biochemical last_year
# 指定输出文件名
/report comprehensive all all my-health-report.html
原因:指定的时间范围内没有相关数据
解决:
all 作为时间范围data/ 目录原因:数据文件格式错误或缺少必要字段
解决:
原因:网络连接问题,无法加载CDN资源
解决: