# ═══════════════════════════════════════════════════════════
# 共享字典 · 医生建议文本 → PAC 推荐码(IMPLANT_RECOMMENDED 等)
# 【临床通用层】"建议种植/建议拔除"等标准表达(enum 精确 + keyword 含词兜底)。
# 宿主标点变体等痕迹词与 _default 留宿主 yaml。源出处:jvs-dw recommendation.yaml。
# ═══════════════════════════════════════════════════════════
enum_mapping:
  code:
    # ── 种植 ──
    建议种植:           IMPLANT_RECOMMENDED
    建议种植修复:       IMPLANT_RECOMMENDED
    推荐种植:           IMPLANT_RECOMMENDED
    建议种植治疗:       IMPLANT_RECOMMENDED
    建议种植牙:         IMPLANT_RECOMMENDED

    # ── 戴冠 / 修复 ──
    建议戴冠:           CROWN_RECOMMENDED
    建议冠修复:         CROWN_RECOMMENDED
    建议全冠:           CROWN_RECOMMENDED
    建议桩核冠:         CROWN_RECOMMENDED
    建议做冠:           CROWN_RECOMMENDED
    推荐冠修复:         CROWN_RECOMMENDED

    # ── 充填 ──
    建议充填:           FILLING_RECOMMENDED
    建议树脂充填:       FILLING_RECOMMENDED
    建议补牙:           FILLING_RECOMMENDED

    # ── 牙周基础 ──
    建议洁牙:           SRP_RECOMMENDED
    建议龈上洁治:       SRP_RECOMMENDED
    建议牙周治疗:       SRP_RECOMMENDED
    建议牙周基础治疗:   SRP_RECOMMENDED

    # ── 拔除 ──
    建议拔除:           EXTRACTION_RECOMMENDED
    建议拔牙:           EXTRACTION_RECOMMENDED
    推荐拔除:           EXTRACTION_RECOMMENDED

    # ── 复查 ──
    建议年度复查:       ANNUAL_REVIEW_RECOMMENDED
    建议定期复查:       ANNUAL_REVIEW_RECOMMENDED
    建议复查:           ANNUAL_REVIEW_RECOMMENDED

    # ── 正畸咨询 ──
    建议正畸咨询:       ORTHO_CONSULT_RECOMMENDED
    建议正畸:           ORTHO_CONSULT_RECOMMENDED
    建议矫正:           ORTHO_CONSULT_RECOMMENDED

# ─────────────────────────────────────────────────────────
# 含词兜底 —— 精确 enum 未命中时,按序含词匹配 → 召回码。
# 治本长尾:"建议X"变体太多(建议充填治疗/建议根管治疗后冠修复/建议拔除后种植…),
# 精确白名单永远漏(谢玉兰 44 "建议充填治疗" 漏配 → null → 44 漏召)。引擎按 canonicalKey 通用。
# 顺序=优先级:高价值/主操作在前(种植>冠、根管>冠、拔除独立)。错配最坏=_default(现状),无回归。
keyword_mapping:
  code:
    - { value: IMPLANT_RECOMMENDED,             any: [种植, 植体] }
    - { value: RCT_RECOMMENDED,                 any: [根管, RCT, 牙髓] }
    - { value: EXTRACTION_RECOMMENDED,          any: [拔除, 拔牙] }
    - { value: CROWN_RECOMMENDED,               any: [冠, 桥, 桩核] }
    - { value: FILLING_RECOMMENDED,             any: [充填, 补牙, 树脂] }
    - { value: HARD_TISSUE_REPAIR_RECOMMENDED,  any: [楔状, 牙体, 嵌体, 缺损] }
    - { value: SRP_RECOMMENDED,                 any: [洁治, 洗牙, 牙周, 龈下, 刮治] }
    - { value: ORTHO_CONSULT_RECOMMENDED,       any: [正畸, 矫正, 矫治] }
    - { value: GUM_TREATMENT_RECOMMENDED,       any: [牙龈, 牙槽嵴, 系带] }
    - { value: JAW_CYST_REMOVAL_RECOMMENDED,    any: [囊肿] }
    - { value: ERUPTION_INTERVENTION_RECOMMENDED, any: [萌出, 乳牙滞留, 多生牙] }
