// tokutei-kenshin-system — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "tokutei-subjects", label: "特定健診対象者", endpoint: "/api/tokutei-subjects",
    cols: [{ key: "subjectNumber", label: "対象者番号" }, { key: "fullName", label: "氏名" }, { key: "birthDate", label: "生年月日" }, { key: "insurerNumber", label: "保険者番号" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "fullName", label: "氏名", required: true, placeholder: "山田 太郎" }, { name: "birthDate", label: "生年月日", required: true, type: "date" }, { name: "insurerNumber", label: "保険者番号", required: true, placeholder: "12345678" }, { name: "fiscalYear", label: "年度", required: true, placeholder: "2026" }] },
  { id: "tokutei-results", label: "特定健診結果", endpoint: "/api/tokutei-results",
    cols: [{ key: "subjectId", label: "対象者ID" }, { key: "examinedDate", label: "受診日" }, { key: "supportLevel", label: "保健指導レベル", badge: true }, { key: "recordedAt", label: "記録日時" }],
    createFields: [{ name: "subjectId", label: "対象者ID", required: true, placeholder: "登録済み対象者のIDを入力" }, { name: "examinedDate", label: "受診日", required: true, type: "date" }] },
],
  calc: { title: "特定健診 対象の試算", endpoint: "/api/tokutei/target", primary: { key: "eligible", label: "対象", format: "bool" }, fields: [ { key: "age", label: "年齢", type: "number", placeholder: "55" }, { key: "insured", label: "医療保険加入", type: "select", options: [ { value: true, label: "あり" }, { value: false, label: "なし" } ] } ] },
};
