// ShogaishaFukushiSystem — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "disability-persons", label: "障害者", endpoint: "/api/disability-persons",
    cols: [{ key: "certificateNumber", label: "手帳番号" }, { key: "fullName", label: "氏名" }, { key: "disabilityType", label: "障害種別", badge: true }, { key: "disabilityGrade", label: "等級" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "fullName", label: "氏名", required: true, placeholder: "山田 太郎" }, { name: "birthDate", label: "生年月日", required: true, type: "date" }, { name: "disabilityType", label: "障害種別", required: true, type: "select", options: ["physical", "intellectual", "mental", "developmental"] }, { name: "address", label: "住所", placeholder: "東京都..." }] },
  { id: "disability-services", label: "障害福祉サービス", endpoint: "/api/disability-services",
    cols: [{ key: "personId", label: "障害者ID" }, { key: "serviceType", label: "サービス種別" }, { key: "startDate", label: "開始日" }, { key: "status", label: "状態", badge: true }, { key: "createdAt", label: "登録日時" }],
    createFields: [{ name: "personId", label: "障害者ID", required: true, placeholder: "登録済み障害者のIDを入力" }, { name: "serviceType", label: "サービス種別", required: true, placeholder: "居宅介護" }, { name: "startDate", label: "開始日", required: true, type: "date" }] },
],
  calc: { title: "障害福祉サービス 利用者負担上限の試算", endpoint: "/api/shogai/burden", primary: { key: "monthlyCap", label: "負担上限月額", format: "yen" }, fields: [ { key: "isWelfare", label: "生活保護世帯", type: "select", options: [ { value: false, label: "いいえ" }, { value: true, label: "はい" } ] }, { key: "taxNonTaxable", label: "市町村民税非課税", type: "select", options: [ { value: false, label: "いいえ（課税）" }, { value: true, label: "はい（非課税）" } ] }, { key: "taxIncomeLevy", label: "市町村民税所得割額（円）", type: "number", default: 0 }, { key: "isChild", label: "障害児", type: "select", options: [ { value: false, label: "いいえ" }, { value: true, label: "はい" } ] } ] },
};
