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
206 lines
6.3 KiB
YAML
206 lines
6.3 KiB
YAML
# 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
|