build(deps): 新增 CKEditor 与 TinyMCE 依赖
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import type { DocumentDepartment, DocumentStatus, LibraryDocument } from './types'
|
||||
|
||||
import { presetDocumentContentHtml } from './preset-contents'
|
||||
import type { DocumentDepartment, DocumentStatus } from './types'
|
||||
|
||||
const documentStatusLabels: Record<DocumentStatus, string> = {
|
||||
enabled: '启用中',
|
||||
@@ -16,90 +14,5 @@ export const documentStatusOptions = Object.entries(documentStatusLabels).map(([
|
||||
|
||||
export { documentStatusLabels }
|
||||
|
||||
function createDocument(
|
||||
id: string,
|
||||
name: string,
|
||||
code: string,
|
||||
version: string,
|
||||
description: string,
|
||||
status: DocumentStatus = 'enabled',
|
||||
): LibraryDocument {
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
code,
|
||||
version,
|
||||
description,
|
||||
status,
|
||||
contentHtml: presetDocumentContentHtml[id],
|
||||
}
|
||||
}
|
||||
|
||||
// 预置文书为 2025 年在各科室采集的真实知情同意书原件(HTML 已固化在 preset-contents.ts),
|
||||
// 也可在 Word 编辑器中继续维护;科室自维护的新文书通过 Word 编辑器录入。
|
||||
export const documentLibrary: DocumentDepartment[] = [
|
||||
{
|
||||
key: 'medical-imaging',
|
||||
name: '医学影像科',
|
||||
campus: 'all',
|
||||
categories: [
|
||||
{
|
||||
name: '磁共振检查',
|
||||
documents: [
|
||||
createDocument(
|
||||
'doc-img-mri-001',
|
||||
'MRI 检查预约单暨知情同意书',
|
||||
'TPL-IMG-MRI-001',
|
||||
'v1.0.0',
|
||||
'含检查预约登记、病人检查准备及注意事项、婴幼儿检查特殊要求,背面为 MRI 安全筛查表(起搏器、金属植入物、孕产史等逐项勾选),需患者或家属签名确认。',
|
||||
),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'medical-laboratory',
|
||||
name: '医学检验科',
|
||||
campus: 'all',
|
||||
categories: [
|
||||
{
|
||||
name: '基因检测告知',
|
||||
documents: [
|
||||
createDocument(
|
||||
'doc-lab-infection-gene-001',
|
||||
'感染基因高通量测序自费项目知情同意书',
|
||||
'TPL-LAB-IGT-001',
|
||||
'v1.0.0',
|
||||
'感染基因 mNGS 检测原理、局限性与潜在风险、受检者知情确认,附 3 项自费检测项目勾选表,自费项目需患者签字确认。',
|
||||
),
|
||||
createDocument(
|
||||
'doc-lab-coop-gene-001',
|
||||
'对外合作或自费基因检测项目知情同意书',
|
||||
'TPL-LAB-CGT-001',
|
||||
'v2025.06',
|
||||
'2025.6.24 版,覆盖医学检验科、生殖医学中心、宫内儿科疾病诊治中心、临床遗传中心、病理科共 60 项对外合作或自费检测项目,含收费金额、收费类别与执行科室,患方勾选后签署。',
|
||||
),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'clinical-genetics',
|
||||
name: '临床遗传中心',
|
||||
campus: 'all',
|
||||
categories: [
|
||||
{
|
||||
name: '肿瘤基因检测',
|
||||
documents: [
|
||||
createDocument(
|
||||
'doc-gen-onco-gene-001',
|
||||
'肿瘤基因高通量测序自费项目知情同意书',
|
||||
'TPL-GEN-OGT-001',
|
||||
'v1.0.0',
|
||||
'肿瘤基因 NGS 分子检测原理、局限性与潜在风险、受检者知情确认,附 BRCA1/2 及 NGS 小/中/大 panel 共 4 项检测项目勾选表。',
|
||||
),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
// Word 自维护方案:文书库初始为空,所有文书由科室通过 Word 编辑器(粘贴 / 导入 .docx)创建维护。
|
||||
export const documentLibrary: DocumentDepartment[] = []
|
||||
|
||||
Reference in New Issue
Block a user