Dashboard Design for Trials
Design layout sketches for clinical trial data monitoring panels, displaying recruitment progress, AE incidence rates, and other key metrics.
Features
- - Generate HTML layout sketches for clinical trial Dashboards
- Support multiple chart types: progress bars, line charts, pie charts, bar charts, etc.
- Customizable study protocol, site count, key metrics
- Responsive design, adaptable to different screen sizes
Usage
CODEBLOCK0
Parameters
| Parameter | Type | Default | Required | Description |
|---|
| INLINECODE0 | string | STUDY-001 | No | Study ID |
| INLINECODE1 |
string | Clinical Trial A | No | Study Name |
|
--sites | int | 10 | No | Number of sites |
|
--target-enrollment | int | 100 | No | Target enrollment count |
|
--current-enrollment | int | 45 | No | Current enrollment count |
|
--ae-count | int | 12 | No | Adverse event count |
|
--output | string | dashboard.html | No | Output HTML file path |
Examples
CODEBLOCK1
Output
Generates an HTML Dashboard containing the following modules:
- 1. Study Overview Card - Study ID, name, status
- Recruitment Progress - Overall progress bar, site-by-site progress comparison
- Subject Distribution - Gender, age distribution pie charts
- AE Monitoring - Adverse event incidence rate, severity distribution
- Data Quality - CRF completion rate, query count
- Timeline - Study milestones, estimated completion date
Dependencies
- - Python 3.7+
- No additional dependencies (pure standard library generates HTML/CSS/JS)
Author
Skill ID: 194
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
- Edge Case: Invalid input → Graceful error handling
- 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
临床试验仪表盘设计
为临床试验数据监控面板设计布局草图,展示招募进度、不良事件发生率及其他关键指标。
功能特点
- - 生成临床试验仪表盘的HTML布局草图
- 支持多种图表类型:进度条、折线图、饼图、柱状图等
- 可自定义研究方案、中心数量、关键指标
- 响应式设计,适配不同屏幕尺寸
使用方法
bash
python scripts/main.py [选项]
参数说明
| 参数 | 类型 | 默认值 | 必填 | 描述 |
|---|
| --study-id | 字符串 | STUDY-001 | 否 | 研究ID |
| --study-name |
字符串 | 临床试验A | 否 | 研究名称 |
| --sites | 整数 | 10 | 否 | 中心数量 |
| --target-enrollment | 整数 | 100 | 否 | 目标入组人数 |
| --current-enrollment | 整数 | 45 | 否 | 当前入组人数 |
| --ae-count | 整数 | 12 | 否 | 不良事件数量 |
| --output | 字符串 | dashboard.html | 否 | 输出HTML文件路径 |
示例
bash
生成默认仪表盘
python scripts/main.py
自定义研究参数
python scripts/main.py \
--study-id PHASE-III-2024 \
--study-name 2型糖尿病新药III期临床试验 \
--sites 15 \
--target-enrollment 300 \
--current-enrollment 120 \
--ae-count 25 \
--output my_dashboard.html
输出内容
生成包含以下模块的HTML仪表盘:
- 1. 研究概览卡片 - 研究ID、名称、状态
- 招募进度 - 总体进度条、各中心进度对比
- 受试者分布 - 性别、年龄分布饼图
- 不良事件监控 - 不良事件发生率、严重程度分布
- 数据质量 - CRF完成率、质疑数量
- 时间线 - 研究里程碑、预计完成日期
依赖项
- - Python 3.7+
- 无需额外依赖(纯标准库生成HTML/CSS/JS)
作者
技能ID: 194
风险评估
| 风险指标 | 评估 | 等级 |
|---|
| 代码执行 | 本地执行Python/R脚本 | 中 |
| 网络访问 |
无外部API调用 | 低 |
| 文件系统访问 | 读取输入文件,写入输出文件 | 中 |
| 指令篡改 | 标准提示词指南 | 低 |
| 数据泄露 | 输出文件保存至工作区 | 低 |
安全检查清单
- - [ ] 无硬编码凭据或API密钥
- [ ] 无未授权文件系统访问(../)
- [ ] 输出内容不泄露敏感信息
- [ ] 已实施提示注入防护
- [ ] 输入文件路径已验证(无../遍历)
- [ ] 输出目录限制在工作区内
- [ ] 脚本在沙盒环境中执行
- [ ] 错误信息已清理(不暴露堆栈跟踪)
- [ ] 依赖项已审计
前置条件
无需额外Python包。
评估标准
成功指标
- - [ ] 成功执行主要功能
- [ ] 输出符合质量标准
- [ ] 优雅处理边界情况
- [ ] 性能可接受
测试用例
- 1. 基本功能:标准输入 → 预期输出
- 边界情况:无效输入 → 优雅错误处理
- 性能测试:大数据集 → 可接受处理时间
生命周期状态
- - 当前阶段:草稿
- 下次评审日期:2026-03-06
- 已知问题:无
- 计划改进:
- 性能优化
- 增加更多功能支持