alter table vp_medical_rec modify status integer default 0 null comment '上线状态 0:未上线 1:已经上线 状态为未上线且病历未出现在vp_process表中使用可以进行删除'; alter table vp_ask_template_question_library add type int default 1 null comment '问题类型 1标准问 2自定义问题' after standard_question -- 在诊断关联表中添加关系类型字段 alter table vp_disease_ancillary add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after require_check_flag; alter table vp_disease_physical add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after require_check_flag; alter table vp_disease_treatment_plan add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after treatment_plan_id; -- 病历扩展项 create table vp_medical_extend_item ( id varchar(64) not null comment '主键' primary key, medical_id varchar(64) not null comment '病历id', item_id varchar(64) null comment '类目id', name varchar(64) null comment '分类名', item_content varchar(512) null comment '类目内容', create_user_id varchar(64) null comment '创建人ID', create_time datetime default CURRENT_TIMESTAMP null comment '创建时间', update_user_id varchar(64) null comment '更新人', update_time datetime default CURRENT_TIMESTAMP null comment '更新时间' ) comment '病历扩展项' charset = utf8 row_format = DYNAMIC; alter table vp_medical_rec add medical_type integer null comment '病历类型 0:普通型 1:学习型 3:考核型' after no; alter table vp_medical_rec add disposal_diagnosis varchar(1024) null comment '处置诊断' after differential_diagnosis_criteria;