feat(pipelines): add 10 industry-specific pipeline templates
Education (3): research-to-quiz, student-analysis, lesson-plan Healthcare (3): policy-compliance, meeting-minutes, data-report Design Shantou (4): trend-to-design, competitor-research, client-communication, supply-chain-collect
This commit is contained in:
205
pipelines/healthcare/data-report.yaml
Normal file
205
pipelines/healthcare/data-report.yaml
Normal file
@@ -0,0 +1,205 @@
|
||||
# ZCLAW Pipeline - 医疗数据报告生成
|
||||
# 输入科室运营数据,自动生成结构化运营分析报告
|
||||
|
||||
apiVersion: zclaw/v1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: healthcare-data-report
|
||||
displayName: 医疗数据报告生成
|
||||
category: healthcare
|
||||
industry: healthcare
|
||||
description: 输入科室运营数据(门诊量、住院、手术、费用等),自动生成运营分析报告
|
||||
tags:
|
||||
- 医疗
|
||||
- 数据报告
|
||||
- 运营分析
|
||||
- 行政管理
|
||||
icon: 📈
|
||||
author: ZCLAW
|
||||
version: 1.0.0
|
||||
|
||||
spec:
|
||||
inputs:
|
||||
- name: data_content
|
||||
type: text
|
||||
required: true
|
||||
label: 运营数据
|
||||
placeholder: |
|
||||
粘贴科室运营数据,支持格式:
|
||||
指标名称,数值 或自由文本描述
|
||||
例如:门诊量 1250人次,同比增长8%
|
||||
|
||||
- name: report_period
|
||||
type: select
|
||||
required: false
|
||||
label: 报告周期
|
||||
default: 月报
|
||||
options:
|
||||
- 周报
|
||||
- 月报
|
||||
- 季报
|
||||
- 半年报
|
||||
- 年报
|
||||
|
||||
- name: department
|
||||
type: string
|
||||
required: false
|
||||
label: 科室
|
||||
placeholder: 例如:内科、外科、急诊科
|
||||
|
||||
- name: focus_areas
|
||||
type: multi-select
|
||||
required: false
|
||||
label: 分析重点
|
||||
default:
|
||||
- volume_analysis
|
||||
- quality_metrics
|
||||
- financial
|
||||
options:
|
||||
- volume_analysis
|
||||
- quality_metrics
|
||||
- financial
|
||||
- patient_satisfaction
|
||||
- resource_utilization
|
||||
|
||||
steps:
|
||||
# Step 1: 数据解析
|
||||
- id: parse_data
|
||||
description: 解析原始数据为结构化指标
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
解析以下医疗运营数据为结构化指标:
|
||||
|
||||
报告周期: {{report_period}}
|
||||
科室: {{department}}
|
||||
|
||||
原始数据:
|
||||
```
|
||||
{{data_content}}
|
||||
```
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"metrics": {
|
||||
"outpatient": {"value": 0, "unit": "人次", "yoy_change": "同比变化"},
|
||||
"inpatient": {"value": 0, "unit": "人次", "yoy_change": ""},
|
||||
"surgery": {"value": 0, "unit": "台次", "yoy_change": ""},
|
||||
"bed_occupancy": {"value": "0%", "unit": "", "yoy_change": ""},
|
||||
"average_stay": {"value": "0天", "unit": "", "yoy_change": ""},
|
||||
"revenue": {"value": "0万", "unit": "", "yoy_change": ""}
|
||||
},
|
||||
"data_quality": "数据完整/部分缺失",
|
||||
"missing_fields": ["缺失指标"]
|
||||
}
|
||||
input:
|
||||
data_content: ${inputs.data_content}
|
||||
report_period: ${inputs.report_period}
|
||||
department: ${inputs.department}
|
||||
json_mode: true
|
||||
temperature: 0.3
|
||||
max_tokens: 2000
|
||||
|
||||
# Step 2: 同比环比分析
|
||||
- id: trend_analysis
|
||||
description: 同比环比趋势分析
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
对以下医疗指标进行趋势分析:
|
||||
|
||||
科室: ${inputs.department}
|
||||
报告周期: ${inputs.report_period}
|
||||
结构化数据: ${steps.parse_data.output}
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"trends": [
|
||||
{
|
||||
"metric": "指标名称",
|
||||
"current": "当前值",
|
||||
"previous": "上期值",
|
||||
"change_rate": "变化率",
|
||||
"trend": "上升/下降/持平",
|
||||
"assessment": "正常/需关注/预警"
|
||||
}
|
||||
],
|
||||
"highlights": ["亮点1", "亮点2"],
|
||||
"concerns": ["关注点1", "关注点2"],
|
||||
"overall_assessment": "整体评估"
|
||||
}
|
||||
input:
|
||||
department: ${inputs.department}
|
||||
report_period: ${inputs.report_period}
|
||||
data: ${steps.parse_data.output}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 2500
|
||||
|
||||
# Step 3: 质量指标分析
|
||||
- id: quality_analysis
|
||||
description: 医疗质量指标分析
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
基于运营数据进行医疗质量分析:
|
||||
|
||||
科室: ${inputs.department}
|
||||
运营数据: ${steps.parse_data.output}
|
||||
趋势分析: ${steps.trend_analysis.output}
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"quality_indicators": [
|
||||
{"indicator": "质量指标", "value": "当前值", "benchmark": "参考标准", "status": "达标/未达标"}
|
||||
],
|
||||
"safety_events": "安全事件统计",
|
||||
"improvement_areas": ["改进方向1", "改进方向2"],
|
||||
"recommendations": ["质量改进建议1", "质量改进建议2"]
|
||||
}
|
||||
input:
|
||||
department: ${inputs.department}
|
||||
data: ${steps.parse_data.output}
|
||||
trends: ${steps.trend_analysis.output}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 2000
|
||||
|
||||
# Step 4: 生成完整报告
|
||||
- id: generate_report
|
||||
description: 生成完整运营分析报告
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
生成完整的医疗运营分析报告:
|
||||
|
||||
科室: ${inputs.department}
|
||||
周期: ${inputs.report_period}
|
||||
|
||||
请生成 JSON 格式报告:
|
||||
{
|
||||
"title": "报告标题",
|
||||
"executive_summary": "200字摘要",
|
||||
"data_overview": "数据概览",
|
||||
"key_findings": ["关键发现1", "关键发现2", "关键发现3"],
|
||||
"action_items": ["行动建议1", "行动建议2"],
|
||||
"preview_text": "300字报告预览"
|
||||
}
|
||||
input:
|
||||
department: ${inputs.department}
|
||||
report_period: ${inputs.report_period}
|
||||
data: ${steps.parse_data.output}
|
||||
trends: ${steps.trend_analysis.output}
|
||||
quality: ${steps.quality_analysis.output}
|
||||
json_mode: true
|
||||
temperature: 0.5
|
||||
max_tokens: 2000
|
||||
|
||||
outputs:
|
||||
parsed_data: ${steps.parse_data.output}
|
||||
trends: ${steps.trend_analysis.output}
|
||||
quality: ${steps.quality_analysis.output}
|
||||
report: ${steps.generate_report.output}
|
||||
|
||||
on_error: stop
|
||||
timeout_secs: 240
|
||||
205
pipelines/healthcare/meeting-minutes.yaml
Normal file
205
pipelines/healthcare/meeting-minutes.yaml
Normal file
@@ -0,0 +1,205 @@
|
||||
# ZCLAW Pipeline - 医疗行政会议纪要
|
||||
# 输入会议内容,自动生成结构化纪要、决议事项、待办追踪和会签单
|
||||
|
||||
apiVersion: zclaw/v1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: healthcare-meeting-minutes
|
||||
displayName: 医疗会议→纪要→待办
|
||||
category: healthcare
|
||||
industry: healthcare
|
||||
description: 专为医疗行政会议设计,自动生成结构化纪要、决议事项追踪表和会签单
|
||||
tags:
|
||||
- 医疗
|
||||
- 会议纪要
|
||||
- 行政管理
|
||||
- 待办追踪
|
||||
icon: 📝
|
||||
author: ZCLAW
|
||||
version: 1.0.0
|
||||
|
||||
spec:
|
||||
inputs:
|
||||
- name: meeting_content
|
||||
type: text
|
||||
required: true
|
||||
label: 会议内容
|
||||
placeholder: 粘贴会议记录、转录文本或笔记
|
||||
|
||||
- name: meeting_title
|
||||
type: string
|
||||
required: false
|
||||
label: 会议名称
|
||||
placeholder: 例如:2026年第一季度医疗质量委员会
|
||||
|
||||
- name: meeting_type
|
||||
type: select
|
||||
required: false
|
||||
label: 会议类型
|
||||
default: 院务会
|
||||
options:
|
||||
- 院务会
|
||||
- 科主任会
|
||||
- 医疗质量委员会
|
||||
- 药事委员会
|
||||
- 伦理委员会
|
||||
- 感控委员会
|
||||
- 科室例会
|
||||
- 专项讨论
|
||||
|
||||
- name: participants
|
||||
type: string
|
||||
required: false
|
||||
label: 参会人员
|
||||
placeholder: 例如:张院长、李主任、王科长
|
||||
|
||||
steps:
|
||||
# Step 1: 提取会议信息
|
||||
- id: extract_info
|
||||
description: 提取会议基本信息
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
从医疗行政会议内容中提取基本信息:
|
||||
|
||||
会议名称: {{meeting_title}}
|
||||
会议类型: {{meeting_type}}
|
||||
|
||||
会议内容:
|
||||
```
|
||||
{{meeting_content}}
|
||||
```
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"meeting_topic": "会议议题",
|
||||
"date": "会议日期",
|
||||
"location": "会议地点",
|
||||
"chairperson": "主持人",
|
||||
"recorder": "记录人",
|
||||
"attendees": [{"name": "姓名", "title": "职务/科室"}],
|
||||
"quorum": "是否满足法定人数"
|
||||
}
|
||||
input:
|
||||
meeting_content: ${inputs.meeting_content}
|
||||
meeting_title: ${inputs.meeting_title}
|
||||
meeting_type: ${inputs.meeting_type}
|
||||
participants: ${inputs.participants}
|
||||
json_mode: true
|
||||
temperature: 0.3
|
||||
max_tokens: 1500
|
||||
|
||||
# Step 2: 提取议题讨论
|
||||
- id: extract_discussions
|
||||
description: 提取各议题讨论要点
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
从医疗行政会议内容中提取各议题讨论要点:
|
||||
|
||||
会议类型: ${inputs.meeting_type}
|
||||
|
||||
会议内容:
|
||||
```
|
||||
${inputs.meeting_content}
|
||||
```
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"agenda_items": [
|
||||
{
|
||||
"topic": "议题名称",
|
||||
"presenter": "汇报人",
|
||||
"key_points": ["要点1", "要点2"],
|
||||
"discussion_summary": "讨论摘要",
|
||||
"different_opinions": ["不同意见1"],
|
||||
"data_mentioned": ["提及的数据/指标1"]
|
||||
}
|
||||
]
|
||||
}
|
||||
input:
|
||||
meeting_content: ${inputs.meeting_content}
|
||||
meeting_type: ${inputs.meeting_type}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 3000
|
||||
|
||||
# Step 3: 提取决议和待办
|
||||
- id: extract_resolutions
|
||||
description: 提取决议事项和待办追踪
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
从医疗行政会议内容中提取决议和待办:
|
||||
|
||||
议题讨论: ${steps.extract_discussions.output}
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"resolutions": [
|
||||
{
|
||||
"resolution": "决议内容",
|
||||
"resolution_type": "通过|修改后通过|暂缓|否决",
|
||||
"conditions": "附加条件",
|
||||
"votes": "表决情况(如适用)"
|
||||
}
|
||||
],
|
||||
"action_items": [
|
||||
{
|
||||
"task": "待办事项",
|
||||
"assignee": "责任人",
|
||||
"department": "责任科室",
|
||||
"deadline": "完成时限",
|
||||
"priority": "紧急/重要/一般",
|
||||
"status": "新增/跟进",
|
||||
"follow_up_meeting": "下次汇报时间"
|
||||
}
|
||||
],
|
||||
"pending_issues": ["遗留问题1", "遗留问题2"]
|
||||
}
|
||||
input:
|
||||
discussions: ${steps.extract_discussions.output}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 3000
|
||||
|
||||
# Step 4: 生成会签单
|
||||
- id: generate_signoff
|
||||
description: 生成会签单和纪要正文
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
生成医疗行政会议纪要正文和会签单:
|
||||
|
||||
会议信息: ${steps.extract_info.output}
|
||||
议题讨论: ${steps.extract_discussions.output}
|
||||
决议待办: ${steps.extract_resolutions.output}
|
||||
|
||||
请生成 JSON 格式:
|
||||
{
|
||||
"minutes_text": "纪要正文(格式化的完整纪要文本)",
|
||||
"sign_off": {
|
||||
"prepared_by": "纪要整理人",
|
||||
"reviewed_by": "审核人",
|
||||
"approved_by": "签发人",
|
||||
"distribution_list": ["抄送科室1", "抄送科室2"],
|
||||
"confidentiality": "公开/内部/机密"
|
||||
},
|
||||
"preview_text": "200字纪要摘要"
|
||||
}
|
||||
input:
|
||||
info: ${steps.extract_info.output}
|
||||
discussions: ${steps.extract_discussions.output}
|
||||
resolutions: ${steps.extract_resolutions.output}
|
||||
json_mode: true
|
||||
temperature: 0.5
|
||||
max_tokens: 3000
|
||||
|
||||
outputs:
|
||||
meeting_info: ${steps.extract_info.output}
|
||||
discussions: ${steps.extract_discussions.output}
|
||||
resolutions: ${steps.extract_resolutions.output}
|
||||
signoff: ${steps.generate_signoff.output}
|
||||
|
||||
on_error: stop
|
||||
timeout_secs: 180
|
||||
205
pipelines/healthcare/policy-compliance.yaml
Normal file
205
pipelines/healthcare/policy-compliance.yaml
Normal file
@@ -0,0 +1,205 @@
|
||||
# ZCLAW Pipeline - 政策摘要与合规报告
|
||||
# 输入医疗政策文件,自动生成政策摘要、影响分析和合规行动清单
|
||||
|
||||
apiVersion: zclaw/v1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: policy-compliance-report
|
||||
displayName: 政策→摘要→合规报告
|
||||
category: healthcare
|
||||
industry: healthcare
|
||||
description: 输入医疗政策文件或链接,自动生成政策摘要、对本院/科室的影响分析、合规行动清单
|
||||
tags:
|
||||
- 医疗
|
||||
- 政策解读
|
||||
- 合规
|
||||
- 行政管理
|
||||
icon: 📑
|
||||
author: ZCLAW
|
||||
version: 1.0.0
|
||||
|
||||
spec:
|
||||
inputs:
|
||||
- name: policy_content
|
||||
type: text
|
||||
required: true
|
||||
label: 政策内容
|
||||
placeholder: 粘贴政策文件全文或关键条款
|
||||
|
||||
- name: policy_name
|
||||
type: string
|
||||
required: false
|
||||
label: 政策名称
|
||||
placeholder: 例如:关于推进分级诊疗制度建设的指导意见
|
||||
|
||||
- name: institution_type
|
||||
type: select
|
||||
required: false
|
||||
label: 机构类型
|
||||
default: 综合医院
|
||||
options:
|
||||
- 综合医院
|
||||
- 专科医院
|
||||
- 社区卫生中心
|
||||
- 乡镇卫生院
|
||||
- 民营医院
|
||||
- 其他
|
||||
|
||||
- name: department
|
||||
type: string
|
||||
required: false
|
||||
label: 关注科室
|
||||
placeholder: 例如:医务科、医保办、信息科(可多科室)
|
||||
|
||||
- name: compliance_deadline
|
||||
type: string
|
||||
required: false
|
||||
label: 合规截止日期
|
||||
placeholder: 例如:2026年6月30日
|
||||
|
||||
steps:
|
||||
# Step 1: 政策摘要
|
||||
- id: policy_summary
|
||||
description: 生成政策核心要点摘要
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
请对以下医疗政策生成摘要:
|
||||
|
||||
政策名称: {{policy_name}}
|
||||
|
||||
政策内容:
|
||||
```
|
||||
{{policy_content}}
|
||||
```
|
||||
|
||||
请生成 JSON 格式摘要:
|
||||
{
|
||||
"title": "政策标题",
|
||||
"issuing_authority": "发文机关",
|
||||
"effective_date": "生效日期",
|
||||
"core_requirements": [
|
||||
{"requirement": "核心要求", "detail": "具体内容", "priority": "高/中/低"}
|
||||
],
|
||||
"key_changes": ["主要变化1", "主要变化2"],
|
||||
"scope": "适用范围",
|
||||
"summary_200": "200字摘要"
|
||||
}
|
||||
input:
|
||||
policy_content: ${inputs.policy_content}
|
||||
policy_name: ${inputs.policy_name}
|
||||
json_mode: true
|
||||
temperature: 0.3
|
||||
max_tokens: 2500
|
||||
|
||||
# Step 2: 影响分析
|
||||
- id: impact_analysis
|
||||
description: 分析政策对本院/科室的影响
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
分析以下政策对医疗机构的实际影响:
|
||||
|
||||
政策摘要: ${steps.policy_summary.output}
|
||||
机构类型: {{institution_type}}
|
||||
关注科室: {{department}}
|
||||
|
||||
请生成 JSON 格式分析:
|
||||
{
|
||||
"direct_impacts": [
|
||||
{"area": "受影响领域", "impact": "具体影响", "severity": "高/中/低"}
|
||||
],
|
||||
"indirect_impacts": ["间接影响1", "间接影响2"],
|
||||
"affected_workflows": [
|
||||
{"workflow": "受影响的工作流程", "change": "需要的变化", "effort": "实施难度"}
|
||||
],
|
||||
"risk_assessment": {
|
||||
"compliance_risks": ["合规风险1"],
|
||||
"operational_risks": ["运营风险1"],
|
||||
"financial_impact": "财务影响评估"
|
||||
}
|
||||
}
|
||||
input:
|
||||
summary: ${steps.policy_summary.output}
|
||||
institution_type: ${inputs.institution_type}
|
||||
department: ${inputs.department}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 3000
|
||||
|
||||
# Step 3: 合规行动清单
|
||||
- id: action_items
|
||||
description: 生成合规行动清单和时间线
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
基于影响分析,生成合规行动清单:
|
||||
|
||||
政策摘要: ${steps.policy_summary.output}
|
||||
影响分析: ${steps.impact_analysis.output}
|
||||
合规截止日期: {{compliance_deadline}}
|
||||
|
||||
请生成 JSON 格式清单:
|
||||
{
|
||||
"immediate_actions": [
|
||||
{"action": "立即行动", "owner": "责任部门", "deadline": "截止日期", "priority": "紧急"}
|
||||
],
|
||||
"short_term_actions": [
|
||||
{"action": "短期行动(1-3月)", "owner": "责任部门", "deadline": "截止日期", "priority": "高/中"}
|
||||
],
|
||||
"long_term_actions": [
|
||||
{"action": "长期行动(3-12月)", "owner": "责任部门", "milestones": ["里程碑1"]}
|
||||
],
|
||||
"budget_estimation": {
|
||||
"min_cost": "最低成本估计",
|
||||
"max_cost": "最高成本估计",
|
||||
"major_items": ["大项支出1"]
|
||||
}
|
||||
}
|
||||
input:
|
||||
summary: ${steps.policy_summary.output}
|
||||
impact: ${steps.impact_analysis.output}
|
||||
compliance_deadline: ${inputs.compliance_deadline}
|
||||
json_mode: true
|
||||
temperature: 0.4
|
||||
max_tokens: 3000
|
||||
|
||||
# Step 4: 生成合规报告
|
||||
- id: generate_report
|
||||
description: 生成完整合规报告
|
||||
action:
|
||||
type: llm_generate
|
||||
template: |
|
||||
生成完整的政策合规报告摘要:
|
||||
|
||||
政策: ${inputs.policy_name}
|
||||
机构: ${inputs.institution_type}
|
||||
|
||||
请生成 JSON 格式报告:
|
||||
{
|
||||
"title": "合规报告标题",
|
||||
"executive_summary": "200字摘要",
|
||||
"compliance_status": "当前合规状态评估",
|
||||
"gap_analysis": "差距分析摘要",
|
||||
"total_action_items": 0,
|
||||
"urgent_count": 0,
|
||||
"preview_text": "300字报告预览"
|
||||
}
|
||||
input:
|
||||
policy_name: ${inputs.policy_name}
|
||||
institution_type: ${inputs.institution_type}
|
||||
summary: ${steps.policy_summary.output}
|
||||
impact: ${steps.impact_analysis.output}
|
||||
actions: ${steps.action_items.output}
|
||||
json_mode: true
|
||||
temperature: 0.5
|
||||
max_tokens: 1500
|
||||
|
||||
outputs:
|
||||
summary: ${steps.policy_summary.output}
|
||||
impact: ${steps.impact_analysis.output}
|
||||
actions: ${steps.action_items.output}
|
||||
report: ${steps.generate_report.output}
|
||||
|
||||
on_error: stop
|
||||
timeout_secs: 240
|
||||
Reference in New Issue
Block a user