from src.batch.ultmarc.utmp_tables.tables.ultmarc_table import UltmarcTable


class ComTrtCourse(UltmarcTable):
    """レイアウト区分001: COM_診療科目"""
    trt_course_cd: str          # 診療科目コード
    trt_course_name_kana: str   # 診療科目名カナ
    trt_course_name_abb: str    # 診療科目名略称
    trt_course_name: str        # 診療科目名
    maint_flag: str             # 修正区分

    def __init__(self, record: list[str]):
        super().__init__(record)
        self.trt_course_cd = record[1]
        self.maint_flag = record[2]
        self.trt_course_name_abb = record[5]
        self.trt_course_name = record[6]
        self.trt_course_name_kana = record[7]
