{
  "board": {
    "title": "병동 교대 인수인계",
    "theme": "light",
    "accent": "#0f766e",
    "skin": {
      "palette": {
        "paper": "#f2f7f6",
        "ink": "#12302d",
        "muted": "#5b7a76",
        "rule": "#c5dad6"
      },
      "frame": "flat",
      "radius": 10
    }
  },
  "statuses": {
    "past": {
      "tone": "past",
      "label": "근무 끝"
    },
    "now": {
      "tone": "now",
      "label": "근무 중",
      "emphasis": "invert"
    },
    "next": {
      "tone": "next",
      "label": "다음 근무"
    },
    "later": {
      "tone": "idle",
      "label": "예정"
    },
    "urgent": {
      "tone": "alarm",
      "label": "확인"
    },
    "routine": {
      "tone": "idle",
      "label": "일상"
    }
  },
  "data": {
    "ward": {
      "from": "ward",
      "path": "/ward/now",
      "time": "updatedAt",
      "fields": {
        "name": {},
        "day": {}
      }
    },
    "shifts": {
      "from": "ward",
      "path": "/ward/shifts",
      "list": "/value",
      "key": "id",
      "time": "updatedAt",
      "fields": {
        "start": {
          "state": {
            "relative": [
              "past",
              -28800,
              "now",
              1,
              "next",
              28800,
              "later"
            ]
          }
        },
        "name": {},
        "hours": {},
        "nurses": {
          "unit": "명"
        }
      }
    },
    "memosDay": {
      "from": "ward",
      "path": "/ward/memos",
      "list": "/value",
      "key": "id",
      "where": {
        "shift": "day"
      },
      "time": "updatedAt",
      "fields": {
        "band": {
          "state": "raw"
        },
        "note": {},
        "at": {}
      }
    },
    "memosEvening": {
      "from": "ward",
      "path": "/ward/memos",
      "list": "/value",
      "key": "id",
      "where": {
        "shift": "evening"
      },
      "time": "updatedAt",
      "fields": {
        "band": {
          "state": "raw"
        },
        "note": {},
        "at": {}
      }
    },
    "memosNight": {
      "from": "ward",
      "path": "/ward/memos",
      "list": "/value",
      "key": "id",
      "where": {
        "shift": "night"
      },
      "time": "updatedAt",
      "fields": {
        "band": {
          "state": "raw"
        },
        "note": {},
        "at": {}
      }
    }
  },
  "parts": {
    "title": {
      "as": "header",
      "of": "ward",
      "title": "{{name}} · {{day}}",
      "kicker": "교대 인수인계",
      "subtitle": "열면 지금 근무 중인 조의 인계 메모로 바로 갑니다 · 예시 데이터"
    },
    "day": {
      "as": "status-card",
      "of": "shifts[day]",
      "title": "{{name}} {{hours}}",
      "subtitle": "간호 {{nurses}}",
      "show": [
        "start"
      ]
    },
    "evening": {
      "as": "status-card",
      "of": "shifts[evening]",
      "title": "{{name}} {{hours}}",
      "subtitle": "간호 {{nurses}}",
      "show": [
        "start"
      ]
    },
    "night": {
      "as": "status-card",
      "of": "shifts[night]",
      "title": "{{name}} {{hours}}",
      "subtitle": "간호 {{nurses}}",
      "show": [
        "start"
      ]
    },
    "notesDay": {
      "as": "list",
      "of": "memosDay",
      "title": "주간조 인계",
      "primary": "note",
      "trailing": "at",
      "state": "band"
    },
    "notesEvening": {
      "as": "list",
      "of": "memosEvening",
      "title": "저녁조 인계",
      "primary": "note",
      "trailing": "at",
      "state": "band"
    },
    "notesNight": {
      "as": "list",
      "of": "memosNight",
      "title": "야간조 인계",
      "primary": "note",
      "trailing": "at",
      "state": "band"
    }
  },
  "triggers": [
    {
      "on": {
        "event": "open"
      },
      "when": {
        "part": "day",
        "status": "now"
      },
      "do": [
        {
          "action": "focus",
          "part": "notesDay"
        }
      ]
    },
    {
      "on": {
        "event": "open"
      },
      "when": {
        "part": "evening",
        "status": "now"
      },
      "do": [
        {
          "action": "focus",
          "part": "notesEvening"
        }
      ]
    },
    {
      "on": {
        "event": "open"
      },
      "when": {
        "part": "night",
        "status": "now"
      },
      "do": [
        {
          "action": "focus",
          "part": "notesNight"
        }
      ]
    }
  ],
  "layout": {
    "kind": "canvas",
    "size": [
      2400,
      760
    ],
    "place": {
      "title": [
        24,
        16,
        2352,
        84
      ],
      "day": [
        40,
        130,
        720,
        140
      ],
      "evening": [
        840,
        130,
        720,
        140
      ],
      "night": [
        1640,
        130,
        720,
        140
      ],
      "notesDay": [
        40,
        330,
        720,
        360
      ],
      "notesEvening": [
        840,
        330,
        720,
        360
      ],
      "notesNight": [
        1640,
        330,
        720,
        360
      ]
    },
    "shapes": {
      "frameDay": {
        "box": [
          24,
          300,
          752,
          430
        ],
        "label": "주간 07–15",
        "dash": true
      },
      "frameEvening": {
        "box": [
          824,
          300,
          752,
          430
        ],
        "label": "저녁 15–23",
        "dash": true
      },
      "frameNight": {
        "box": [
          1624,
          300,
          752,
          430
        ],
        "label": "야간 23–07",
        "dash": true
      }
    }
  }
}
