import type { DocumentDepartment, DocumentStatus, LibraryDocument } from './types' import { documentContentHtml } from './contents' const documentStatusLabels: Record = { enabled: '启用中', draft: '草稿', archived: '归档', review: '需复审', } export const documentStatusOptions = Object.entries(documentStatusLabels).map(([key, label]) => ({ key: key as DocumentStatus, label, })) 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: documentContentHtml[id], } } // 文书内容以 2025 年在各科室采集的真实知情同意书原件为准(见 ./contents.ts)。 // 各科室版式差异较大:勾选项目表、安全筛查问卷、多签署人等,均为真实业务结构。 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 项检测项目勾选表。', ), ], }, ], }, ]