# Generated by Django 3.0.7 on 2024-05-29 13:17

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('categories', '0004_auto_20200517_1832'),
    ]

    operations = [
        migrations.CreateModel(
            name='Anaesthesia',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Anaesthesia', models.CharField(db_column='麻醉', max_length=50, verbose_name='麻醉')),
                ('Abbreviation', models.CharField(db_column='簡稱', max_length=50, verbose_name='簡稱')),
                ('Hemp_according_to_list', models.IntegerField(db_column='麻照單', verbose_name='麻照單')),
            ],
            options={
                'db_table': '麻醉',
            },
        ),
        migrations.CreateModel(
            name='Classification',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Classification', models.CharField(db_column='分類', max_length=255, verbose_name='分類')),
            ],
            options={
                'db_table': '分類',
            },
        ),
        migrations.CreateModel(
            name='Diagnosis',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Classification', models.IntegerField(db_column='分類', verbose_name='分類')),
                ('Monthly_statement_project', models.CharField(db_column='月報表項目', max_length=255, verbose_name='月報表項目')),
                ('Diagnosis', models.CharField(db_column='診斷', max_length=50, verbose_name='診斷')),
                ('Technique_type', models.CharField(db_column='術式', max_length=100, verbose_name='術式')),
            ],
            options={
                'db_table': '診斷',
            },
        ),
        migrations.CreateModel(
            name='DischargeNote',
            fields=[
                ('ChartNo', models.CharField(db_index=True, max_length=10, null=True)),
                ('HospName', models.CharField(max_length=10, null=True)),
                ('DeptName', models.CharField(max_length=10, null=True)),
                ('InDate', models.DateField(null=True)),
                ('OutDate', models.DateField(null=True)),
                ('WardName', models.CharField(max_length=10, null=True)),
                ('RoomName', models.CharField(max_length=10, null=True)),
                ('BedName', models.CharField(max_length=10, null=True)),
                ('MainDrName', models.CharField(max_length=10, null=True)),
                ('MainDiagnosisName', models.CharField(max_length=200, null=True)),
                ('StatusName', models.CharField(max_length=10, null=True)),
                ('AccountIDSE', models.CharField(max_length=20, primary_key=True, serialize=False)),
                ('Func', models.CharField(max_length=20, null=True)),
                ('KeyCodeList', models.TextField(null=True)),
                ('KeyNameList', models.TextField(null=True)),
                ('HTML', models.TextField(null=True)),
                ('Created', models.DateTimeField(auto_now_add=True)),
                ('Saved', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Doctor_in_charge',
            fields=[
                ('Doctor_in_charge_numbers', models.AutoField(db_column='主治醫師編號', primary_key=True, serialize=False, verbose_name='主治醫師編號')),
                ('Name', models.CharField(db_column='名字', max_length=50, verbose_name='名字')),
                ('Rank', models.IntegerField(db_column='等級', verbose_name='等級')),
                ('Abbreviation', models.CharField(db_column='簡稱', max_length=50, verbose_name='簡稱')),
                ('ID', models.CharField(db_column='ID', max_length=50, verbose_name='ID')),
                ('House_telephone', models.CharField(db_column='住家電話', max_length=30, verbose_name='住家電話')),
                ('Work_extension_telephone', models.CharField(db_column='工作分機', max_length=20, verbose_name='工作分機')),
                ('Callmaker', models.CharField(db_column='呼叫器', max_length=50, verbose_name='呼叫器')),
                ('Mobile_phone', models.CharField(db_column='行動電話', max_length=30, verbose_name='行動電話')),
                ('Date_of_birth', models.DateTimeField(db_column='出生日期', verbose_name='出生日期')),
                ('Picture', models.TextField(db_column='照片', verbose_name='照片')),
                ('The_second_telephone', models.CharField(db_column='第二支電話', max_length=30, verbose_name='第二支電話')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
                ('Identification_card_number', models.CharField(db_column='身分證號碼', max_length=50, verbose_name='身分證號碼')),
                ('Doctor_s_license', models.CharField(db_column='醫師執照', max_length=50, verbose_name='醫師執照')),
                ('Outside_god_specially', models.CharField(db_column='神外專', max_length=50, verbose_name='神外專')),
            ],
            options={
                'db_table': '主治醫師',
            },
        ),
        migrations.CreateModel(
            name='Doctor_in_charge_and_other',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Name', models.CharField(db_column='名字', max_length=50, verbose_name='名字')),
                ('Rank', models.IntegerField(db_column='等級', verbose_name='等級')),
                ('Abbreviation', models.CharField(db_column='簡稱', max_length=50, verbose_name='簡稱')),
                ('ID', models.CharField(db_column='ID', max_length=50, verbose_name='ID')),
                ('House_telephone', models.CharField(db_column='住家電話', max_length=30, verbose_name='住家電話')),
                ('Work_extension_telephone', models.CharField(db_column='工作分機', max_length=20, verbose_name='工作分機')),
                ('Callmaker', models.CharField(db_column='呼叫器', max_length=50, verbose_name='呼叫器')),
                ('Mobile_phone', models.CharField(db_column='行動電話', max_length=30, verbose_name='行動電話')),
                ('Date_of_birth', models.DateTimeField(db_column='出生日期', verbose_name='出生日期')),
                ('Picture', models.TextField(db_column='照片', verbose_name='照片')),
                ('The_second_telephone', models.CharField(db_column='第二支電話', max_length=30, verbose_name='第二支電話')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
            ],
            options={
                'db_table': '主治醫師及其他',
            },
        ),
        migrations.CreateModel(
            name='Doctor_in_charge_asks_for_leave',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Doctor_in_charge_numbers_1', models.IntegerField(db_column='主治醫師編號1', verbose_name='主治醫師編號1')),
                ('Doctor_in_charge_numbers_2', models.IntegerField(db_column='主治醫師編號2', verbose_name='主治醫師編號2')),
                ('Destination', models.CharField(db_column='目的地', max_length=50, verbose_name='目的地')),
                ('Gets_up_the_date', models.DateTimeField(db_column='起日', verbose_name='起日')),
                ('Up_to_date', models.DateTimeField(db_column='迄日', verbose_name='迄日')),
                ('The_generation_examines_the_date', models.CharField(db_column='代診日', max_length=50, verbose_name='代診日')),
                ('Stops_the_knife_date', models.CharField(db_column='停刀日', max_length=50, verbose_name='停刀日')),
                ('Prepares_forgets', models.TextField(db_column='備忘', verbose_name='備忘')),
            ],
            options={
                'db_table': '主治醫師請假記錄',
            },
        ),
        migrations.CreateModel(
            name='Doctor_in_charge_rank',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Rank', models.CharField(db_column='等級', max_length=50, verbose_name='等級')),
                ('Branch_expense', models.IntegerField(db_column='科費', verbose_name='科費')),
                ('The_receipt_gains_ground', models.CharField(db_column='收據抬頭', max_length=50, verbose_name='收據抬頭')),
            ],
            options={
                'db_table': '主治醫師等級',
            },
        ),
        migrations.CreateModel(
            name='Holiday',
            fields=[
                ('date', models.DateField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=10, null=True)),
                ('worktill', models.TimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Hospital_bed',
            fields=[
                ('Hospital_bed_serial_number', models.AutoField(db_column='病床編號', primary_key=True, serialize=False, verbose_name='病床編號')),
                ('Bed_number', models.CharField(db_column='床號', max_length=50, verbose_name='床號')),
                ('Hospital_ward_serial_number', models.IntegerField(db_column='病房編號', verbose_name='病房編號')),
                ('Hospital_ward_rank_serial_number', models.IntegerField(db_column='病房等級編號', verbose_name='病房等級編號')),
            ],
            options={
                'db_table': '病床',
            },
        ),
        migrations.CreateModel(
            name='Hospital_bed_rank',
            fields=[
                ('Hospital_ward_rank_serial_number', models.AutoField(db_column='病房等級編號', primary_key=True, serialize=False, verbose_name='病房等級編號')),
                ('Hospital_ward_rank', models.CharField(db_column='病房等級', max_length=20, verbose_name='病房等級')),
            ],
            options={
                'db_table': '病床等級',
            },
        ),
        migrations.CreateModel(
            name='Hospital_ward',
            fields=[
                ('Hospital_ward_serial_number', models.AutoField(db_column='病房編號', primary_key=True, serialize=False, verbose_name='病房編號')),
                ('Hospital_ward', models.CharField(db_column='病房', max_length=50, verbose_name='病房')),
                ('Classification', models.CharField(db_column='分類', max_length=50, verbose_name='分類')),
            ],
            options={
                'db_table': '病房',
            },
        ),
        migrations.CreateModel(
            name='Inpatient',
            fields=[
                ('Ward', models.CharField(max_length=10, null=True)),
                ('Room', models.CharField(max_length=10, null=True)),
                ('Bed', models.CharField(max_length=10, null=True)),
                ('Name', models.CharField(max_length=50, null=True)),
                ('ChartNo', models.CharField(max_length=10, primary_key=True, serialize=False)),
                ('Sex', models.CharField(max_length=10, null=True)),
                ('Birthday', models.DateField(null=True)),
                ('Age', models.CharField(max_length=10, null=True)),
                ('HospitalDays', models.IntegerField(null=True)),
                ('Enter', models.DateField(null=True)),
                ('Created', models.DateTimeField(auto_now_add=True)),
                ('Saved', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Interne',
            fields=[
                ('Serial_number', models.IntegerField(db_column='編號', verbose_name='編號')),
                ('Chinese_name', models.AutoField(db_column='中文姓名', primary_key=True, serialize=False, verbose_name='中文姓名')),
            ],
            options={
                'db_table': '實習醫師',
            },
        ),
        migrations.CreateModel(
            name='Monitoring_device',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Project', models.CharField(db_column='項目', max_length=50, verbose_name='項目')),
                ('Explanation', models.TextField(db_column='說明', verbose_name='說明')),
            ],
            options={
                'db_table': '監視器',
            },
        ),
        migrations.CreateModel(
            name='On_afternoon',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('On_afternoon', models.CharField(db_column='上/下午', max_length=50, verbose_name='上/下午')),
            ],
            options={
                'db_table': '上/下午',
            },
        ),
        migrations.CreateModel(
            name='OPNote',
            fields=[
                ('PatChartNo', models.CharField(db_index=True, max_length=7)),
                ('KeyCode', models.CharField(max_length=200, primary_key=True, serialize=False)),
                ('KeyName', models.CharField(max_length=200, null=True)),
                ('department', models.CharField(max_length=200, null=True, verbose_name='手術科部')),
                ('date', models.DateField(null=True, verbose_name='手術日期')),
                ('content', models.TextField(null=True, verbose_name='手術紀錄')),
            ],
        ),
        migrations.CreateModel(
            name='PathologyReport',
            fields=[
                ('ChartNo', models.IntegerField(db_index=True, null=True, verbose_name='病歷號')),
                ('ReportKey', models.CharField(max_length=50, null=True)),
                ('ReportCode', models.CharField(max_length=20, null=True)),
                ('PersonID', models.CharField(max_length=10, null=True)),
                ('PathCode', models.CharField(max_length=10, primary_key=True, serialize=False, verbose_name='病理號')),
                ('SpecimenGetDate', models.DateField(null=True, verbose_name='收件日')),
                ('ReportDate', models.DateTimeField(null=True, verbose_name='報告日')),
                ('url', models.TextField(null=True)),
                ('html', models.TextField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Physician',
            fields=[
                ('Name', models.CharField(max_length=10)),
                ('EmployeeID', models.CharField(max_length=10, primary_key=True, serialize=False)),
                ('Phone', models.CharField(max_length=10)),
                ('MobileShortCode', models.CharField(max_length=10)),
                ('BranchOf', models.CharField(max_length=10)),
                ('CostCenter', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='Prepares_the_blood',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('WB', models.IntegerField(db_column='WB', verbose_name='WB')),
                ('pRBC', models.IntegerField(db_column='pRBC', verbose_name='pRBC')),
                ('FFP', models.IntegerField(db_column='FFP', verbose_name='FFP')),
                ('PLT', models.IntegerField(db_column='PLT', verbose_name='PLT')),
                ('Others', models.CharField(db_column='Others', max_length=50, verbose_name='Others')),
                ('Remark', models.TextField(db_column='Remark', verbose_name='Remark')),
            ],
            options={
                'db_table': '備血',
            },
        ),
        migrations.CreateModel(
            name='Resident',
            fields=[
                ('Resident_numbers', models.AutoField(db_column='住院醫師編號', primary_key=True, serialize=False, verbose_name='住院醫師編號')),
                ('Name', models.CharField(db_column='名字', max_length=255, verbose_name='名字')),
                ('Rank', models.IntegerField(db_column='等級', verbose_name='等級')),
                ('ID', models.CharField(db_column='ID', max_length=255, verbose_name='ID')),
                ('This_month_attends_the_surgery', models.IntegerField(db_column='本月參加手術', verbose_name='本月參加手術')),
                ('Abbreviation', models.CharField(db_column='簡稱', max_length=255, verbose_name='簡稱')),
                ('Home_use_telephone', models.CharField(db_column='家用電話', max_length=255, verbose_name='家用電話')),
                ('PHS_Jan_Ma', models.CharField(db_column='PHS簡碼', max_length=255, verbose_name='PHS簡碼')),
                ('Callmaker', models.CharField(db_column='呼叫器', max_length=255, verbose_name='呼叫器')),
                ('Mobile_phone', models.CharField(db_column='行動電話', max_length=255, verbose_name='行動電話')),
                ('Date_of_birth', models.CharField(db_column='出生日期', max_length=255, verbose_name='出生日期')),
                ('Picture', models.CharField(db_column='照片', max_length=255, verbose_name='照片')),
                ('The_second_telephone', models.CharField(db_column='第二支電話', max_length=255, verbose_name='第二支電話')),
                ('Note', models.CharField(db_column='備註', max_length=255, verbose_name='備註')),
            ],
            options={
                'db_table': '住院醫師',
            },
        ),
        migrations.CreateModel(
            name='Resident_2001',
            fields=[
                ('Resident_numbers', models.AutoField(db_column='住院醫師編號', primary_key=True, serialize=False, verbose_name='住院醫師編號')),
                ('Name', models.CharField(db_column='名字', max_length=50, verbose_name='名字')),
                ('Rank', models.IntegerField(db_column='等級', verbose_name='等級')),
                ('ID', models.CharField(db_column='ID', max_length=50, verbose_name='ID')),
                ('This_month_attends_the_surgery', models.IntegerField(db_column='本月參加手術', verbose_name='本月參加手術')),
                ('Abbreviation', models.CharField(db_column='簡稱', max_length=50, verbose_name='簡稱')),
                ('Home_use_telephone', models.CharField(db_column='家用電話', max_length=50, verbose_name='家用電話')),
                ('Work_extension_telephone', models.CharField(db_column='工作分機', max_length=30, verbose_name='工作分機')),
                ('Callmaker', models.CharField(db_column='呼叫器', max_length=50, verbose_name='呼叫器')),
                ('Mobile_phone', models.CharField(db_column='行動電話', max_length=50, verbose_name='行動電話')),
                ('Date_of_birth', models.DateTimeField(db_column='出生日期', verbose_name='出生日期')),
                ('Picture', models.TextField(db_column='照片', verbose_name='照片')),
                ('The_second_telephone', models.CharField(db_column='第二支電話', max_length=50, verbose_name='第二支電話')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
            ],
            options={
                'db_table': '住院醫師2001',
            },
        ),
        migrations.CreateModel(
            name='Resident_bed_assignment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Serial_number', models.IntegerField(db_column='編號', verbose_name='編號')),
                ('Resident_numbers', models.IntegerField(db_column='住院醫師編號', verbose_name='住院醫師編號')),
                ('Doctor_in_charge_numbers', models.IntegerField(db_column='主治醫師編號', verbose_name='主治醫師編號')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
            ],
            options={
                'db_table': '住院醫師床位分配',
            },
        ),
        migrations.CreateModel(
            name='Resident_rank',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Rank', models.CharField(db_column='等級', max_length=50, verbose_name='等級')),
            ],
            options={
                'db_table': '住院醫師等級',
            },
        ),
        migrations.CreateModel(
            name='Resident_the_bed_assigns_v2',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Serial_number', models.IntegerField(db_column='編號', verbose_name='編號')),
                ('Resident_numbers_1', models.IntegerField(db_column='住院醫師編號1', verbose_name='住院醫師編號1')),
                ('Resident_numbers_2', models.IntegerField(db_column='住院醫師編號2', verbose_name='住院醫師編號2')),
                ('Doctor_in_charge_numbers', models.IntegerField(db_column='主治醫師編號', verbose_name='主治醫師編號')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
            ],
            options={
                'db_table': '住院醫師床位分配v2',
            },
        ),
        migrations.CreateModel(
            name='Surgery_row_of_regulation',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Surgery_date', models.DateTimeField(db_column='手術日期', verbose_name='手術日期')),
                ('Operation_room', models.IntegerField(db_column='手術房', verbose_name='手術房')),
                ('In_turn', models.IntegerField(db_column='順序', verbose_name='順序')),
                ('Scheduled_time', models.CharField(db_column='預定時間', max_length=50, verbose_name='預定時間')),
                ('Basic_document', models.IntegerField(db_column='基本資料', verbose_name='基本資料')),
                ('Intensive_care_unit', models.IntegerField(db_column='加護病房', verbose_name='加護病房')),
                ('Emergency_surgery', models.IntegerField(db_column='急診手術', verbose_name='急診手術')),
                ('Special_instrument', models.CharField(db_column='特殊器械', max_length=50, verbose_name='特殊器械')),
                ('Prepares_the_blood', models.IntegerField(db_column='備血', verbose_name='備血')),
                ('Anaesthesia', models.IntegerField(db_column='麻醉', verbose_name='麻醉')),
                ('Monitoring_device_1', models.IntegerField(db_column='監視器1', verbose_name='監視器1')),
                ('Monitoring_device_2', models.IntegerField(db_column='監視器2', verbose_name='監視器2')),
                ('Surgery_code', models.IntegerField(db_column='手術代碼', verbose_name='手術代碼')),
                ('Death', models.IntegerField(db_column='死亡', verbose_name='死亡')),
                ('Complications', models.IntegerField(db_column='合併症', verbose_name='合併症')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
                ('Resident_1', models.IntegerField(db_column='住院醫師1', verbose_name='住院醫師1')),
                ('Resident_2', models.IntegerField(db_column='住院醫師2', verbose_name='住院醫師2')),
            ],
            options={
                'db_table': '手術排程',
            },
        ),
        migrations.CreateModel(
            name='Technique_type_code',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Code', models.CharField(db_column='代碼', max_length=255, verbose_name='代碼')),
                ('The_technique_type_assigns_instrument_to_use', models.CharField(db_column='術式(指定器械用)', max_length=255, verbose_name='術式(指定器械用)')),
            ],
            options={
                'db_table': '術式代碼',
            },
        ),
        migrations.CreateModel(
            name='Timetable',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Activity', models.CharField(db_column='活動', max_length=50, verbose_name='活動')),
                ('Doctor_in_charge', models.IntegerField(db_column='主治醫師', verbose_name='主治醫師')),
                ('Week', models.IntegerField(db_column='星期', verbose_name='星期')),
                ('On_afternoon', models.IntegerField(db_column='上/下午', verbose_name='上/下午')),
                ('Examines_a_place', models.CharField(db_column='診次/地點', max_length=50, verbose_name='診次/地點')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
            ],
            options={
                'db_table': '時間表',
            },
        ),
        migrations.CreateModel(
            name='Week',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Week', models.CharField(db_column='星期', max_length=50, verbose_name='星期')),
            ],
            options={
                'db_table': '星期',
            },
        ),
        migrations.CreateModel(
            name='X_condition_code',
            fields=[
                ('Identification_code', models.AutoField(db_column='識別碼', primary_key=True, serialize=False, verbose_name='識別碼')),
                ('Condition', models.CharField(db_column='狀況', max_length=50, verbose_name='狀況')),
            ],
            options={
                'db_table': 'X狀況代碼',
            },
        ),
        migrations.CreateModel(
            name='X_doctor_team_material_table',
            fields=[
                ('Identification_code', models.AutoField(db_column='識別碼', primary_key=True, serialize=False, verbose_name='識別碼')),
                ('Doctor_in_charge', models.CharField(db_column='主治醫師', max_length=50, verbose_name='主治醫師')),
                ('Resident', models.CharField(db_column='住院醫師', max_length=50, verbose_name='住院醫師')),
                ('Interne', models.CharField(db_column='實習醫師', max_length=50, verbose_name='實習醫師')),
            ],
            options={
                'db_table': 'X醫師團隊資料表',
            },
        ),
        migrations.CreateModel(
            name='X_examined_the_code_in_anticipation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Identification_code', models.IntegerField(db_column='識別碼', verbose_name='識別碼')),
                ('Examination_condition', models.CharField(db_column='審查狀況', max_length=50, verbose_name='審查狀況')),
            ],
            options={
                'db_table': 'X事前審查代碼',
            },
        ),
        migrations.CreateModel(
            name='X_is_hospitalized_again_the_material',
            fields=[
                ('Medical_record_number', models.AutoField(db_column='病歷號碼', primary_key=True, serialize=False, verbose_name='病歷號碼')),
            ],
            options={
                'db_table': 'X再入院資料表',
            },
        ),
        migrations.CreateModel(
            name='X_manufacturer_material',
            fields=[
                ('ID', models.AutoField(db_column='ID', primary_key=True, serialize=False, verbose_name='ID')),
                ('category', models.IntegerField(db_column='category', verbose_name='category')),
                ('name', models.CharField(db_column='name', max_length=50, verbose_name='name')),
                ('contact', models.CharField(db_column='contact', max_length=50, verbose_name='contact')),
                ('phone', models.CharField(db_column='phone', max_length=50, verbose_name='phone')),
                ('product', models.CharField(db_column='product', max_length=50, verbose_name='product')),
            ],
            options={
                'db_table': 'X廠商資料',
            },
        ),
        migrations.CreateModel(
            name='X_patient_material',
            fields=[
                ('Medical_record_number', models.AutoField(db_column='病歷號', primary_key=True, serialize=False, verbose_name='病歷號')),
                ('Hospital_bed_number', models.CharField(db_column='病床號', max_length=50, verbose_name='病床號')),
                ('Name', models.CharField(db_column='姓名', max_length=50, verbose_name='姓名')),
                ('Sex', models.CharField(db_column='性別', max_length=50, verbose_name='性別')),
                ('Age', models.IntegerField(db_column='年齡', verbose_name='年齡')),
                ('Diagnosis', models.IntegerField(db_column='診斷', verbose_name='診斷')),
                ('Prepares_forgets', models.CharField(db_column='備忘', max_length=50, verbose_name='備忘')),
                ('Doctor_in_charge', models.CharField(db_column='主治醫師', max_length=50, verbose_name='主治醫師')),
                ('Resident', models.CharField(db_column='住院醫師', max_length=50, verbose_name='住院醫師')),
                ('Interne', models.CharField(db_column='實習醫師', max_length=50, verbose_name='實習醫師')),
                ('Hospital_ward_rank_serial_number', models.IntegerField(db_column='病房等級編號', verbose_name='病房等級編號')),
                ('House_telephone', models.CharField(db_column='住家電話', max_length=50, verbose_name='住家電話')),
                ('Mobile_phone', models.CharField(db_column='行動電話', max_length=50, verbose_name='行動電話')),
                ('Office_telephone', models.CharField(db_column='辦公室電話', max_length=50, verbose_name='辦公室電話')),
                ('The_second_telephone', models.CharField(db_column='第二支電話', max_length=50, verbose_name='第二支電話')),
                ('Condition', models.IntegerField(db_column='狀況', verbose_name='狀況')),
                ('In_hospital_date', models.CharField(db_column='住院日期', max_length=50, verbose_name='住院日期')),
                ('Surgery_date', models.DateTimeField(db_column='手術日期', verbose_name='手術日期')),
                ('Room', models.IntegerField(db_column='房間', verbose_name='房間')),
                ('Sequence', models.IntegerField(db_column='序列', verbose_name='序列')),
                ('In_hospital_number_of_days', models.IntegerField(db_column='住院天數', verbose_name='住院天數')),
                ('Family_member_name', models.CharField(db_column='家人名字', max_length=50, verbose_name='家人名字')),
                ('Last_modified_time', models.DateTimeField(db_column='最後更新時間', verbose_name='最後更新時間')),
                ('Birthday', models.DateTimeField(db_column='生日', verbose_name='生日')),
                ('Address', models.CharField(db_column='地址', max_length=50, verbose_name='地址')),
                ('Identification_card_number', models.CharField(db_column='身分證號', max_length=50, verbose_name='身分證號')),
                ('Doctor_team', models.CharField(db_column='醫師團隊', max_length=50, verbose_name='醫師團隊')),
            ],
            options={
                'db_table': 'X病人資料',
            },
        ),
        migrations.CreateModel(
            name='X_surgery_historic_information',
            fields=[
                ('Identification_code', models.AutoField(db_column='識別碼', primary_key=True, serialize=False, verbose_name='識別碼')),
                ('Surgery_date', models.DateTimeField(db_column='手術日期', verbose_name='手術日期')),
                ('Room', models.IntegerField(db_column='房間', verbose_name='房間')),
                ('Sequence', models.IntegerField(db_column='序列', verbose_name='序列')),
                ('Hospital_bed_number', models.CharField(db_column='病床號', max_length=50, verbose_name='病床號')),
                ('Medical_record_number', models.IntegerField(db_column='病歷號', db_index=True, verbose_name='病歷號')),
                ('Name', models.CharField(db_column='姓名', max_length=50, verbose_name='姓名')),
                ('Diagnosis', models.IntegerField(db_column='診斷', verbose_name='診斷')),
                ('Prepares_forgets', models.CharField(db_column='備忘', max_length=50, verbose_name='備忘')),
                ('Doctor_in_charge', models.CharField(db_column='主治醫師', max_length=50, verbose_name='主治醫師')),
            ],
            options={
                'db_table': 'X手術歷史資料',
            },
        ),
        migrations.CreateModel(
            name='X_surgery_row_of_regulation',
            fields=[
                ('Serial_number', models.AutoField(db_column='編號', primary_key=True, serialize=False, verbose_name='編號')),
                ('Surgery_date', models.DateTimeField(db_column='手術日期', verbose_name='手術日期')),
                ('Operation_room', models.IntegerField(db_column='手術房', verbose_name='手術房')),
                ('In_turn', models.IntegerField(db_column='順序', verbose_name='順序')),
                ('Scheduled_time', models.CharField(db_column='預定時間', max_length=50, verbose_name='預定時間')),
                ('Basic_document', models.IntegerField(db_column='基本資料', verbose_name='基本資料')),
                ('Intensive_care_unit', models.IntegerField(db_column='加護病房', verbose_name='加護病房')),
                ('Emergency_surgery', models.IntegerField(db_column='急診手術', verbose_name='急診手術')),
                ('Special_instrument', models.CharField(db_column='特殊器械', max_length=50, verbose_name='特殊器械')),
                ('Prepares_the_blood', models.IntegerField(db_column='備血', verbose_name='備血')),
                ('Anaesthesia', models.IntegerField(db_column='麻醉', verbose_name='麻醉')),
                ('Monitoring_device_1', models.IntegerField(db_column='監視器1', verbose_name='監視器1')),
                ('Monitoring_device_2', models.IntegerField(db_column='監視器2', verbose_name='監視器2')),
                ('Technique_type', models.IntegerField(db_column='術式', verbose_name='術式')),
                ('Surgery_code', models.IntegerField(db_column='手術代碼', verbose_name='手術代碼')),
                ('Death', models.IntegerField(db_column='死亡', verbose_name='死亡')),
                ('Complications', models.IntegerField(db_column='合併症', verbose_name='合併症')),
                ('Note', models.TextField(db_column='備註', verbose_name='備註')),
                ('Resident_1', models.IntegerField(db_column='住院醫師1', verbose_name='住院醫師1')),
                ('Resident_2', models.IntegerField(db_column='住院醫師2', verbose_name='住院醫師2')),
            ],
            options={
                'db_table': 'X手術排程',
            },
        ),
        migrations.CreateModel(
            name='XDisBedNo',
            fields=[
                ('Hospital_bed_number', models.CharField(db_column='病床號', max_length=255, verbose_name='病床號')),
                ('Name', models.CharField(db_column='姓名', max_length=255, verbose_name='姓名')),
                ('Medical_record_number', models.IntegerField(db_column='病歷號', verbose_name='病歷號')),
                ('Sex', models.CharField(db_column='性別', max_length=255, verbose_name='性別')),
                ('Birthday', models.DateTimeField(db_column='生日', verbose_name='生日')),
                ('VS_Name', models.CharField(db_column='VS Name', max_length=255, verbose_name='VS Name')),
                ('In_hospital_date', models.DateTimeField(db_column='住院日期', verbose_name='住院日期')),
                ('hospitalid', models.CharField(db_column='hospitalid', max_length=50, verbose_name='hospitalid')),
                ('ioe', models.CharField(db_column='ioe', max_length=50, verbose_name='ioe')),
                ('CaseNo', models.AutoField(db_column='CaseNo', primary_key=True, serialize=False, verbose_name='CaseNo')),
                ('Location', models.CharField(db_column='Location', max_length=50, verbose_name='Location')),
                ('BedNo', models.CharField(db_column='BedNo', max_length=50, verbose_name='BedNo')),
            ],
            options={
                'db_table': 'XDisBedNo',
            },
        ),
        migrations.CreateModel(
            name='XrayTextReport',
            fields=[
                ('ChartNo', models.CharField(db_index=True, max_length=7, null=True, verbose_name='病歷號')),
                ('ReportKey', models.CharField(max_length=50, primary_key=True, serialize=False)),
                ('ReportCode', models.CharField(max_length=20, null=True)),
                ('PersonID', models.CharField(max_length=10, null=True)),
                ('OrderDesc', models.CharField(max_length=50, verbose_name='報告類別')),
                ('ExamDate', models.DateField(null=True, verbose_name='檢查日期')),
                ('ReportDate', models.DateField(null=True, verbose_name='報告日期')),
                ('Exam', models.TextField(null=True)),
                ('Impression', models.TextField(null=True)),
                ('url', models.TextField(null=True)),
                ('html', models.TextField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='OPSchedule',
            fields=[
                ('id', models.CharField(max_length=50, primary_key=True, serialize=False)),
                ('OPDate', models.DateField(null=True)),
                ('OpRoomNo', models.CharField(max_length=10, null=True)),
                ('OpSeqNo', models.IntegerField(null=True)),
                ('PatName', models.CharField(max_length=50, null=True)),
                ('PatWard', models.CharField(max_length=50, null=True)),
                ('PatChartNo', models.CharField(db_index=True, max_length=7)),
                ('PatSex', models.CharField(max_length=50, null=True)),
                ('PatAge', models.CharField(max_length=50, null=True)),
                ('PatDignosis', models.CharField(max_length=200, null=True)),
                ('MainOpModeTitle', models.CharField(max_length=200, null=True)),
                ('MainOpMode', models.CharField(max_length=200, null=True)),
                ('OpDoctorName', models.CharField(max_length=50, null=True)),
                ('OpTypeName', models.CharField(max_length=50, null=True)),
                ('Complete', models.CharField(max_length=50, null=True)),
                ('Anes', models.CharField(max_length=50, null=True)),
                ('StartTime', models.TimeField(max_length=50, null=True)),
                ('SpendTime', models.IntegerField(null=True)),
                ('Memo', models.CharField(max_length=50, null=True)),
                ('Morbidity', models.CharField(max_length=50, null=True)),
                ('Mortality', models.CharField(max_length=50, null=True)),
                ('Remark', models.CharField(max_length=200, null=True)),
                ('category', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='categories.Category')),
            ],
        ),
        migrations.CreateModel(
            name='MHCT_PAYITEM_NEW_2',
            fields=[
                ('Q2ID', models.CharField(max_length=12, primary_key=True, serialize=False)),
                ('Number', models.IntegerField(null=True)),
                ('StartDate', models.IntegerField(null=True)),
                ('EndDate', models.IntegerField(null=True)),
                ('EngName', models.TextField(null=True)),
                ('ChtName', models.TextField(null=True)),
                ('Memo', models.TextField(null=True)),
                ('categories', models.ManyToManyField(to='categories.Category')),
            ],
        ),
    ]
