{
  "locale": "zh-tw",
  "title": "大腸癌篩檢家族史及吸菸習慣資料表",
  "description": "（115 年 1 月修訂）\n本檢查經費「由衛生福利部國民健康署運用菸品健康福利捐／公務預算補助」",
  "completedHtml": "<h3>資料表填寫完成</h3>",
  "pages": [
    {
      "name": "consent_page",
      "title": "基本資料與同意",
      "elements": [
        {
          "type": "text",
          "name": "patient_signature",
          "title": "本人（簽名）",
          "isRequired": true,
          "placeholder": "請輸入姓名"
        },
        {
          "type": "text",
          "name": "id_number",
          "startWithNewLine": false,
          "title": "身分證字號",
          "isRequired": true,
          "placeholder": "請輸入身分證字號"
        },
        {
          "type": "radiogroup",
          "name": "consent",
          "title": "是否同意進行以下大腸癌篩檢之家族史及吸菸習慣問卷填答，供後續相關政策評估？",
          "isRequired": true,
          "choices": [
            {
              "value": "agree",
              "text": "同意"
            },
            {
              "value": "disagree",
              "text": "不同意"
            }
          ],
          "colCount": 2
        }
      ]
    },
    {
      "name": "smoking_habits",
      "visibleIf": "{consent} = 'agree'",
      "title": "一、吸菸習慣",
      "elements": [
        {
          "type": "radiogroup",
          "name": "smoking_habit",
          "title": "吸菸習慣",
          "isRequired": true,
          "choices": [
            {
              "value": "quit",
              "text": "已戒菸"
            },
            {
              "value": "lt10_lt20",
              "text": "吸 10 年以下，每天少於 20 支"
            },
            {
              "value": "lt10_gte20",
              "text": "吸 10 年以下，每天 20 支或以上"
            },
            {
              "value": "gt10_lt20",
              "text": "吸超過 10 年，每天少於 20 支"
            },
            {
              "value": "gt10_gte20",
              "text": "吸超過 10 年，每天 20 支或以上"
            }
          ]
        },
        {
          "type": "text",
          "name": "smoking_quit_age",
          "visibleIf": "{smoking_habit} = 'quit'",
          "title": "戒菸年齡",
          "isRequired": true,
          "inputType": "number",
          "min": 0,
          "placeholder": "歲"
        }
      ]
    },
    {
      "name": "family_history",
      "visibleIf": "{consent} = 'agree'",
      "title": "二、家族病史",
      "elements": [
        {
          "type": "html",
          "name": "colorectal_title",
          "html": "<h4 style='margin-bottom:4px;'>1. 血緣親屬大腸直腸癌病史</h4><p style='font-size:14px; color:#666;'>若您有血緣的父母、兄弟姐妹、子女或其他親屬有得過大腸直腸癌，請填寫以下表格</p>"
        },
        {
          "type": "matrixdropdown",
          "name": "colorectal_parents",
          "title": {
            "default": "父母（人數固定為 1，僅需填寫年紀）",
            "zh-tw": "父母"
          },
          "columns": [
            {
              "name": "age",
              "title": "罹癌年紀",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "歲"
            }
          ],
          "rows": [
            {
              "value": "father",
              "text": "父親"
            },
            {
              "value": "mother",
              "text": "母親"
            }
          ]
        },
        {
          "type": "matrixdropdown",
          "name": "colorectal_others",
          "title": "其他血緣親屬",
          "columns": [
            {
              "name": "count",
              "title": "罹癌人數",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "人數"
            },
            {
              "name": "age",
              "title": "罹癌年紀",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "歲"
            }
          ],
          "rows": [
            {
              "value": "children",
              "text": "子女"
            },
            {
              "value": "siblings",
              "text": "兄弟／姊妹"
            },
            {
              "value": "paternal_relatives",
              "text": "其他父系親屬"
            },
            {
              "value": "maternal_relatives",
              "text": "其他母系親屬"
            }
          ]
        },
        {
          "type": "html",
          "name": "other_cancer_title",
          "html": "<h4 style='margin-top:24px; margin-bottom:4px;'>2. 血緣親屬其他癌症病史</h4><p style='font-size:14px; color:#666;'>若您有血緣的父母、兄弟姐妹、子女或其他親屬有得過大腸癌以外的其他癌症，請填寫以下表格</p>"
        },
        {
          "type": "matrixdropdown",
          "name": "other_cancer_parents",
          "title": {
            "default": "父母（人數固定為 1，僅需填寫癌別與年紀）",
            "zh-tw": "父母"
          },
          "columns": [
            {
              "name": "cancer_type",
              "title": "癌別",
              "cellType": "text",
              "placeholder": "癌症名稱"
            },
            {
              "name": "age",
              "title": "罹癌年紀",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "歲"
            }
          ],
          "rows": [
            {
              "value": "father",
              "text": "父親"
            },
            {
              "value": "mother",
              "text": "母親"
            }
          ]
        },
        {
          "type": "matrixdropdown",
          "name": "other_cancer_others",
          "title": "其他血緣親屬",
          "columns": [
            {
              "name": "cancer_type",
              "title": "癌別",
              "cellType": "text",
              "placeholder": "癌症名稱"
            },
            {
              "name": "count",
              "title": "罹癌人數",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "人數"
            },
            {
              "name": "age",
              "title": "罹癌年紀",
              "cellType": "text",
              "inputType": "number",
              "min": 0,
              "placeholder": "歲"
            }
          ],
          "rows": [
            {
              "value": "children",
              "text": "子女"
            },
            {
              "value": "siblings",
              "text": "兄弟／姊妹"
            },
            {
              "value": "paternal_relatives",
              "text": "其他父系親屬"
            },
            {
              "value": "maternal_relatives",
              "text": "其他母系親屬"
            }
          ]
        },
        {
          "type": "html",
          "name": "relatives_note",
          "html": "<div style='background:#f8f9fa; padding:12px 16px; border-radius:6px; font-size:13px; line-height:1.8; color:#666;'><p>＊其他父系親屬：僅含曾祖父母、祖父母、伯、叔、姑、姪男（女）、孫子（女）</p><p>＊其他母系親屬：僅含外曾祖父母、外祖父母、舅父、姨母、外甥（女）、外孫子（女）</p><p>＊＊若罹癌人數超過 3 位，罹癌年齡自最小年齡起算 3 位</p></div>"
        },
        {
          "type": "text",
          "name": "interviewer_signature",
          "title": "訪問人員簽名（醫療院所）",
          "isRequired": true,
          "placeholder": "請輸入訪問人員姓名"
        },
        {
          "type": "panel",
          "name": "interview_date_panel",
          "title": "訪問日期",
          "elements": [
            {
              "type": "text",
              "name": "interview_date_year",
              "title": "民國年",
              "isRequired": true,
              "inputType": "number",
              "min": 1,
              "max": 150,
              "placeholder": "例：115"
            },
            {
              "type": "dropdown",
              "name": "interview_date_month",
              "startWithNewLine": false,
              "title": "月份",
              "isRequired": true,
              "choices": [
                {
                  "value": "01",
                  "text": "1 月"
                },
                {
                  "value": "02",
                  "text": "2 月"
                },
                {
                  "value": "03",
                  "text": "3 月"
                },
                {
                  "value": "04",
                  "text": "4 月"
                },
                {
                  "value": "05",
                  "text": "5 月"
                },
                {
                  "value": "06",
                  "text": "6 月"
                },
                {
                  "value": "07",
                  "text": "7 月"
                },
                {
                  "value": "08",
                  "text": "8 月"
                },
                {
                  "value": "09",
                  "text": "9 月"
                },
                {
                  "value": "10",
                  "text": "10 月"
                },
                {
                  "value": "11",
                  "text": "11 月"
                },
                {
                  "value": "12",
                  "text": "12 月"
                }
              ],
              "placeholder": "請選擇月份"
            },
            {
              "type": "dropdown",
              "name": "interview_date_day",
              "startWithNewLine": false,
              "title": "日期",
              "isRequired": true,
              "choices": [
                {
                  "value": "01",
                  "text": "1 日"
                },
                {
                  "value": "02",
                  "text": "2 日"
                },
                {
                  "value": "03",
                  "text": "3 日"
                },
                {
                  "value": "04",
                  "text": "4 日"
                },
                {
                  "value": "05",
                  "text": "5 日"
                },
                {
                  "value": "06",
                  "text": "6 日"
                },
                {
                  "value": "07",
                  "text": "7 日"
                },
                {
                  "value": "08",
                  "text": "8 日"
                },
                {
                  "value": "09",
                  "text": "9 日"
                },
                {
                  "value": "10",
                  "text": "10 日"
                },
                {
                  "value": "11",
                  "text": "11 日"
                },
                {
                  "value": "12",
                  "text": "12 日"
                },
                {
                  "value": "13",
                  "text": "13 日"
                },
                {
                  "value": "14",
                  "text": "14 日"
                },
                {
                  "value": "15",
                  "text": "15 日"
                },
                {
                  "value": "16",
                  "text": "16 日"
                },
                {
                  "value": "17",
                  "text": "17 日"
                },
                {
                  "value": "18",
                  "text": "18 日"
                },
                {
                  "value": "19",
                  "text": "19 日"
                },
                {
                  "value": "20",
                  "text": "20 日"
                },
                {
                  "value": "21",
                  "text": "21 日"
                },
                {
                  "value": "22",
                  "text": "22 日"
                },
                {
                  "value": "23",
                  "text": "23 日"
                },
                {
                  "value": "24",
                  "text": "24 日"
                },
                {
                  "value": "25",
                  "text": "25 日"
                },
                {
                  "value": "26",
                  "text": "26 日"
                },
                {
                  "value": "27",
                  "text": "27 日"
                },
                {
                  "value": "28",
                  "text": "28 日"
                },
                {
                  "value": "29",
                  "text": "29 日"
                },
                {
                  "value": "30",
                  "text": "30 日"
                },
                {
                  "value": "31",
                  "text": "31 日"
                }
              ],
              "placeholder": "請選擇日期"
            }
          ]
        }
      ]
    }
  ],
  "questionErrorLocation": "bottom",
  "checkErrorsMode": "onComplete"
}