Parcourir la source

标准术语维护

zhaops il y a 4 ans
Parent
commit
ef2e263b26

+ 2 - 0
src/main/java/com/diagbot/entity/node/EntityInfo.java

@@ -1,5 +1,6 @@
 package com.diagbot.entity.node;
 
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 import org.springframework.data.neo4j.annotation.QueryResult;
@@ -26,6 +27,7 @@ public class EntityInfo {
 
     //通用属性
     private String age;
+    @ApiModelProperty(hidden = true)
     private String ageRange;
     private String gender;
     //实验室检查名称、实验室检查、体征、实验室检查危急值

+ 221 - 23
src/main/java/com/diagbot/facade/EntityInfoFacade.java

@@ -1,8 +1,7 @@
 package com.diagbot.facade;
 
 import com.diagbot.dto.DictionaryInfoDTO;
-import com.diagbot.entity.node.EntityInfo;
-import com.diagbot.entity.node.LisName;
+import com.diagbot.entity.node.*;
 import com.diagbot.enums.LabelTypeEnum;
 import com.diagbot.exception.CommonErrorCode;
 import com.diagbot.exception.CommonException;
@@ -198,6 +197,7 @@ public class EntityInfoFacade {
 
     /**
      * 术语保存
+     *
      * @param entityInfo
      * @return
      */
@@ -249,17 +249,12 @@ public class EntityInfoFacade {
                             entityInfo.getGender());
                 }
                 break;
-            case "实验室检查套餐名":
-                if (entityInfo.getId() != null) {
-                    lisSetRepository.update(entityInfo);
+            case "实验室检查名":
+                if (entityInfo.getId() == null) {
+                    lisNameRepository.create(entityInfo, entityInfo.getUnit(), entityInfo.getMaxval(), entityInfo.getMinval(), entityInfo.getRange());
                 } else {
-                    lisSetRepository.create(entityInfo);
+                    lisNameRepository.update(entityInfo, entityInfo.getUnit(), entityInfo.getMaxval(), entityInfo.getMinval(), entityInfo.getRange());
                 }
-                break;
-            case "实验室检查名称":
-                LisName lisName = new LisName();
-                BeanUtil.copyProperties(entityInfo, lisName);
-
                 break;
             case "辅助检查名称":
                 if (entityInfo.getId() != null) {
@@ -275,8 +270,6 @@ public class EntityInfoFacade {
                     pacsSubNameRepository.create(entityInfo, entityInfo.getGender());
                 }
                 break;
-            case "药品通用名称":
-                break;
             case "医保手术和操作名称":
                 if (entityInfo.getOpgrade() == null) {
                     entityInfo.setOpgrade("0");
@@ -287,67 +280,272 @@ public class EntityInfoFacade {
                     yiBaoOperationNameRepository.create(entityInfo, entityInfo.getOpgrade());
                 }
                 break;
-            case "疾病":
-                break;
             case "实验室检查":
+                if (entityInfo.getId() == null) {
+                    lisRepository.create(entityInfo, entityInfo.getUnit());
+                } else {
+                    lisRepository.update(entityInfo, entityInfo.getUnit());
+                }
                 break;
             case "化验细项及结果":
+                //特殊处理
                 break;
             case "实验室检查危急值":
+                if (entityInfo.getId() == null) {
+                    lisCriticalRepository.create(entityInfo, entityInfo.getUnit());
+                } else {
+                    lisCriticalRepository.update(entityInfo, entityInfo.getUnit());
+                }
+                break;
+            case "药品代码通用名":
+                //特殊处理
+                break;
+            case "药品注册名称":
+                //特殊处理
+                break;
+            case "体征":
+                if (entityInfo.getId() == null) {
+                    vitalRepository.create(entityInfo, entityInfo.getUnit());
+                } else {
+                    vitalRepository.update(entityInfo, entityInfo.getUnit());
+                }
+                break;
+            case "药物过敏原":
+                if (StringUtil.isBlank(entityInfo.getMedtype())) {
+                    throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "请输入药品类型");
+                }
+                if (entityInfo.getId() == null) {
+                    medAllergenRepository.create(entityInfo, entityInfo.getMedtype(), entityInfo.getResult(), entityInfo.getAlias());
+                } else {
+                    medAllergenRepository.update(entityInfo, entityInfo.getMedtype(), entityInfo.getResult(), entityInfo.getAlias());
+                }
+                break;
+            case "实验室检查套餐名":
+                if (entityInfo.getId() == null) {
+                    LisSet lisSet = new LisSet();
+                    BeanUtil.copyProperties(entityInfo, lisSet);
+                    lisSetRepository.save(lisSet);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
+                break;
+            case "药品通用名称":
+                if (entityInfo.getId() == null) {
+                    Medicine medicine = new Medicine();
+                    BeanUtil.copyProperties(entityInfo, medicine);
+                    medicineRepository.save(medicine);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
+                break;
+            case "疾病":
+                if (entityInfo.getId() == null) {
+                    Disease disease = new Disease();
+                    BeanUtil.copyProperties(entityInfo, disease);
+                    diseaseRepository.save(disease);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "化验提醒指标":
+                if (entityInfo.getId() == null) {
+                    LisRemind lisRemind = new LisRemind();
+                    BeanUtil.copyProperties(entityInfo, lisRemind);
+                    lisRemindRepository.save(lisRemind);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "化验套餐名称":
+                if (entityInfo.getId() == null) {
+                    LisBigName lisBigName = new LisBigName();
+                    BeanUtil.copyProperties(entityInfo, lisBigName);
+                    lisBigNameRepository.save(lisBigName);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "辅助检查危急值":
+                if (entityInfo.getId() == null) {
+                    PacsCritical pacsCritical = new PacsCritical();
+                    BeanUtil.copyProperties(entityInfo, pacsCritical);
+                    pacsCriticalRepository.save(pacsCritical);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "辅助检查名称描述":
+                if (entityInfo.getId() == null) {
+                    PacsDescribe pacsDescribe = new PacsDescribe();
+                    BeanUtil.copyProperties(entityInfo, pacsDescribe);
+                    pacsDescribeRepository.save(pacsDescribe);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "辅助检查名称结果":
+                if (entityInfo.getId() == null) {
+                    PacsResult pacsResult = new PacsResult();
+                    BeanUtil.copyProperties(entityInfo, pacsResult);
+                    pacsResultRepository.save(pacsResult);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "辅检提醒指标":
-                break;
-            case "药品代码通用名":
-                break;
-            case "药品注册名称":
+                if (entityInfo.getId() == null) {
+                    PacsRemind pacsRemind = new PacsRemind();
+                    BeanUtil.copyProperties(entityInfo, pacsRemind);
+                    pacsRemindRepository.save(pacsRemind);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "药品类别":
+                if (entityInfo.getId() == null) {
+                    MedClass medClass = new MedClass();
+                    BeanUtil.copyProperties(entityInfo, medClass);
+                    medClassRepository.save(medClass);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "药品治疗学类别":
+                if (entityInfo.getId() == null) {
+                    MedZhiLiaoClass medZhiLiaoClass = new MedZhiLiaoClass();
+                    BeanUtil.copyProperties(entityInfo, medZhiLiaoClass);
+                    medZhiLiaoClassRepository.save(medZhiLiaoClass);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "药品药理学类别":
+                if (entityInfo.getId() == null) {
+                    MedYaoLiClass medYaoLiClass = new MedYaoLiClass();
+                    BeanUtil.copyProperties(entityInfo, medYaoLiClass);
+                    medYaoLiClassRepository.save(medYaoLiClass);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "药品解剖学类别":
+                if (entityInfo.getId() == null) {
+                    MedJiePouClass medJiePouClass = new MedJiePouClass();
+                    BeanUtil.copyProperties(entityInfo, medJiePouClass);
+                    medJiePouClassRepository.save(medJiePouClass);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "药品化学物质类别":
+                if (entityInfo.getId() == null) {
+                    MedChemClass medChemClass = new MedChemClass();
+                    BeanUtil.copyProperties(entityInfo, medChemClass);
+                    medChemClassRepository.save(medChemClass);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "服用药品":
+                if (entityInfo.getId() == null) {
+                    OralMedicine oralMedicine = new OralMedicine();
+                    BeanUtil.copyProperties(entityInfo, oralMedicine);
+                    oralMedicineRepository.save(oralMedicine);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "禁忌医疗器械及物品":
+                if (entityInfo.getId() == null) {
+                    ConflictDevice conflictDevice = new ConflictDevice();
+                    BeanUtil.copyProperties(entityInfo, conflictDevice);
+                    conflictDeviceRepository.save(conflictDevice);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "性别":
-                break;
-            case "体征":
+                if (entityInfo.getId() == null) {
+                    Gender gender = new Gender();
+                    BeanUtil.copyProperties(entityInfo, gender);
+                    genderRepository.save(gender);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "症状":
+                if (entityInfo.getId() == null) {
+                    Symptom symptom = new Symptom();
+                    BeanUtil.copyProperties(entityInfo, symptom);
+                    symptomNameRepository.save(symptom);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "临床表现":
+                if (entityInfo.getId() == null) {
+                    ClinicalFinding clinicalFinding = new ClinicalFinding();
+                    BeanUtil.copyProperties(entityInfo, clinicalFinding);
+                    clinicalFindingRepository.save(clinicalFinding);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "科室":
+                if (entityInfo.getId() == null) {
+                    Dept dept = new Dept();
+                    BeanUtil.copyProperties(entityInfo, dept);
+                    deptRepository.save(dept);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "开单项互斥":
+                if (entityInfo.getId() == null) {
+                    BillConflictItem billConflictItem = new BillConflictItem();
+                    BeanUtil.copyProperties(entityInfo, billConflictItem);
+                    billConflictItemRepository.save(billConflictItem);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "禁忌人群":
+                if (entityInfo.getId() == null) {
+                    Group group = new Group();
+                    BeanUtil.copyProperties(entityInfo, group);
+                    groupRepository.save(group);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "建议输血提醒":
-                break;
-            case "药物过敏原":
+                if (entityInfo.getId() == null) {
+                    TransfusionSuggest transfusionSuggest = new TransfusionSuggest();
+                    BeanUtil.copyProperties(entityInfo, transfusionSuggest);
+                    transfusionSuggestRepository.save(transfusionSuggest);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "过敏原":
+                if (entityInfo.getId() == null) {
+                    Allergen allergen = new Allergen();
+                    BeanUtil.copyProperties(entityInfo, allergen);
+                    allergenRepository.save(allergen);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             case "食物过敏原":
                 break;
             case "输血提醒指标":
+                if (entityInfo.getId() == null) {
+                    TransfusionRemind transfusionRemind = new TransfusionRemind();
+                    BeanUtil.copyProperties(entityInfo, transfusionRemind);
+                    transfusionRemindRepository.save(transfusionRemind);
+                } else {
+                    entityInfoRepository.update(entityInfo);
+                }
                 break;
             default:
                 break;

+ 21 - 0
src/main/java/com/diagbot/repository/EntityInfoRepository.java

@@ -126,4 +126,25 @@ public interface EntityInfoRepository extends Neo4jRepository<EntityBaseInfo,Lon
             "n.禁忌给药途径 as conflict_geiyao,\n" +
             "n.禁忌性别 as conflict_gender")
     EntityInfo getById(@Param("id") Long id);
+
+    @Query("match (n) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}")
+    void update(@Param("entityInfo") EntityInfo entityInfo);
+
+    @Query("create (n) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}" +
+            "with id(n) as nodeId\n" +
+            "match (n)\n" +
+            "where id(n) = nodeId\n" +
+            "set n::#{#entityInfo.labelType}")
+    void create(@Param("entityInfo") EntityInfo entityInfo);
 }

+ 26 - 2
src/main/java/com/diagbot/repository/LisCriticalRepository.java

@@ -1,8 +1,7 @@
 package com.diagbot.repository;
 
+import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.entity.node.LisCritical;
-import org.springframework.data.domain.Page;
-import org.springframework.data.domain.Pageable;
 import org.springframework.data.neo4j.annotation.Query;
 import org.springframework.data.neo4j.repository.Neo4jRepository;
 import org.springframework.data.repository.query.Param;
@@ -18,4 +17,29 @@ public interface LisCriticalRepository extends Neo4jRepository<LisCritical, Long
 
     List<LisCritical> findByNameIn(List<String> names);
 
+    @Query("match (n:实验室检查危急值) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    LisCritical update(@Param("entityInfo") EntityInfo entityInfo,
+                       @Param("unit") String unit);
+
+    @Query("create (n:实验室检查危急值) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    LisCritical create(@Param("entityInfo") EntityInfo entityInfo,
+                       @Param("unit") String unit);
+
 }

+ 38 - 0
src/main/java/com/diagbot/repository/LisNameRepository.java

@@ -1,5 +1,6 @@
 package com.diagbot.repository;
 
+import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.entity.node.LisName;
 import org.springframework.data.domain.Page;
 import org.springframework.data.domain.Pageable;
@@ -52,4 +53,41 @@ public interface LisNameRepository extends Neo4jRepository<LisName, Long> {
 
     @Query("MATCH (n:实验室检查名称) RETURN DISTINCT n.name as name LIMIT {size}")
     List<String> getname(@Param("size") Integer size);
+
+    @Query("match (n:实验室检查名称) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}," +
+            "n.最大值 = {maxValue}," +
+            "n.最小值 = {minValue}," +
+            "n.范围 = {range}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    LisName update(@Param("entityInfo") EntityInfo entityInfo,
+                   @Param("unit") String unit,
+                   @Param("maxValue") Double maxValue,
+                   @Param("minValue") Double minValue,
+                   @Param("range") Integer range);
+
+    @Query("create (n:实验室检查名称) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}," +
+            "n.最大值 = {maxValue}," +
+            "n.最小值 = {minValue}," +
+            "n.范围 = {range}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    LisName create(@Param("entityInfo") EntityInfo entityInfo,
+                   @Param("unit") String unit,
+                   @Param("maxValue") Double maxValue,
+                   @Param("minValue") Double minValue,
+                   @Param("range") Integer range);
 }

+ 26 - 0
src/main/java/com/diagbot/repository/LisRepository.java

@@ -1,5 +1,6 @@
 package com.diagbot.repository;
 
+import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.entity.node.Lis;
 import org.springframework.data.neo4j.annotation.Query;
 import org.springframework.data.neo4j.repository.Neo4jRepository;
@@ -45,4 +46,29 @@ public interface LisRepository extends Neo4jRepository<Lis,Long> {
                        @Param("unit") String unit,
                        @Param("indication") String indication);
 
+    @Query("match (n:实验室检查) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    Lis update(@Param("entityInfo") EntityInfo entityInfo,
+               @Param("unit") String unit);
+
+    @Query("create (n:实验室检查) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    Lis create(@Param("entityInfo") EntityInfo entityInfo,
+               @Param("unit") String unit);
+
 }

+ 35 - 0
src/main/java/com/diagbot/repository/MedAllergenRepository.java

@@ -1,7 +1,10 @@
 package com.diagbot.repository;
 
+import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.entity.node.MedAllergen;
+import org.springframework.data.neo4j.annotation.Query;
 import org.springframework.data.neo4j.repository.Neo4jRepository;
+import org.springframework.data.repository.query.Param;
 
 import java.util.List;
 
@@ -14,5 +17,37 @@ public interface MedAllergenRepository extends Neo4jRepository<MedAllergen, Long
 
     List<MedAllergen> findByNameContaining(String name);
 
+    @Query("match (n:药物过敏原) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.药品类型 = {medtype}," +
+            "n.结果 = {result}," +
+            "n.名称 = {alias}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    MedAllergen update(@Param("entityInfo") EntityInfo entityInfo,
+                       @Param("medtype") String medtype,
+                       @Param("result") String result,
+                       @Param("alias") String alias);
+
+    @Query("create (n:药物过敏原) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.药品类型 = {medtype}," +
+            "n.结果 = {result}," +
+            "n.名称 = {alias}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    MedAllergen create(@Param("entityInfo") EntityInfo entityInfo,
+                       @Param("medtype") String medtype,
+                       @Param("result") String result,
+                       @Param("alias") String alias);
 }
 

+ 26 - 0
src/main/java/com/diagbot/repository/VitalRepository.java

@@ -1,5 +1,6 @@
 package com.diagbot.repository;
 
+import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.entity.node.Vital;
 import org.springframework.data.neo4j.annotation.Query;
 import org.springframework.data.neo4j.repository.Neo4jRepository;
@@ -64,5 +65,30 @@ public interface VitalRepository extends Neo4jRepository<Vital, Long> {
                          @Param("range") Integer range,
                          @Param("unit") String unit,
                          @Param("indication") String indication);
+
+    @Query("match (n:体征) \n" +
+            "where id(n) = :#{#entityInfo.id} \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    Vital update(@Param("entityInfo") EntityInfo entityInfo,
+                 @Param("unit") String unit);
+
+    @Query("create (n:体征) \n" +
+            "set  " +
+            "n.name = :#{#entityInfo.name}," +
+            "n.拼音编码 = :#{#entityInfo.pycode}," +
+            "n.静态知识标识 = :#{#entityInfo.is_kl}," +
+            "n.状态 = :#{#entityInfo.status}," +
+            "n.单位 = {unit}" +
+            "\n" +
+            "RETURN n,[ (n)-[r]->(m) | [ r, m ] ], ID(n)\n")
+    Vital create(@Param("entityInfo") EntityInfo entityInfo,
+                 @Param("unit") String unit);
 }
 

+ 25 - 2
src/main/java/com/diagbot/web/EntityInfoController.java

@@ -51,8 +51,31 @@ public class EntityInfoController {
     }
 
     @ApiOperation(value = "保存[zhaops]",
-            notes = "name:术语名称(模糊匹配)<br>" +
-                    "labelType:术语类型-知识图谱标签类型(String)<br>")
+            notes = "id:术语ID<br>" +
+                    "name:术语名称<br>" +
+                    "pycode:拼音编码<br>" +
+                    "status:状态(0-禁用,1-启用,默认1)<br>" +
+                    "is_kl:静态知识标识(0-无,1-有,默认0)<br>" +
+                    "labelType:术语类型-知识图谱标签类型(详情见字典)<br>" +
+                    "age:年龄<br>" +
+                    "gender:性别<br>" +
+                    "unit:单位(实验室检查名称、实验室检查、体征、实验室检查危急值)<br>" +
+                    "alias:别名(医保诊断名称、药物过敏原、药品注册名称)<br>" +
+                    "result:结果(药物过敏原、药品注册名称)<br>" +
+                    "minval:最小值(实验室检查名称)<br>" +
+                    "maxval:最大值(实验室检查名称)<br>" +
+                    "range:范围(0-范围内,1-范围外,默认0)<br>" +
+                    "category:诊断分类(医保诊断名称属性:1、2,无默认值)<br>" +
+                    "dept:诊断所属科室(医保诊断名称属性)<br>" +
+                    "minAge:年龄下限(医保诊断名称属性)<br>" +
+                    "maxAge:年龄上限(医保诊断名称属性)<br>" +
+                    "opgrade:手术等级(医保手术和操作属性:0、1、2、3、4,默认0)<br>" +
+                    "highriskcond:高危条件(医保手术和操作属性)<br>" +
+                    "special:特殊标志(化验细项及结果属性:是)<br>" +
+                    "medtype:药品类型(药物过敏原属性:药品、药品类别)<br>" +
+                    "risklevel:药品高危级别(药品注册名称属性)<br>" +
+                    "conflict_geiyao:禁忌给药途径(药品注册名称属性)<br>" +
+                    "conflict_gender:禁忌性别(药品注册名称属性)<br>")
     @PostMapping("/saveEntity")
     public RespDTO<Boolean> saveEntity(@RequestBody EntityInfo entityInfo) {
         Boolean data = entityInfoFacade.saveEntity(entityInfo);