Browse Source

诊断添加字段

zhoutg 4 years ago
parent
commit
cca3060ec2

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/dto/KlDiseaseDTO.java

@@ -139,6 +139,16 @@ public class KlDiseaseDTO implements Serializable {
      */
     private String remark;
 
+    /**
+     * 肿瘤细胞类型
+     */
+    private String tumorCellType;
+
+    /**
+     * 形态学分类代码
+     */
+    private String morphology;
+
     // 科室列表
     private List<KlConceptSimDTO> deptList = Lists.newLinkedList();
 

+ 12 - 247
cdssman-service/src/main/java/com/diagbot/entity/KlDisease.java

@@ -2,6 +2,7 @@ package com.diagbot.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Data;
 
 import java.io.Serializable;
 import java.util.Date;
@@ -14,6 +15,7 @@ import java.util.Date;
  * @author zhoutg
  * @since 2021-05-11
  */
+@Data
 public class KlDisease implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -164,255 +166,18 @@ public class KlDisease implements Serializable {
      */
     private String enName;
 
+    /**
+     * 肿瘤细胞类型
+     */
+    private String tumorCellType;
+
+    /**
+     * 形态学分类代码
+     */
+    private String morphology;
+
     /**
      * 备注
      */
     private String remark;
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-    public String getIsDeleted() {
-        return isDeleted;
-    }
-
-    public void setIsDeleted(String isDeleted) {
-        this.isDeleted = isDeleted;
-    }
-    public Date getGmtCreate() {
-        return gmtCreate;
-    }
-
-    public void setGmtCreate(Date gmtCreate) {
-        this.gmtCreate = gmtCreate;
-    }
-    public Date getGmtModified() {
-        return gmtModified;
-    }
-
-    public void setGmtModified(Date gmtModified) {
-        this.gmtModified = gmtModified;
-    }
-    public String getCreator() {
-        return creator;
-    }
-
-    public void setCreator(String creator) {
-        this.creator = creator;
-    }
-    public String getModifier() {
-        return modifier;
-    }
-
-    public void setModifier(String modifier) {
-        this.modifier = modifier;
-    }
-    public Long getConceptId() {
-        return conceptId;
-    }
-
-    public void setConceptId(Long conceptId) {
-        this.conceptId = conceptId;
-    }
-    public Long getDeptId() {
-        return deptId;
-    }
-
-    public void setDeptId(Long deptId) {
-        this.deptId = deptId;
-    }
-    public String getIcd10Code() {
-        return icd10Code;
-    }
-
-    public void setIcd10Code(String icd10Code) {
-        this.icd10Code = icd10Code;
-    }
-    public String getCourse() {
-        return course;
-    }
-
-    public void setCourse(String course) {
-        this.course = course;
-    }
-    public String getInducement() {
-        return inducement;
-    }
-
-    public void setInducement(String inducement) {
-        this.inducement = inducement;
-    }
-    public String getFoodProhibition() {
-        return foodProhibition;
-    }
-
-    public void setFoodProhibition(String foodProhibition) {
-        this.foodProhibition = foodProhibition;
-    }
-    public String getHazard() {
-        return hazard;
-    }
-
-    public void setHazard(String hazard) {
-        this.hazard = hazard;
-    }
-    public String getHealing() {
-        return healing;
-    }
-
-    public void setHealing(String healing) {
-        this.healing = healing;
-    }
-    public String getPernicious() {
-        return pernicious;
-    }
-
-    public void setPernicious(String pernicious) {
-        this.pernicious = pernicious;
-    }
-    public String getClinicType() {
-        return clinicType;
-    }
-
-    public void setClinicType(String clinicType) {
-        this.clinicType = clinicType;
-    }
-    public String getVulArea() {
-        return vulArea;
-    }
-
-    public void setVulArea(String vulArea) {
-        this.vulArea = vulArea;
-    }
-    public String getVulCrowd() {
-        return vulCrowd;
-    }
-
-    public void setVulCrowd(String vulCrowd) {
-        this.vulCrowd = vulCrowd;
-    }
-    public Double getIncidence() {
-        return incidence;
-    }
-
-    public void setIncidence(Double incidence) {
-        this.incidence = incidence;
-    }
-    public Integer getIsInfect() {
-        return isInfect;
-    }
-
-    public void setIsInfect(Integer isInfect) {
-        this.isInfect = isInfect;
-    }
-    public String getComplication() {
-        return complication;
-    }
-
-    public void setComplication(String complication) {
-        this.complication = complication;
-    }
-    public String getPathogeny() {
-        return pathogeny;
-    }
-
-    public void setPathogeny(String pathogeny) {
-        this.pathogeny = pathogeny;
-    }
-    public String getDisType() {
-        return disType;
-    }
-
-    public void setDisType(String disType) {
-        this.disType = disType;
-    }
-    public Integer getChWestern() {
-        return chWestern;
-    }
-
-    public void setChWestern(Integer chWestern) {
-        this.chWestern = chWestern;
-    }
-    public Integer getIsCommonDis() {
-        return isCommonDis;
-    }
-
-    public void setIsCommonDis(Integer isCommonDis) {
-        this.isCommonDis = isCommonDis;
-    }
-    public Integer getIsHeredity() {
-        return isHeredity;
-    }
-
-    public void setIsHeredity(Integer isHeredity) {
-        this.isHeredity = isHeredity;
-    }
-    public String getNameSimple() {
-        return nameSimple;
-    }
-
-    public void setNameSimple(String nameSimple) {
-        this.nameSimple = nameSimple;
-    }
-    public String getEnNameSimple() {
-        return enNameSimple;
-    }
-
-    public void setEnNameSimple(String enNameSimple) {
-        this.enNameSimple = enNameSimple;
-    }
-    public String getEnName() {
-        return enName;
-    }
-
-    public void setEnName(String enName) {
-        this.enName = enName;
-    }
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-
-    @Override
-    public String toString() {
-        return "KlDisease{" +
-            "id=" + id +
-            ", isDeleted=" + isDeleted +
-            ", gmtCreate=" + gmtCreate +
-            ", gmtModified=" + gmtModified +
-            ", creator=" + creator +
-            ", modifier=" + modifier +
-            ", conceptId=" + conceptId +
-            ", deptId=" + deptId +
-            ", icd10Code=" + icd10Code +
-            ", course=" + course +
-            ", inducement=" + inducement +
-            ", foodProhibition=" + foodProhibition +
-            ", hazard=" + hazard +
-            ", healing=" + healing +
-            ", pernicious=" + pernicious +
-            ", clinicType=" + clinicType +
-            ", vulArea=" + vulArea +
-            ", vulCrowd=" + vulCrowd +
-            ", incidence=" + incidence +
-            ", isInfect=" + isInfect +
-            ", complication=" + complication +
-            ", pathogeny=" + pathogeny +
-            ", disType=" + disType +
-            ", chWestern=" + chWestern +
-            ", isCommonDis=" + isCommonDis +
-            ", isHeredity=" + isHeredity +
-            ", nameSimple=" + nameSimple +
-            ", enNameSimple=" + enNameSimple +
-            ", enName=" + enName +
-            ", remark=" + remark +
-        "}";
-    }
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/vo/KlDiseaseVO.java

@@ -125,6 +125,16 @@ public class KlDiseaseVO implements Serializable {
      */
     private String enName;
 
+    /**
+     * 肿瘤细胞类型
+     */
+    private String tumorCellType;
+
+    /**
+     * 形态学分类代码
+     */
+    private String morphology;
+
     /**
      * 备注
      */

+ 4 - 0
cdssman-service/src/main/java/com/diagbot/web/KlConceptController.java

@@ -53,6 +53,7 @@ public class KlConceptController {
     public RespDTO<KlConceptAllDTO> getConceptInfoAll(@RequestBody @Valid KlConceptAllVO klConceptAllVO) {
         return RespDTO.onSuc(klConceptFacade.getConceptAlls(klConceptAllVO));
     }
+
     @ApiOperation(value = "新增和修改基础术语详情[by:wangfeng]",
             notes = "conceptId:术语Id\n" +
                     "libId:libId\n" +
@@ -89,6 +90,8 @@ public class KlConceptController {
                     "enNameSimple:英文简称\n" +
                     "enName:英文名称\n" +
                     "remark:备注\n" +
+                    "tumorCellType:肿瘤细胞类型\n" +
+                    "morphology:形态学分类代码\n" +
                     "deptList:科室列表\n" +
                     "partList:部位列表\n" +
                     "systemTypeList:疾病系统分类列表\n" +
@@ -166,6 +169,7 @@ public class KlConceptController {
     public RespDTO<Boolean> saveConceptInfos(@RequestBody @Valid KlConceptSaveVO klConceptSaveVO) {
         return RespDTO.onSuc(klConceptFacade.saveConceptInfo(klConceptSaveVO));
     }
+
     @ApiOperation(value = "删除同义词[by:wangfeng]")
     @PostMapping("/clearConceptInfo")
     @SysLogger("clearConceptInfo")

+ 2 - 0
cdssman-service/src/main/resources/mapper/KlDiseaseMapper.xml

@@ -33,6 +33,8 @@
         <result column="name_simple" property="nameSimple" />
         <result column="en_name_simple" property="enNameSimple" />
         <result column="en_name" property="enName" />
+        <result column="morphology" property="morphology" />
+        <result column="tumor_cell_type" property="tumorCellType" />
         <result column="remark" property="remark" />
     </resultMap>
 

+ 2 - 0
docs/041.20210511知识库扩展/knowledgeExt_init.sql

@@ -10,6 +10,8 @@ INSERT INTO `kl_lexicon_relationship` (`id`, `is_deleted`, `gmt_create`, `gmt_mo
 INSERT INTO `kl_lexicon_relationship` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `name`, `code`, `remark`) VALUES ('15', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '关联伴随症状', '514', '');
 INSERT INTO `kl_lexicon_relationship` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `name`, `code`, `remark`) VALUES ('16', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '关联性质', '515', '');
 
+ALTER TABLE `kl_disease` add COLUMN `tumor_cell_type` varchar(255) not null DEFAULT '' COMMENT '肿瘤细胞类型' AFTER `icd10_code`;
+ALTER TABLE `kl_disease` add COLUMN `morphology` varchar(255) not null DEFAULT '' COMMENT '形态学分类代码' AFTER `icd10_code`;
 ALTER TABLE `kl_disease` add COLUMN `en_name` varchar(255) not null DEFAULT '' COMMENT '英文名称' AFTER `icd10_code`;
 ALTER TABLE `kl_disease` add COLUMN `en_name_simple` varchar(255) not null DEFAULT '' COMMENT '英文简称' AFTER `icd10_code`;
 ALTER TABLE `kl_disease` add COLUMN `name_simple` varchar(255) not null DEFAULT '' COMMENT '简称' AFTER `icd10_code`;