// vital-statistics-system-webapp — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "vital-notifications", label: "人口動態届出", endpoint: "/api/vital-notifications",
    cols: [{ key: "notificationNumber", label: "届出番号" }, { key: "type", label: "届出種別", badge: true }, { key: "occurrenceDate", label: "発生日" }, { key: "declarantName", label: "届出人" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "type", label: "届出種別", required: true, type: "select", options: ["birth", "death", "marriage", "divorce", "stillbirth", "fetal_death"] }, { name: "occurrenceDate", label: "発生日", type: "date" }, { name: "declarantName", label: "届出人氏名", placeholder: "山田 太郎" }] },
],
  calc: { title: "人口動態率の試算", endpoint: "/api/vital/rates", primary: { key: "naturalIncrease", label: "自然増減", format: "text" }, fields: [ { key: "births", label: "出生数", type: "number", default: 0 }, { key: "deaths", label: "死亡数", type: "number", default: 0 }, { key: "marriages", label: "婚姻数", type: "number", default: 0 }, { key: "divorces", label: "離婚数", type: "number", default: 0 }, { key: "population", label: "人口", type: "number", placeholder: "100000" } ] },
};
