1: 在诊断关联表中添加关系类型字段 用于区分病历或疾病定义的诊断信息。

dev_3.1.0
xueqingkun 11 months ago
parent df8b385152
commit 9998473e1c

@ -2,4 +2,12 @@ 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
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;

@ -102,7 +102,7 @@ public class DiseaseTreatmentPlanManageServiceImpl implements DiseaseTreatmentPl
assertDiseaseTreatmentPlan(diseaseTreatmentPlan);
// note: 如果diseaseTreatmentPlan.getDiseaseId()不为空则表示处置计划为药品需要进行手动矫正统一设置为20
// note: 如果diseaseTreatmentPlan.getDrugIds()不为空则表示处置计划为药品需要进行手动矫正统一设置为20
if (CollUtil.isNotEmpty(diseaseTreatmentPlan.getDrugIds())){
diseaseTreatmentPlan.setTreatmentPlanId(mapDrugTreatPlanId(diseaseTreatmentPlan.getDisposalMethod()));
}

@ -80,6 +80,10 @@ public class DiseaseAncillary implements Serializable {
@Schema(description = "说明")
private String description;
@Schema(description = "关系类型 0:关联疾病 1:关联病历")
private String relationType;
/**
* ID
*/

@ -86,6 +86,9 @@ public class DiseasePhysical implements Serializable {
@Schema(description = "表征 默认诊断结果")
private String trait;
@Schema(description = "关系类型 0:关联疾病 1:关联病历")
private String relationType;
/**
* ID
*/

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
@ -38,6 +39,9 @@ public class DiseaseTreatmentPlan implements Serializable {
*/
private String treatmentPlanId;
@Schema(description = "关系类型 0:关联疾病 1:关联病历")
private String relationType;
/**
* ID
*/

@ -19,6 +19,7 @@
<result property="result" column="result" jdbcType="VARCHAR"/>
<result property="normalResult" column="normal_result" jdbcType="VARCHAR"/>
<result property="description" column="description" jdbcType="VARCHAR"/>
<result property="relationType" column="relation_type" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
@ -29,7 +30,7 @@
id
,disease_id,item_id,require_check_flag,basis_confirm_flag,primarily_diagnosis_criteria_flag,basis_identification_flag
,full_check_flag,diagnosis_assessment_flag,expected_diagnosis_result,
result,normal_result,symptom_image_file_ids,description,create_user_id,
result,normal_result,symptom_image_file_ids,description,relation_type,create_user_id,
create_time,update_user_id,update_time
</sql>

@ -20,6 +20,7 @@
<result property="result" column="result" jdbcType="VARCHAR"/>
<result property="normalResult" column="normal_result" jdbcType="VARCHAR"/>
<result property="trait" column="trait" jdbcType="VARCHAR"/>
<result property="relationType" column="relation_type" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
@ -30,7 +31,7 @@
id,tool_id,location_id,disease_id,
require_check_flag,primarily_diagnosis_criteria_flag,basis_confirm_flag,
diagnosis_assessment_flag,expected_diagnosis_result,full_check_flag,
basis_identification_flag,result,normal_result,trait,
basis_identification_flag,result,normal_result,trait,relation_type,
create_user_id,create_time,update_user_id,
update_time
</sql>

@ -8,6 +8,7 @@
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
<result property="treatmentPlanId" column="treatment_plan_id" jdbcType="VARCHAR"/>
<result property="relationType" column="relation_type" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
@ -16,7 +17,7 @@
<sql id="Base_Column_List">
id
,disease_id,treatment_plan_id,create_user_id,
,disease_id,treatment_plan_id,relation_type,create_user_id,
create_time,update_user_id,update_time
</sql>

Loading…
Cancel
Save