{
  "rules": [
    {"id": "primary_endpoint_change", "match_type": "primary_endpoint", "score": 3, "label": "Primary endpoint 변경", "description": "primary endpoint 정의/시점/구성 변경 — 임상시험 핵심 변경"},
    {"id": "primary_endpoint_weakening", "keywords": ["보수적", "약화", "no target", "removed"], "score": 3, "label": "Primary endpoint 약화", "description": "primary 정의 보수적 변경(target 제거, 절대값 → %, 제외 등)"},
    {"id": "sample_size_increase_large", "match_type": "sample_size", "delta_pct_min": 20.0, "delta_direction": "increase", "score": 2, "label": "Sample size ≥20% 증가", "description": "정규 power 재산정 신호"},
    {"id": "sample_size_decrease", "match_type": "sample_size", "delta_direction": "decrease", "score": 3, "label": "Sample size 감소(futility 시사)", "description": "표본 감소는 종종 futility/feasibility 문제"},
    {"id": "termination", "match_type": "status", "keywords_after": ["Terminated", "Withdrawn", "Suspended"], "score": 3, "label": "Termination/Suspension/Withdrawal", "description": "임상시험 중단 — 사유 분류 필수"},
    {"id": "analysis_plan_change_posthoc", "match_type": "analysis_plan", "keywords": ["post-hoc", "sensitivity", "Bayesian", "imputation"], "score": 2, "label": "Analysis plan post-hoc 변경", "description": "primary analysis 외 sensitivity 추가"},
    {"id": "sponsor_change", "match_type": "sponsor", "score": 2, "label": "Sponsor 변경 / co-sponsor 추가", "description": "재정·전략 변경"},
    {"id": "funding_change", "match_type": "funding", "score": 2, "label": "Funding source 변경", "description": "industry → academic 또는 역방향"},
    {"id": "completion_date_delay", "match_type": "target_completion_date", "delay_months_min": 12, "score": 1, "label": "Target completion ≥12개월 지연", "description": "장기 지연은 risk"},
    {"id": "completion_date_delay_short", "match_type": "target_completion_date", "delay_months_min": 3, "delay_months_max": 12, "score": 1, "label": "Target completion 3~12개월 지연", "description": "단기 지연"},
    {"id": "comparator_change", "match_type": "comparator", "score": 3, "label": "Comparator 변경", "description": "placebo → active 또는 반대 — 통계 가설 변경"},
    {"id": "exclusion_tightened_safety", "match_type": "exclusion", "keywords": ["safety", "AE", "DILI"], "score": 2, "label": "Exclusion 강화 (safety 사유)", "description": "AE signal 신호"}
  ],
  "termination_reason_categories": [
    {"key": "AE", "keywords": ["AE", "safety", "DILI", "adverse", "toxicity"], "label": "이상반응(AE)"},
    {"key": "futility", "keywords": ["futility", "interim", "no benefit"], "label": "Futility"},
    {"key": "funding", "keywords": ["funding", "business", "sponsor decision"], "label": "Funding/Business"},
    {"key": "recruitment", "keywords": ["recruitment", "enrollment", "feasibility"], "label": "Recruitment"},
    {"key": "other", "keywords": [], "label": "기타"}
  ],
  "crisis_score_thresholds": {
    "alert": 6,
    "watch": 3
  }
}
