/* ============================================================ * 铭道健康家办 · CFHI 中国家庭健康风险指数 · 题库(单一真相源) * ------------------------------------------------------------ * 题库 v0.2 双层制(2026-08-02 Jack 拍板 · 依据 * docs/设计讨论 · CFHI 题库双层制优化 v0.1) * Layer 1 入口版:7 维 × 2 题 = 14 题 + λ 聚合层 2 题(建档快筛) * Layer 2 深度版:7 维 31 题(建档后 7 日内 / 顾问面谈补完) * * 一套题库喂三端: * - RN APP(mingdao-app · Phase 2):直接 import * - 客户端 HTML v0.9 / 顾问端 v2.20:当前为 inline 渲染, * 题目文本与本文件同源;Phase 2 收敛为本文件驱动 * * 计分铁律(与 1-2 算法说明书 §三-附 一致): * 每题 0-3 · 维度分 = round(题分合计 ÷ 题分满分 × 6) 封顶 6 * 优先级:真实数据 > 深度版 > 入口版(按维度独立覆盖) * D1 权重 ×1.5 · 满分 45 归一化 100 · 家庭聚合方案 C 短板敏感 * * 合规红线:D6 深度版 PHQ-2/GAD-2 为国际公版【筛查】工具, * 报告话术只写「风险提示」,永不出现诊断表述。 * * 权利主体:北京助飞科技有限公司 * ============================================================ */ /* 维度定义 · weight 用于个人原始分 R = Σ w_d × s_d */ const CFHI_DIMENSIONS = [ { code: 'D1', name: '免疫基础', weight: 1.5, max: 6, drifts: false, desc: 'MICA/MISS/PISA 免疫量化数据——家族健康的底层基石。' }, { code: 'D2', name: '代谢健康', weight: 1.0, max: 6, drifts: true, desc: '三高 / 尿酸 / BMI / 体脂——代谢综合征是慢病的上游源头。' }, { code: 'D3', name: '慢病管理', weight: 1.0, max: 6, drifts: true, desc: '已确诊慢病的规范随访与趋势管理。' }, { code: 'D4', name: '遗传风险', weight: 1.0, max: 6, drifts: false, desc: '直系亲属重大疾病史 + 高危基因筛查(静态 · 一次录入)。' }, { code: 'D5', name: '生活方式', weight: 1.0, max: 6, drifts: true, desc: '睡眠 / 运动 / 饮食——可干预性最强的日常健康杠杆。' }, { code: 'D6', name: '心理健康', weight: 1.0, max: 6, drifts: true, desc: '压力 / 情绪管理——免疫与代谢的隐性调节变量。' }, { code: 'D7', name: '医疗可及', weight: 1.0, max: 6, drifts: false, desc: '家庭医生 / 私人医生 / 绿通(低频 · 月度结算)。' }, ]; const CFHI_R_MAX = 45; // D1 ×1.5 (9) + D2-D7 ×1.0 (6×6) const CFHI_GRADES = [ // 演示设定值 · 待 ≥30 家族回归校准 { min: 85, grade: 'green', label: '健康完备型' }, { min: 70, grade: 'yellow', label: '局部缺口型' }, { min: 55, grade: 'orange', label: '系统失衡型' }, { min: 0, grade: 'red', label: '高风险型' }, ]; /* ------------------------------------------------------------ * Layer 1 · 入口版 14 题 * 每题 { id, dim, label, options:[{text,score}] } · options 按分值升序(A=0 … D=3) * ------------------------------------------------------------ */ const CFHI_ENTRY = [ /* D1 · 免疫基础 */ { id: 'Q1.1', dim: 'D1', label: '家庭主要成员是否进行过 PISA / MICA / MISS 免疫量化检测?', options: [ { text: '从未 / 不知道', score: 0 }, { text: '仅本人做过一次', score: 1 }, { text: '本人 + 配偶都做过', score: 2 }, { text: '家庭 4 人 + 季度复检', score: 3 } ] }, { id: 'Q1.2', dim: 'D1', label: '是否建立了家族免疫细胞亚群基线档案(CD4/CD8/NK/Treg/B 等 60+ 项)?', options: [ { text: '无', score: 0 }, { text: '仅基础体检数据', score: 1 }, { text: 'MICA 单次基线已有', score: 2 }, { text: '多次 MICA 趋势 + 主任解读', score: 3 } ] }, /* D2 · 代谢健康 */ { id: 'Q2.1', dim: 'D2', label: '近 12 个月,家庭成年成员是否监测过血压 / 血糖 / 血脂 / 尿酸指标?', options: [ { text: '从未监测', score: 0 }, { text: '仅体检时测过', score: 1 }, { text: '高危成员定期自测', score: 2 }, { text: '全员定期监测 + 季度复检', score: 3 } ] }, { id: 'Q2.2', dim: 'D2', label: '近 3 个月,家庭主要成员是否测过 BMI / 腰围,并有体重管理行为(饮食控制 / 运动计划)?', options: [ { text: '未测过也无管理', score: 0 }, { text: '知晓超标但未行动', score: 1 }, { text: '部分成员在管理', score: 2 }, { text: '全员定期测量 + 有明确方案', score: 3 } ] }, /* D3 · 慢病管理 */ { id: 'Q3.1', dim: 'D3', label: '家庭已确诊慢病(高血压 / 糖尿病等)成员,近 6 个月的随访与用药情况?', options: [ { text: '有慢病但无管理', score: 0 }, { text: '断续服药', score: 1 }, { text: '定期复诊 + 规律用药', score: 2 }, { text: '专科团队管理 + 数据追踪', score: 3 } ], noDiseaseScore: 3, note: '无慢病家庭按 3 分计' }, { id: 'Q3.2', dim: 'D3', label: '是否建立慢病指标长期趋势档案(可视化随访)?', options: [ { text: '无', score: 0 }, { text: '纸质零散记录', score: 1 }, { text: '电子档案', score: 2 }, { text: '平台化趋势 + 预警', score: 3 } ] }, /* D4 · 遗传风险 */ { id: 'Q4.1', dim: 'D4', label: '是否完整记录直系三代亲属(父母 / 兄弟姐妹 / 子女)的重大疾病史?', options: [ { text: '未记录 / 不清楚', score: 0 }, { text: '仅口头记忆', score: 1 }, { text: '有书面档案但未更新', score: 2 }, { text: '定期更新的家族病史档案 + 基因检测', score: 3 } ] }, { id: 'Q4.2', dim: 'D4', label: '对家族高危遗传风险(如 BRCA / APOE / 心血管基因)是否有针对性筛查?', options: [ { text: '从未筛查', score: 0 }, { text: '仅本人做过部分基因检测', score: 1 }, { text: '家庭主要成员都做了基础筛查', score: 2 }, { text: '系统化全家族基因风险图谱 + 干预方案', score: 3 } ] }, /* D5 · 生活方式 */ { id: 'Q5.1', dim: 'D5', label: '过去 4 周,家庭主要成员平均每周有几天进行 ≥30 分钟中等强度运动(快走 / 慢跑 / 游泳等)?', options: [ { text: '0 天', score: 0 }, { text: '1-2 天', score: 1 }, { text: '3-4 天', score: 2 }, { text: '≥5 天', score: 3 } ] }, { id: 'Q5.2', dim: 'D5', label: '过去 7 天,家庭主要成员有几天做到「23:00 前入睡 + 三餐规律」?', options: [ { text: '0-1 天', score: 0 }, { text: '2-3 天', score: 1 }, { text: '4-5 天', score: 2 }, { text: '6-7 天', score: 3 } ] }, /* D6 · 心理健康 */ { id: 'Q6.1', dim: 'D6', label: '过去 3 个月,家庭主要成员是否出现过持续一周以上的明显压力或情绪低落?', options: [ { text: '经常(每月都有)', score: 0 }, { text: '出现过 1-2 次', score: 1 }, { text: '很少', score: 2 }, { text: '没有,且家庭有固定的减压方式', score: 3 } ] }, { id: 'Q6.2', dim: 'D6', label: '近 12 个月,家庭是否使用过心理评估或咨询资源?', options: [ { text: '从未', score: 0 }, { text: '有需要时才找', score: 1 }, { text: '做过定期评估', score: 2 }, { text: '常态化支持 + 固定心理顾问', score: 3 } ] }, /* D7 · 医疗可及 */ { id: 'Q7.1', dim: 'D7', label: '家庭是否配有家庭医生 / 私人医生等长期健康顾问?', options: [ { text: '无', score: 0 }, { text: '仅普通就诊', score: 1 }, { text: '有家庭医生', score: 2 }, { text: '私人医生 + 专科绿通', score: 3 } ] }, { id: 'Q7.2', dim: 'D7', label: '是否具备优质医疗资源快速通道(VIP / 绿通 / 海外就医)?', options: [ { text: '无', score: 0 }, { text: '单一渠道', score: 1 }, { text: '多渠道', score: 2 }, { text: '全球绿通 + 主任对接', score: 3 } ] }, ]; /* λ 家庭聚合层 · 两层共用 · 不计入维度分 */ const CFHI_LAMBDA = [ { id: 'Qλ.1', label: '家族是否设立"健康决策机制"(如家族健康会议、首席健康顾问、医疗预案授权书)?', options: [ { text: '无', lambda: 0.80 }, { text: '口头共识但无书面机制', lambda: 0.85 }, { text: '设立健康决策人但未系统化', lambda: 0.90 }, { text: '完整健康治理体系 + 跨代衔接机制', lambda: 1.00 } ] }, { id: 'Qλ.2', label: '家庭账户完整度(成员接入率 / 档案更新频率)如何?', options: [ { text: '仅 1 人建档', delta: -0.05 }, { text: '核心成员已建档', delta: 0.00 }, { text: '全员建档 + 定期更新', delta: 0.05 } ] }, ]; const CFHI_LAMBDA_CLAMP = [0.75, 1.05]; /* ------------------------------------------------------------ * Layer 2 · 深度版 31 题(D6 含 PHQ-2/GAD-2 · 筛查非诊断) * ------------------------------------------------------------ */ const CFHI_DEEP = [ /* D1 · 免疫基础(4 题) */ { id: 'D1.1', dim: 'D1', label: '家庭主要成员最近一次免疫量化检测(PISA/MICA/MISS)是什么时候?', options: [ { text: '从未', score: 0 }, { text: '超过 24 个月前', score: 1 }, { text: '12-24 个月内', score: 2 }, { text: '12 个月内', score: 3 } ] }, { id: 'D1.2', dim: 'D1', label: '家庭做过免疫量化检测的成员覆盖情况是?', options: [ { text: '无人', score: 0 }, { text: '仅 1 人', score: 1 }, { text: '2-3 人', score: 2 }, { text: '全员 + 定期复测', score: 3 } ] }, { id: 'D1.3', dim: 'D1', label: '过去 12 个月,家庭主要成员感冒 / 呼吸道感染的次数?', options: [ { text: '≥6 次', score: 0 }, { text: '4-5 次', score: 1 }, { text: '2-3 次', score: 2 }, { text: '0-1 次', score: 3 } ] }, { id: 'D1.4', dim: 'D1', label: '家庭主要成员是否有反复口腔溃疡 / 伤口愈合慢 / 慢性过敏等免疫相关表现?', options: [ { text: '多人多种,长期存在', score: 0 }, { text: '有 1 种,反复出现', score: 1 }, { text: '偶有,可自愈', score: 2 }, { text: '无', score: 3 } ] }, /* D2 · 代谢健康(5 题) */ { id: 'D2.1', dim: 'D2', label: '近 12 个月,家庭主要成员是否检测过尿酸?是否知晓自己的数值?', options: [ { text: '从未检测', score: 0 }, { text: '体检测过但不记得数值', score: 1 }, { text: '知晓数值,偏高但未干预', score: 2 }, { text: '知晓数值且达标 / 偏高但已在干预', score: 3 } ] }, { id: 'D2.2', dim: 'D2', label: '过去 3 个月,家庭主要成员的饮酒频率?', options: [ { text: '几乎每天', score: 0 }, { text: '每周 3 次以上', score: 1 }, { text: '每周 1-2 次', score: 2 }, { text: '很少或不饮', score: 3 } ] }, { id: 'D2.3', dim: 'D2', label: '过去 7 天,家庭主要成员饮用含糖饮料(奶茶 / 可乐 / 果汁饮料等)的天数?', options: [ { text: '5 天以上', score: 0 }, { text: '3-4 天', score: 1 }, { text: '1-2 天', score: 2 }, { text: '0 天', score: 3 } ] }, { id: 'D2.4', dim: 'D2', label: '过去 7 天,家庭主要成员点外卖 / 外食(高油高盐)的餐数占比?', options: [ { text: '超过一半', score: 0 }, { text: '约三分之一', score: 1 }, { text: '偶尔', score: 2 }, { text: '几乎不', score: 3 } ] }, { id: 'D2.5', dim: 'D2', label: '近 3 个月,家庭主要成员是否量过腰围?结果如何?', options: [ { text: '没量过', score: 0 }, { text: '量过,超标(男 ≥90cm / 女 ≥85cm)未管理', score: 1 }, { text: '量过,超标但在管理', score: 2 }, { text: '量过,达标', score: 3 } ] }, /* D3 · 慢病管理(4 题 · 无慢病家庭按满分计) */ { id: 'D3.1', dim: 'D3', label: '家庭已确诊慢病的成员共有几种慢病?(高血压 / 糖尿病 / 高血脂 / 痛风 / 冠心病等)', options: [ { text: '单人 ≥3 种', score: 0 }, { text: '单人 2 种', score: 1 }, { text: '单人 1 种', score: 2 }, { text: '无慢病', score: 3 } ] }, { id: 'D3.2', dim: 'D3', label: '确诊成员最近一次专科复诊 / 随访是多久前?', options: [ { text: '超过 12 个月 / 从未', score: 0 }, { text: '6-12 个月', score: 1 }, { text: '3-6 个月', score: 2 }, { text: '3 个月内,按医嘱频率', score: 3 } ], noDiseaseSkip: true }, { id: 'D3.3', dim: 'D3', label: '过去 7 天,确诊成员的用药情况是?', options: [ { text: '经常漏服 / 自行停药', score: 0 }, { text: '漏服 2 天以上', score: 1 }, { text: '漏服 1 天', score: 2 }, { text: '全部按时服用', score: 3 } ], noDiseaseSkip: true }, { id: 'D3.4', dim: 'D3', label: '确诊成员的血压 / 血糖等关键指标,平时如何记录?', options: [ { text: '不记录', score: 0 }, { text: '偶尔自测,无留存', score: 1 }, { text: '定期自测 + 记录', score: 2 }, { text: '设备自动同步 + 趋势可查', score: 3 } ], noDiseaseSkip: true }, /* D4 · 家族遗传风险(4 题 · 静态) */ { id: 'D4.1', dim: 'D4', label: '一级亲属(父母 / 兄弟姐妹 / 子女)中,确诊过几类重大疾病?(恶性肿瘤 / 心脑血管 / 糖尿病 / 阿尔茨海默等)', options: [ { text: '≥3 类', score: 0 }, { text: '2 类', score: 1 }, { text: '1 类', score: 2 }, { text: '无', score: 3 } ] }, { id: 'D4.2', dim: 'D4', label: '上述疾病的最小确诊年龄是?', options: [ { text: '<50 岁', score: 0 }, { text: '50-64 岁', score: 1 }, { text: '≥65 岁', score: 2 }, { text: '无亲属患病', score: 3 } ] }, { id: 'D4.3', dim: 'D4', label: '家庭成员是否做过遗传性基因筛查(如 BRCA / APOE / 肿瘤易感基因 panel)?', options: [ { text: '从未', score: 0 }, { text: '仅 1 人做过消费级检测', score: 1 }, { text: '主要成员做过医学级筛查', score: 2 }, { text: '全家基因风险图谱 + 主任解读', score: 3 } ] }, { id: 'D4.4', dim: 'D4', label: '家族病史档案最近一次更新是?', options: [ { text: '无档案', score: 0 }, { text: '有,但超过 2 年未更新', score: 1 }, { text: '1-2 年内更新过', score: 2 }, { text: '1 年内更新 + 有筛查计划', score: 3 } ] }, /* D5 · 生活方式(5 题 · PSQI/IPAQ 简项) */ { id: 'D5.1', dim: 'D5', label: '(睡眠·PSQI 简项)过去 1 个月,家庭主要成员通常躺下后多久能入睡?', options: [ { text: '>60 分钟', score: 0 }, { text: '31-60 分钟', score: 1 }, { text: '16-30 分钟', score: 2 }, { text: '≤15 分钟', score: 3 } ] }, { id: 'D5.2', dim: 'D5', label: '(睡眠·PSQI 简项)过去 1 个月,每周有几天会因夜醒 / 早醒而影响睡眠?', options: [ { text: '≥3 天', score: 0 }, { text: '2 天', score: 1 }, { text: '1 天', score: 2 }, { text: '0 天', score: 3 } ] }, { id: 'D5.3', dim: 'D5', label: '(运动·IPAQ 简项)过去 7 天,有几天进行过 ≥30 分钟中等强度运动(快走 / 骑行 / 游泳等,心跳明显加快)?', options: [ { text: '0 天', score: 0 }, { text: '1-2 天', score: 1 }, { text: '3-4 天', score: 2 }, { text: '≥5 天', score: 3 } ] }, { id: 'D5.4', dim: 'D5', label: '(运动·IPAQ 简项)过去 7 天,平均每天静坐(办公 / 刷手机 / 看电视)时长?', options: [ { text: '>10 小时', score: 0 }, { text: '8-10 小时', score: 1 }, { text: '5-7 小时', score: 2 }, { text: '<5 小时', score: 3 } ] }, { id: 'D5.5', dim: 'D5', label: '(饮食)过去 7 天,家庭主要成员有几天做到「蔬菜 ≥300g + 水果 + 优质蛋白」的均衡饮食?', options: [ { text: '0-1 天', score: 0 }, { text: '2-3 天', score: 1 }, { text: '4-5 天', score: 2 }, { text: '6-7 天', score: 3 } ] }, /* D6 · 心理健康(5 题 · PHQ-2 + GAD-2 国际公版 · 筛查非诊断) */ { id: 'D6.1', dim: 'D6', scale: 'PHQ-2', label: '过去 2 周,「做事时提不起劲或没有兴趣」出现的频率?', options: [ { text: '几乎每天', score: 0 }, { text: '一半以上的天数', score: 1 }, { text: '有几天', score: 2 }, { text: '完全不会', score: 3 } ] }, { id: 'D6.2', dim: 'D6', scale: 'PHQ-2', label: '过去 2 周,「感到心情低落、沮丧或绝望」出现的频率?', options: [ { text: '几乎每天', score: 0 }, { text: '一半以上的天数', score: 1 }, { text: '有几天', score: 2 }, { text: '完全不会', score: 3 } ] }, { id: 'D6.3', dim: 'D6', scale: 'GAD-2', label: '过去 2 周,「感觉紧张、焦虑或急切」出现的频率?', options: [ { text: '几乎每天', score: 0 }, { text: '一半以上的天数', score: 1 }, { text: '有几天', score: 2 }, { text: '完全不会', score: 3 } ] }, { id: 'D6.4', dim: 'D6', scale: 'GAD-2', label: '过去 2 周,「不能停止或控制担忧」出现的频率?', options: [ { text: '几乎每天', score: 0 }, { text: '一半以上的天数', score: 1 }, { text: '有几天', score: 2 }, { text: '完全不会', score: 3 } ] }, { id: 'D6.5', dim: 'D6', label: '过去 7 天,醒来时感到「休息充分、精力充沛」的天数?', options: [ { text: '0-1 天', score: 0 }, { text: '2-3 天', score: 1 }, { text: '4-5 天', score: 2 }, { text: '6-7 天', score: 3 } ] }, /* D7 · 医疗可及(4 题) */ { id: 'D7.1', dim: 'D7', label: '家庭目前最高可用的就医通道是?(社区 / 三甲普通号 / 特需 / 私立 / 绿通 / 海外)', options: [ { text: '仅社区或普通号', score: 0 }, { text: '含特需或私立', score: 1 }, { text: '含绿通服务', score: 2 }, { text: '绿通 + 海外通道 + 固定对接人', score: 3 } ] }, { id: 'D7.2', dim: 'D7', label: '家庭主要成员最近一次全面体检是多久前?', options: [ { text: '超过 3 年 / 从未', score: 0 }, { text: '2-3 年', score: 1 }, { text: '1-2 年', score: 2 }, { text: '1 年内', score: 3 } ] }, { id: 'D7.3', dim: 'D7', label: '家庭健康档案「三件套」(检测报告 + 体检报告 + 病史记录)完备情况?', options: [ { text: '都没有 / 散落各处', score: 0 }, { text: '有 1 件', score: 1 }, { text: '有 2 件', score: 2 }, { text: '三件套齐备且近 6 个月有更新', score: 3 } ] }, { id: 'D7.4', dim: 'D7', label: '家庭成员突发重病时,是否有明确的应急预案(首选医院 / 联系人 / 授权安排)?', options: [ { text: '从未想过', score: 0 }, { text: '口头说过,无落实', score: 1 }, { text: '有书面预案', score: 2 }, { text: '预案 + 每年演练 / 复核', score: 3 } ] }, ]; /* ------------------------------------------------------------ * 计分函数(纯函数 · 与 1-2 算法说明书同构) * ------------------------------------------------------------ */ /* 维度分:round(题分合计 ÷ 题分满分 × 6) 封顶 6 * answers: { questionId: score } · layer: 'entry' | 'deep' */ function cfhiDimScores(answers, layer) { const bank = layer === 'deep' ? CFHI_DEEP : CFHI_ENTRY; const out = {}; CFHI_DIMENSIONS.forEach(function (d) { const qs = bank.filter(function (q) { return q.dim === d.code; }); if (!qs.length) { out[d.code] = null; return; } let sum = 0, max = 0; qs.forEach(function (q) { max += 3; const a = answers[q.id]; sum += (typeof a === 'number') ? a : 0; }); out[d.code] = Math.min(6, Math.round(sum / max * 6)); }); return out; } /* 个人指数:P = round(Σ w_d × s_d / 45 × 100) · dimScores: { D1..D7: 0-6 } */ function cfhiPersonalIndex(dimScores) { let R = 0; CFHI_DIMENSIONS.forEach(function (d) { const s = dimScores[d.code]; if (typeof s === 'number') R += d.weight * s; }); return Math.round(R / CFHI_R_MAX * 100); } /* λ 治理系数:λ = clamp(λ_机制 + Δ账户, [0.75, 1.05]) */ function cfhiLambda(mechanism, accountDelta) { const v = mechanism + (accountDelta || 0); return Math.min(CFHI_LAMBDA_CLAMP[1], Math.max(CFHI_LAMBDA_CLAMP[0], v)); } /* 家庭聚合 · 方案 C 短板敏感:F = round((0.75×mean + 0.25×min) × λ) */ function cfhiFamilyIndex(personalIndexes, lambda) { if (!personalIndexes.length) return 0; const mean = personalIndexes.reduce(function (a, b) { return a + b; }, 0) / personalIndexes.length; const min = Math.min.apply(null, personalIndexes); return Math.round((0.75 * mean + 0.25 * min) * lambda); } /* 分级:🟢 ≥85 / 🟡 70-84 / 🟠 55-69 / 🔴 <55(演示阈值 · 待回归校准) */ function cfhiGrade(score) { for (let i = 0; i < CFHI_GRADES.length; i++) { if (score >= CFHI_GRADES[i].min) return CFHI_GRADES[i]; } return CFHI_GRADES[CFHI_GRADES.length - 1]; } /* ------------------------------------------------------------ * 导出:浏览器全局 + CommonJS(RN / Node 直接 import) * ------------------------------------------------------------ */ const CFHI_QUESTION_BANK = { version: '0.2', dimensions: CFHI_DIMENSIONS, R_MAX: CFHI_R_MAX, grades: CFHI_GRADES, entry: CFHI_ENTRY, lambda: CFHI_LAMBDA, lambdaClamp: CFHI_LAMBDA_CLAMP, deep: CFHI_DEEP, scoring: { dimScores: cfhiDimScores, personalIndex: cfhiPersonalIndex, lambdaOf: cfhiLambda, familyIndex: cfhiFamilyIndex, gradeOf: cfhiGrade, }, }; if (typeof module !== 'undefined' && module.exports) module.exports = CFHI_QUESTION_BANK; if (typeof window !== 'undefined') window.CFHI_QUESTION_BANK = CFHI_QUESTION_BANK;