{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Chuẩn hoá theo tuổi: từ 12.2 xuống 4.9 ca",
    "quality_profile": "showcase",
    "views": [
      {
        "id": "crude",
        "label": "Cách thô",
        "focus": [
          "rate",
          "crude"
        ],
        "note": "Một tỉ lệ chung 909.3/100k/năm cho mọi người, quy về 70.000 người-tuần: 12.2 ca."
      },
      {
        "id": "std",
        "label": "Theo tuổi",
        "focus": [
          "census",
          "agerate",
          "mult",
          "sum"
        ],
        "note": "Mỗi nhóm tuổi: số người dự × tỉ lệ chết của đúng nhóm đó × 1/52, rồi cộng lại: 4.9 ca."
      }
    ],
    "legend": {
      "mode": "hidden"
    }
  },
  "lanes": [
    {
      "id": "crude",
      "label": "Cách thô"
    },
    {
      "id": "std",
      "label": "Theo tuổi"
    },
    {
      "id": "rates",
      "label": "Tỉ lệ theo tuổi"
    }
  ],
  "phases": [
    {
      "id": "p1",
      "label": "Dữ liệu",
      "fromCol": 0,
      "toCol": 0
    },
    {
      "id": "p2",
      "label": "Tính kỳ vọng 1 tuần",
      "fromCol": 1,
      "toCol": 2,
      "variant": "emphasis"
    }
  ],
  "mainPath": [
    "census",
    "mult",
    "sum"
  ],
  "nodes": [
    {
      "id": "rate",
      "lane": "crude",
      "col": 0,
      "type": "database",
      "label": "Tỉ lệ thô Mỹ",
      "sublabel": "909.3 / 100k / năm",
      "width": 160
    },
    {
      "id": "crude",
      "lane": "crude",
      "col": 2,
      "type": "external",
      "label": "Kỳ vọng thô",
      "sublabel": "12.2 ca",
      "width": 150
    },
    {
      "id": "census",
      "lane": "std",
      "col": 0,
      "type": "database",
      "label": "BRC Census 2025",
      "sublabel": "số người mỗi nhóm tuổi",
      "width": 170
    },
    {
      "id": "agerate",
      "lane": "rates",
      "col": 1,
      "type": "database",
      "label": "Tỉ lệ theo tuổi",
      "sublabel": "NCHS 2024, vd 75–84: 4264",
      "width": 190
    },
    {
      "id": "mult",
      "lane": "std",
      "col": 1,
      "type": "backend",
      "label": "Nhân từng nhóm",
      "sublabel": "người × tỉ lệ × 1/52",
      "width": 170
    },
    {
      "id": "sum",
      "lane": "std",
      "col": 2,
      "type": "frontend",
      "label": "Cộng các nhóm",
      "sublabel": "kỳ vọng 4.9 ca",
      "width": 150
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "rate",
      "to": "crude",
      "label": "× 70.000 người-tuần",
      "variant": "dashed"
    },
    {
      "id": "e2",
      "from": "census",
      "to": "mult",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "agerate",
      "to": "mult"
    },
    {
      "id": "e4",
      "from": "mult",
      "to": "sum",
      "variant": "emphasis"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "Vì sao chỉ tuổi",
      "items": [
        "Chênh giữa các nhóm tuổi hơn 10 lần",
        "Thiếu dữ liệu kết hợp nhiều yếu tố"
      ]
    }
  ]
}
