瀏覽代碼

Merge branch 'debug' of http://192.168.2.236:10080/gaodm/diagbotcloud into debug

zhaops 3 年之前
父節點
當前提交
50f20b9ad9
共有 67 個文件被更改,包括 1767 次插入146 次删除
  1. 14 0
      cdssman-service/src/main/java/com/diagbot/client/CdssClient.java
  2. 19 0
      cdssman-service/src/main/java/com/diagbot/client/hystrix/CdssHystrix.java
  3. 72 0
      cdssman-service/src/main/java/com/diagbot/dto/HospitalInfoGetDTO.java
  4. 70 0
      cdssman-service/src/main/java/com/diagbot/dto/HospitalInfoPageDTO.java
  5. 30 0
      cdssman-service/src/main/java/com/diagbot/dto/HospitalRelationDTO.java
  6. 27 0
      cdssman-service/src/main/java/com/diagbot/dto/HospitalRelationErrorDTO.java
  7. 1 0
      cdssman-service/src/main/java/com/diagbot/dto/IndexBatchDTO.java
  8. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/AnesthesiaConfig.java
  9. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/DeptConfig.java
  10. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/DiseaseConfig.java
  11. 2 2
      cdssman-service/src/main/java/com/diagbot/entity/DrugConfig.java
  12. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/LisConfig.java
  13. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/NurseConfig.java
  14. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/OperationConfig.java
  15. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/PacsConfig.java
  16. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/ScaleConfig.java
  17. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/TcmdiseaseConfig.java
  18. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/TcmsyndromeConfig.java
  19. 73 0
      cdssman-service/src/main/java/com/diagbot/entity/TranHospitalRelation.java
  20. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/TransfusionConfig.java
  21. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/AnesthesiaConfigWrapper.java
  22. 24 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/DeptConfigWrapper.java
  23. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/DiseaseConfigWrapper.java
  24. 28 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/DrugConfigWrapper.java
  25. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/LisConfigWrapper.java
  26. 24 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/MappingConfigWrapper.java
  27. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/NurseConfigWrapper.java
  28. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/OperationConfigWrapper.java
  29. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/PacsConfigWrapper.java
  30. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/ScaleConfigWrapper.java
  31. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/TcmdiseaseConfigWrapper.java
  32. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/TcmsyndromeConfigWrapper.java
  33. 23 0
      cdssman-service/src/main/java/com/diagbot/entity/wrapper/TransfusionConfigWrapper.java
  34. 2 1
      cdssman-service/src/main/java/com/diagbot/enums/MatchSourceEnum.java
  35. 3 2
      cdssman-service/src/main/java/com/diagbot/exception/ServiceErrorCode.java
  36. 161 43
      cdssman-service/src/main/java/com/diagbot/facade/HospitalInfoFacade.java
  37. 1 1
      cdssman-service/src/main/java/com/diagbot/facade/KlConceptFacade.java
  38. 124 35
      cdssman-service/src/main/java/com/diagbot/facade/MappingConfigFacade.java
  39. 36 8
      cdssman-service/src/main/java/com/diagbot/facade/PlanDefaultFacade.java
  40. 17 2
      cdssman-service/src/main/java/com/diagbot/facade/PlanFacade.java
  41. 5 5
      cdssman-service/src/main/java/com/diagbot/facade/ResultStaticKnowledgeFacade.java
  42. 14 0
      cdssman-service/src/main/java/com/diagbot/facade/TranHospitalRelationFacade.java
  43. 2 2
      cdssman-service/src/main/java/com/diagbot/mapper/HospitalInfoMapper.java
  44. 16 0
      cdssman-service/src/main/java/com/diagbot/mapper/TranHospitalRelationMapper.java
  45. 2 2
      cdssman-service/src/main/java/com/diagbot/service/HospitalInfoService.java
  46. 16 0
      cdssman-service/src/main/java/com/diagbot/service/TranHospitalRelationService.java
  47. 2 2
      cdssman-service/src/main/java/com/diagbot/service/impl/HospitalInfoServiceImpl.java
  48. 20 0
      cdssman-service/src/main/java/com/diagbot/service/impl/TranHospitalRelationServiceImpl.java
  49. 1 1
      cdssman-service/src/main/java/com/diagbot/vo/ConceptVO.java
  50. 1 0
      cdssman-service/src/main/java/com/diagbot/vo/FilterVO.java
  51. 26 0
      cdssman-service/src/main/java/com/diagbot/vo/HospitalInfoGetVO.java
  52. 63 0
      cdssman-service/src/main/java/com/diagbot/vo/HospitalInfoSaveVO.java
  53. 33 0
      cdssman-service/src/main/java/com/diagbot/vo/HospitalRelationVO.java
  54. 10 0
      cdssman-service/src/main/java/com/diagbot/vo/MappingConfigPageVO.java
  55. 2 0
      cdssman-service/src/main/java/com/diagbot/vo/PlanDefaultVO.java
  56. 27 16
      cdssman-service/src/main/java/com/diagbot/web/HospitalInfoController.java
  57. 2 3
      cdssman-service/src/main/java/com/diagbot/web/MappingConfigController.java
  58. 1 1
      cdssman-service/src/main/resources/mapper/HospitalInfoMapper.xml
  59. 19 0
      cdssman-service/src/main/resources/mapper/TranHospitalRelationMapper.xml
  60. 2 2
      cdssman-service/src/test/java/com/diagbot/CodeGeneration.java
  61. 1 1
      common/src/main/java/com/diagbot/exception/CommonErrorCode.java
  62. 114 0
      common/src/main/java/com/diagbot/util/AgeUtil.java
  63. 2 2
      config-server/src/main/resources/shared/mrman-service-dev.yml
  64. 2 2
      config-server/src/main/resources/shared/mrman-service-local.yml
  65. 410 0
      docs/042.20211011默认方案初始化脚本/cdss_init.sql
  66. 1 1
      user-service/src/main/java/com/diagbot/service/impl/TokenServiceImpl.java
  67. 4 1
      user-service/src/main/java/com/diagbot/web/UserController.java

+ 14 - 0
cdssman-service/src/main/java/com/diagbot/client/CdssClient.java

@@ -98,6 +98,20 @@ public interface CdssClient {
                                  @RequestParam("type") Integer type,
                                  @RequestParam("uesrId") String userId);
 
+    /**
+     * 数据导入
+     *
+     * @param file
+     * @param hospitalId
+     * @param type
+     * @param userId
+     */
+    @PostMapping(value = "/tran/mappingConfig/importExcel_remote", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
+    RespDTO<List<MappingConfigWrapper>> importExcel_remote(@RequestPart("file") MultipartFile file,
+                                 @RequestParam("hospitalId") Long hospitalId,
+                                 @RequestParam("type") Integer type,
+                                 @RequestParam("uesrId") String userId);
+
 
     /**
      * 数据导出_远程调用

+ 19 - 0
cdssman-service/src/main/java/com/diagbot/client/hystrix/CdssHystrix.java

@@ -11,7 +11,9 @@ import com.diagbot.vo.MappingConfigPageVO;
 import com.diagbot.vo.MappingConfigVO;
 import feign.FeignException;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
 import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RequestPart;
@@ -71,6 +73,23 @@ public class CdssHystrix implements CdssClient {
         return null;
     }
 
+    /**
+     * 数据导入
+     *
+     * @param file
+     * @param hospitalId
+     * @param type
+     * @param userId
+     */
+    @Override
+    public RespDTO<List<MappingConfigWrapper>> importExcel_remote(@RequestPart("file") MultipartFile file,
+                                                    @RequestParam("hospitalId") Long hospitalId,
+                                                    @RequestParam("type") Integer type,
+                                                    @RequestParam("uesrId") String userId){
+        log.error("【hystrix】调用{}异常", "importExcel_remote");
+        return null;
+    }
+
     @Override
     public RespDTO<List<MappingConfigWrapper>> exportExcel_remote(@RequestBody @Valid MappingConfigPageVO mappingConfigPageVO) {
         log.error("【hystrix】调用{}异常", "exportExcel_remote");

+ 72 - 0
cdssman-service/src/main/java/com/diagbot/dto/HospitalInfoGetDTO.java

@@ -0,0 +1,72 @@
+package com.diagbot.dto;
+
+import com.google.common.collect.Lists;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * <p>
+ * 医院信息表
+ * </p>
+ *
+ * @author wangfeng
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalInfoGetDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    private Long id;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 医院名称
+     */
+    private String name;
+
+    /**
+     * 医院地址
+     */
+    private String address;
+
+    /**
+     * 医院名称拼音
+     */
+    private String spell;
+
+    /**
+     * 状态:0.禁用1.启用
+     */
+    private Integer status;
+
+    /**
+     * 是否对接(0-不对接,1-对接)
+     */
+    private Integer connect;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    /**
+     * 子医院关联表
+     */
+    private List<HospitalRelationDTO> hospitalRelationDTOList = Lists.newLinkedList();
+}

+ 70 - 0
cdssman-service/src/main/java/com/diagbot/dto/HospitalInfoPageDTO.java

@@ -0,0 +1,70 @@
+package com.diagbot.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 医院信息表
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalInfoPageDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    private Long id;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 医院名称
+     */
+    private String name;
+
+    /**
+     * 医院地址
+     */
+    private String address;
+
+    /**
+     * 医院名称拼音
+     */
+    private String spell;
+
+    /**
+     * 状态:0.禁用1.启用
+     */
+    private Integer status;
+
+    /**
+     * 是否对接(0-不对接,1-对接)
+     */
+    private Integer connect;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    /**
+     * 子医院
+     */
+    private String sonHospital;
+}

+ 30 - 0
cdssman-service/src/main/java/com/diagbot/dto/HospitalRelationDTO.java

@@ -0,0 +1,30 @@
+package com.diagbot.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 医院关联表
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalRelationDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 子医院名称
+     */
+    private String name;
+
+    /**
+     * 子医院编码
+     */
+    private String code;
+
+}

+ 27 - 0
cdssman-service/src/main/java/com/diagbot/dto/HospitalRelationErrorDTO.java

@@ -0,0 +1,27 @@
+package com.diagbot.dto;
+
+import com.diagbot.vo.HospitalRelationVO;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * <p>
+ * 医院关联表提示出错
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalRelationErrorDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    // 当前医院重复
+    private List<HospitalRelationVO> errorCurrent;
+
+    // 与其他医院重复
+    private List<HospitalRelationVO> errorOther;
+}

+ 1 - 0
cdssman-service/src/main/java/com/diagbot/dto/IndexBatchDTO.java

@@ -12,6 +12,7 @@ import lombok.Setter;
 @Setter
 public class IndexBatchDTO {
     private Long id;
+    private Integer status;
     private String name;
     private String code;
     private String synonyms;

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/AnesthesiaConfig.java

@@ -36,7 +36,7 @@ public class AnesthesiaConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null"}, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/DeptConfig.java

@@ -83,7 +83,7 @@ public class DeptConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/DiseaseConfig.java

@@ -78,7 +78,7 @@ public class DiseaseConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/entity/DrugConfig.java

@@ -82,12 +82,12 @@ public class DrugConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "5", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "5", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**
      * 数据来源(1-标准词、2-同义词、3-编码、4-历史数据、5-相似词、99-数据迁移)
      */
-    @Excel(name = "数据来源【不填、标准词、同义词、编码、历史数据、相似词】", width = 20, orderNum = "6", replace = { "标准词_1", "同义词_2", "编码_3", "历史数据_4", "相似词_5", "国药准字_6", "数据迁移_99", "_null" }, isImportField = "true")
+    @Excel(name = "数据来源【不填、标准词、同义词、编码、历史数据、相似词、国药准字】", width = 20, orderNum = "6", replace = { "标准词_1", "同义词_2", "编码_3", "历史数据_4", "相似词_5", "国药准字_6", "数据迁移_99", "_null" }, isImportField = "true")
     private Integer source;
 }

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/LisConfig.java

@@ -87,7 +87,7 @@ public class LisConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/NurseConfig.java

@@ -77,7 +77,7 @@ public class NurseConfig{
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/OperationConfig.java

@@ -78,7 +78,7 @@ public class OperationConfig{
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null"}, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/PacsConfig.java

@@ -79,7 +79,7 @@ public class PacsConfig implements Serializable {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/ScaleConfig.java

@@ -77,7 +77,7 @@ public class ScaleConfig{
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/TcmdiseaseConfig.java

@@ -78,7 +78,7 @@ public class TcmdiseaseConfig{
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/TcmsyndromeConfig.java

@@ -78,7 +78,7 @@ public class TcmsyndromeConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 73 - 0
cdssman-service/src/main/java/com/diagbot/entity/TranHospitalRelation.java

@@ -0,0 +1,73 @@
+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;
+
+/**
+ * <p>
+ * 医院关联表
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2021-10-09
+ */
+@Data
+public class TranHospitalRelation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 子医院编码
+     */
+    private String code;
+
+    /**
+     * 子医院名称
+     */
+    private String name;
+
+    /**
+     * 父医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/TransfusionConfig.java

@@ -78,7 +78,7 @@ public class TransfusionConfig {
     /**
      * 是否匹配(0-未匹配、1-已匹配)
      */
-    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
+    @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1", "_null" }, isImportField = "true")
     private Integer isMatch;
 
     /**

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/AnesthesiaConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.AnesthesiaConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:13
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class AnesthesiaConfigWrapper extends AnesthesiaConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 24 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/DeptConfigWrapper.java

@@ -0,0 +1,24 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.DeptConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 14:53
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class DeptConfigWrapper extends DeptConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/DiseaseConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.DiseaseConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:00
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class DiseaseConfigWrapper extends DiseaseConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 28 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/DrugConfigWrapper.java

@@ -0,0 +1,28 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.DrugConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:02
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class DrugConfigWrapper extends DrugConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准剂型状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "100")
+    private Integer formStatus;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/LisConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.LisConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:09
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class LisConfigWrapper extends LisConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 24 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/MappingConfigWrapper.java

@@ -16,17 +16,41 @@ import lombok.ToString;
 @ToString(callSuper = true)
 public class MappingConfigWrapper extends MappingConfig {
     private String uniqueName;
+    private Integer status;
     private String form;
+    private Integer formStatus;
     private String code;
     /**
      * 国药准字
      */
     private String approval;
 
+   /* @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        MappingConfigWrapper mappingConfigWrapper = (MappingConfigWrapper) o;
+        return super.equals(o)
+                && Objects.equals(uniqueName, mappingConfigWrapper.uniqueName)
+                && Objects.equals(form, mappingConfigWrapper.form)
+                && Objects.equals(code, mappingConfigWrapper.code);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(uniqueName, form, code) + super.hashCode();
+    }*/
+
     public static boolean nonNull(MappingConfigWrapper o) {
         return !(o == null
                 || (StringUtil.isBlank(o.uniqueName)
+                && o.status == null
                 && StringUtil.isBlank(o.form)
+                && o.formStatus == null
                 && StringUtil.isBlank(o.code)
                 && StringUtil.isBlank(o.approval)))
                 || MappingConfig.nonNull(o);

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/NurseConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.NurseConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:12
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class NurseConfigWrapper extends NurseConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/OperationConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.OperationConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:08
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class OperationConfigWrapper extends OperationConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/PacsConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.PacsConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:10
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class PacsConfigWrapper extends PacsConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/ScaleConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.ScaleConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:15
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class ScaleConfigWrapper extends ScaleConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/TcmdiseaseConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.TcmdiseaseConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class TcmdiseaseConfigWrapper extends TcmdiseaseConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/TcmsyndromeConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.TcmsyndromeConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:18
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class TcmsyndromeConfigWrapper extends TcmsyndromeConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 23 - 0
cdssman-service/src/main/java/com/diagbot/entity/wrapper/TransfusionConfigWrapper.java

@@ -0,0 +1,23 @@
+package com.diagbot.entity.wrapper;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.diagbot.entity.TransfusionConfig;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2021/9/22 15:18
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class TransfusionConfigWrapper extends TransfusionConfig {
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "标准术语状态", width = 40, replace = { "禁用_0", "启用_1", "_null" }, orderNum = "99")
+    private Integer status;
+}

+ 2 - 1
cdssman-service/src/main/java/com/diagbot/enums/MatchSourceEnum.java

@@ -13,7 +13,8 @@ public enum MatchSourceEnum implements KeyedNamed {
     SynonymsWord(2, "同义词"),
     Code(3,"编码"),
     History(4,"历史数据"),
-    SimilarWord(5,"相似词");
+    SimilarWord(5,"相似词"),
+    Approval(6,"国药准字");
 
     @Setter
     private int key;

+ 3 - 2
cdssman-service/src/main/java/com/diagbot/exception/ServiceErrorCode.java

@@ -8,7 +8,8 @@ package com.diagbot.exception;
  * @time: 2018/9/10 11:11
  */
 public enum ServiceErrorCode implements ErrorCode {
-    LOG_IS_NOT_EXIST("90020001", "该日志不存在");
+    LOG_IS_NOT_EXIST("90020001", "该日志不存在"),
+    NAME_CODE_ERROR("20020009", "操作失败,请检查【医院名称+医院编码】重复项");
 
     private String code;
     private String msg;
@@ -30,7 +31,7 @@ public enum ServiceErrorCode implements ErrorCode {
 
     public static ServiceErrorCode codeOf(String code) {
         for (ServiceErrorCode state : values()) {
-            if (state.getCode() == code) {
+            if (state.getCode().equals(code)) {
                 return state;
             }
         }

+ 161 - 43
cdssman-service/src/main/java/com/diagbot/facade/HospitalInfoFacade.java

@@ -4,33 +4,44 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.dto.HospitalInfoDTO;
-import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.dto.HospitalInfoGetDTO;
+import com.diagbot.dto.HospitalInfoPageDTO;
+import com.diagbot.dto.HospitalRelationDTO;
+import com.diagbot.dto.HospitalRelationErrorDTO;
 import com.diagbot.entity.HospitalInfo;
 import com.diagbot.entity.MappingConfig;
 import com.diagbot.entity.Plan;
+import com.diagbot.entity.TranHospitalRelation;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.exception.CommonErrorCode;
 import com.diagbot.exception.CommonException;
 import com.diagbot.service.HospitalInfoService;
+import com.diagbot.service.TranHospitalRelationService;
 import com.diagbot.service.impl.HospitalInfoServiceImpl;
 import com.diagbot.util.BeanUtil;
 import com.diagbot.util.Cn2SpellUtil;
 import com.diagbot.util.DateUtil;
+import com.diagbot.util.EntityUtil;
 import com.diagbot.util.ListUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
 import com.diagbot.vo.ChangeStatusVO;
+import com.diagbot.vo.HospitalInfoGetVO;
 import com.diagbot.vo.HospitalInfoListVO;
 import com.diagbot.vo.HospitalInfoPageVO;
+import com.diagbot.vo.HospitalInfoSaveVO;
+import com.diagbot.vo.HospitalRelationVO;
 import com.diagbot.vo.HospitalSaveVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
+import com.google.common.collect.Lists;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
 import java.util.Date;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.stream.Collectors;
@@ -49,6 +60,9 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
     private MappingConfigFacade mappingConfigFacade;
     @Autowired
     private PlanFacade planFacade;
+    @Autowired
+    @Qualifier("tranHospitalRelationServiceImpl")
+    TranHospitalRelationService tranHospitalRelationService;
 
     public List<HospitalInfoDTO> getHospitalInfo() {
         QueryWrapper<HospitalInfo> hospitalInfo = new QueryWrapper<>();
@@ -59,49 +73,62 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
         return data;
     }
 
+    /**
+     * 根据ID获取医院信息
+     *
+     * @param hospitalInfoGetVO
+     * @return
+     */
+    public HospitalInfoGetDTO getById(HospitalInfoGetVO hospitalInfoGetVO) {
+        HospitalInfo hospitalInfo = this.getOne(new QueryWrapper<HospitalInfo>()
+                .eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("id", hospitalInfoGetVO.getId()), false);
+        if (hospitalInfo == null) {
+            throw new CommonException(CommonErrorCode.NOT_EXISTS, "数据不存在");
+        }
+        HospitalInfoGetDTO hospitalInfoGetDTO = new HospitalInfoGetDTO();
+        BeanUtil.copyProperties(hospitalInfo, hospitalInfoGetDTO);
+
+        List<TranHospitalRelation> relationList = tranHospitalRelationService.list(new QueryWrapper<TranHospitalRelation>()
+                .eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("hospital_id", hospitalInfoGetVO.getId()));
+        List<HospitalRelationDTO> hospitalRelationDTOS = BeanUtil.listCopyTo(relationList, HospitalRelationDTO.class);
+        hospitalInfoGetDTO.setHospitalRelationDTOList(hospitalRelationDTOS);
+        return hospitalInfoGetDTO;
+    }
+
     /**
      * 保存记录-单条
      *
-     * @param hospitalInfo
+     * @param hospitalInfoSaveVO
      * @return
      */
-    public Boolean saveOrUpdateRecord(HospitalInfo hospitalInfo) {
+    public HospitalRelationErrorDTO saveOrUpdateRecord(HospitalInfoSaveVO hospitalInfoSaveVO) {
         String userId = UserUtils.getCurrentPrincipleID();
+        HospitalInfo hospitalInfo = new HospitalInfo();
+        BeanUtil.copyProperties(hospitalInfoSaveVO, hospitalInfo);
         Date now = DateUtil.now();
         hospitalInfo.setModifier(userId);
         hospitalInfo.setGmtModified(now);
-        QueryWrapper<HospitalInfo> queryWrapper = new QueryWrapper<>();
         if (StringUtil.isNotBlank(hospitalInfo.getName())) {
-            queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
-            queryWrapper.eq("name", hospitalInfo.getName());
-            HospitalInfo oldRecord = this.getOne(queryWrapper, false);
-            if (hospitalInfo.getId() == null
-                    && oldRecord != null) {
-                throw new CommonException(CommonErrorCode.IS_EXISTS, "该医院名称已存在");
-            }
-            if (hospitalInfo.getId() != null
-                    && oldRecord != null
-                    && !hospitalInfo.getId().equals(oldRecord.getId())) {
+            HospitalInfo oldRecord = this.getOne(new QueryWrapper<HospitalInfo>()
+                    .eq("is_deleted", IsDeleteEnum.N.getKey())
+                    .eq("name", hospitalInfo.getName())
+                    .ne("id", hospitalInfo.getId() == null ? -999 : hospitalInfo.getId()), false);
+            if (oldRecord != null) {
                 throw new CommonException(CommonErrorCode.IS_EXISTS, "该医院名称已存在");
             }
         }
-        /*if (StringUtil.isNotBlank(hospitalInfo.getCode())) {
-            queryWrapper = new QueryWrapper<>();
-            queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
-            queryWrapper.eq("code", hospitalInfo.getCode());
-            HospitalInfo oldRecord = this.getOne(queryWrapper, false);
-            if (hospitalInfo.getId() == null
-                    && oldRecord != null) {
-                throw new CommonException(CommonErrorCode.IS_EXISTS, "该医院编码已存在");
-            }
-            if (hospitalInfo.getId() != null
-                    && oldRecord != null
-                    && !hospitalInfo.getId().equals(oldRecord.getId())) {
-                throw new CommonException(CommonErrorCode.IS_EXISTS, "该医院编码已存在");
-            }
-        }*/
 
-        //新增数据
+        // 获取子医院
+        List<HospitalRelationVO> hospitalRelationVOList = hospitalInfoSaveVO.getHospitalRelationVOList();
+        // 校验子医院
+        HospitalRelationErrorDTO res = checkRelationHospital(hospitalRelationVOList, hospitalInfo.getId());
+        if (res != null) {
+            return res;
+        }
+
+        // 新增数据
         if (hospitalInfo.getId() == null) {
             hospitalInfo.setCreator(userId);
             hospitalInfo.setGmtCreate(now);
@@ -110,11 +137,73 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
         if (StringUtil.isBlank(hospitalInfo.getSpell())) {
             hospitalInfo.setSpell(Cn2SpellUtil.converterToFirstSpell(hospitalInfo.getName()));
         }
-        if (hospitalInfo.getIsDeleted() == null) {
-            hospitalInfo.setIsDeleted(IsDeleteEnum.N.getKey());
-        }
         this.saveOrUpdate(hospitalInfo);
-        return true;
+
+        // 先删除子医院关联表
+        tranHospitalRelationService.remove(new QueryWrapper<TranHospitalRelation>().eq("hospital_id", hospitalInfo.getId()));
+        // 插入子医院关联表
+        List<TranHospitalRelation> saveRelationList = Lists.newArrayList();
+        for (HospitalRelationVO hospitalRelationVO : hospitalRelationVOList) {
+            TranHospitalRelation tranHospitalRelation = new TranHospitalRelation();
+            BeanUtil.copyProperties(hospitalRelationVO, tranHospitalRelation);
+            tranHospitalRelation.setHospitalId(hospitalInfo.getId());
+            tranHospitalRelation.setCreator(userId);
+            tranHospitalRelation.setModifier(userId);
+            tranHospitalRelation.setGmtCreate(now);
+            tranHospitalRelation.setGmtModified(now);
+            saveRelationList.add(tranHospitalRelation);
+        }
+        if (ListUtil.isNotEmpty(saveRelationList)) {
+            tranHospitalRelationService.saveBatch(saveRelationList);
+        }
+        return null;
+    }
+
+    /**
+     * 校验子医院
+     *
+     * @param hospitalRelationVOList
+     * @param curHospitalId
+     * @return
+     */
+    public HospitalRelationErrorDTO checkRelationHospital(List<HospitalRelationVO> hospitalRelationVOList, Long curHospitalId) {
+        HospitalRelationErrorDTO res = new HospitalRelationErrorDTO();
+        if (ListUtil.isNotEmpty(hospitalRelationVOList)) {
+            // 校验name+code唯一性
+            List<TranHospitalRelation> tranHospitalRelationList = tranHospitalRelationService.list(new QueryWrapper<TranHospitalRelation>()
+                    .eq("is_deleted", IsDeleteEnum.N.getKey())
+            );
+            Map<String, Long> relationMap = tranHospitalRelationList.stream().collect(Collectors.toMap(k -> k.getName() + "_" + k.getCode(), v -> v.getHospitalId(), (v1, v2) -> (v2), LinkedHashMap::new));
+            List<String> keyExist = Lists.newArrayList(); // 避免重复数据返回
+            List<String> keyAll = Lists.newArrayList(); // 当前医院所有key
+            List<HospitalRelationVO> errorOther = Lists.newArrayList(); // 与其他医院重复
+            List<HospitalRelationVO> errorCurrent = Lists.newArrayList(); // 当前医院重复
+
+            for (HospitalRelationVO hospitalRelationVO : hospitalRelationVOList) {
+                // 联合key
+                String unionKey = hospitalRelationVO.getName() + "_" + hospitalRelationVO.getCode();
+                // 判断当前医院重复
+                if (keyAll.contains(unionKey)) {
+                    errorCurrent.add(hospitalRelationVO);
+                } else {
+                    keyAll.add(unionKey);
+                }
+                // 判断与其他医院重复
+                Long hospitalId = relationMap.get(unionKey);
+                if (hospitalId != null && !hospitalId.equals(curHospitalId) && !keyExist.contains(unionKey)) {
+                    errorOther.add(hospitalRelationVO);
+                    keyExist.add(unionKey);
+                }
+            }
+
+            // 有错误,直接返回
+            if (ListUtil.isNotEmpty(errorOther) || ListUtil.isNotEmpty(errorCurrent)) {
+                res.setErrorOther(errorOther);
+                res.setErrorCurrent(errorCurrent);
+                return res;
+            }
+        }
+        return null;
     }
 
     /**
@@ -150,7 +239,11 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
     public Boolean deleteRecord(IdVO idVO) {
         String userId = UserUtils.getCurrentPrincipleID();
         Date now = DateUtil.now();
-        HospitalInfo hospitalInfo = hospitalInfoService.getById(idVO.getId());
+        Long id = idVO.getId();
+        if (idVO.getId().equals(-1)) {
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "当前医院不能删除");
+        }
+        HospitalInfo hospitalInfo = hospitalInfoService.getById(id);
         if (hospitalInfo == null) {
             throw new CommonException(CommonErrorCode.NOT_EXISTS, "数据不存在");
         }
@@ -161,24 +254,34 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
         List<MappingConfig> mappingConfigList
                 = mappingConfigFacade.list(new QueryWrapper<MappingConfig>()
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
-                .eq("hospital_id", idVO.getId()));
+                .eq("hospital_id", id));
         if (ListUtil.isNotEmpty(mappingConfigList)) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在关联数据,无法删除");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在映射关联,无法删除");
         }
 
         List<Plan> planList
                 = planFacade.list(new QueryWrapper<Plan>()
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
-                .eq("hospital_id", idVO.getId()));
+                .eq("hospital_id", id));
         if (ListUtil.isNotEmpty(planList)) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在关联数据,无法删除");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在方案配置关联,无法删除");
         }
 
-
+        int count = tranHospitalRelationService.count(new QueryWrapper<TranHospitalRelation>()
+                .eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("hospital_id", id));
+        if (count > 0) {
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在子医院关联,无法删除");
+        }
+        // 主表逻辑删除
         hospitalInfo.setIsDeleted(IsDeleteEnum.Y.getKey());
         hospitalInfo.setModifier(userId);
         hospitalInfo.setGmtModified(now);
         hospitalInfoService.updateById(hospitalInfo);
+
+        // 关联表物理删除
+        tranHospitalRelationService.remove(new QueryWrapper<TranHospitalRelation>()
+                .eq("hospital_id", id));
         return true;
     }
 
@@ -215,9 +318,24 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
      * @param hospitalInfoPageVO
      * @return
      */
-    @Override
-    public IPage<DiseaseConfig> getPage(HospitalInfoPageVO hospitalInfoPageVO) {
-        return hospitalInfoService.getPage(hospitalInfoPageVO);
+    public IPage<HospitalInfoPageDTO> getPageFac(HospitalInfoPageVO hospitalInfoPageVO) {
+        IPage<HospitalInfoPageDTO> page = hospitalInfoService.getPage(hospitalInfoPageVO);
+        List<HospitalInfoPageDTO> records = page.getRecords();
+        if (ListUtil.isNotEmpty(records)) {
+            List<Long> idList = records.stream().map(r -> r.getId()).collect(Collectors.toList());
+            List<TranHospitalRelation> relationList = tranHospitalRelationService.list(new QueryWrapper<TranHospitalRelation>()
+                    .eq("is_deleted", IsDeleteEnum.N.getKey())
+                    .in("hospital_id", idList)
+            );
+            Map<Long, List<TranHospitalRelation>> hospitalIdMap = EntityUtil.makeEntityListMap(relationList, "hospitalId");
+            for (HospitalInfoPageDTO hospitalInfoPageDTO : records) {
+                List<TranHospitalRelation> tranHospitalRelationList = hospitalIdMap.get(hospitalInfoPageDTO.getId());
+                if (ListUtil.isNotEmpty(tranHospitalRelationList)) {
+                    hospitalInfoPageDTO.setSonHospital(tranHospitalRelationList.stream().map(r -> r.getName()).collect(Collectors.joining(",")));
+                }
+            }
+        }
+        return page;
     }
 
     /**

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/facade/KlConceptFacade.java

@@ -555,7 +555,7 @@ public class KlConceptFacade extends KlConceptServiceImpl {
         int sum = this.count(new QueryWrapper<KlConcept>().eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("id", klConceptSatarOrdisaVO.getConceptId()));
         if (sum == 0) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该数据已不存!");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该数据已不存!");
         }
         if (status == StatusEnum.Disable.getKey()) {
             //kl_concept_static 静态信息

+ 124 - 35
cdssman-service/src/main/java/com/diagbot/facade/MappingConfigFacade.java

@@ -21,7 +21,19 @@ import com.diagbot.entity.ScaleConfig;
 import com.diagbot.entity.TcmdiseaseConfig;
 import com.diagbot.entity.TcmsyndromeConfig;
 import com.diagbot.entity.TransfusionConfig;
+import com.diagbot.entity.wrapper.AnesthesiaConfigWrapper;
+import com.diagbot.entity.wrapper.DeptConfigWrapper;
+import com.diagbot.entity.wrapper.DiseaseConfigWrapper;
+import com.diagbot.entity.wrapper.DrugConfigWrapper;
+import com.diagbot.entity.wrapper.LisConfigWrapper;
 import com.diagbot.entity.wrapper.MappingConfigWrapper;
+import com.diagbot.entity.wrapper.NurseConfigWrapper;
+import com.diagbot.entity.wrapper.OperationConfigWrapper;
+import com.diagbot.entity.wrapper.PacsConfigWrapper;
+import com.diagbot.entity.wrapper.ScaleConfigWrapper;
+import com.diagbot.entity.wrapper.TcmdiseaseConfigWrapper;
+import com.diagbot.entity.wrapper.TcmsyndromeConfigWrapper;
+import com.diagbot.entity.wrapper.TransfusionConfigWrapper;
 import com.diagbot.enums.ConceptTypeEnum;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.enums.MatchSourceEnum;
@@ -72,69 +84,130 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
      * @param response
      * @param type
      * @param extFileName
+     * @param mode        1:模板导出、2:关联关系
      */
-    public void exportExcel(HttpServletResponse response, List<?> list, Integer type, String extFileName) {
+    public void exportExcel(HttpServletResponse response, List<?> list, Integer type, String extFileName, Integer mode) {
         String fileName = extFileName + ".xls";
         switch (type) {
             case 1:
                 fileName = "检验" + fileName;
-                List<LisConfig> lisConfigList = BeanUtil.listCopyTo(list, LisConfig.class);
-                ExcelUtils.exportExcel(lisConfigList, null, "sheet1", LisConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<LisConfig> lisConfigList = BeanUtil.listCopyTo(list, LisConfig.class);
+                    ExcelUtils.exportExcel(lisConfigList, null, "sheet1", LisConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<LisConfigWrapper> lisConfigList = BeanUtil.listCopyTo(list, LisConfigWrapper.class);
+                    ExcelUtils.exportExcel(lisConfigList, null, "sheet1", LisConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 3:
                 fileName = "检查" + fileName;
-                List<PacsConfig> pacsConfigList = BeanUtil.listCopyTo(list, PacsConfig.class);
-                ExcelUtils.exportExcel(pacsConfigList, null, "sheet1", PacsConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<PacsConfig> pacsConfigList = BeanUtil.listCopyTo(list, PacsConfig.class);
+                    ExcelUtils.exportExcel(pacsConfigList, null, "sheet1", PacsConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<PacsConfigWrapper> pacsConfigWrapperList = BeanUtil.listCopyTo(list, PacsConfigWrapper.class);
+                    ExcelUtils.exportExcel(pacsConfigWrapperList, null, "sheet1", PacsConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 4:
                 fileName = "诊断" + fileName;
-                List<DiseaseConfig> diseaseConfigList = BeanUtil.listCopyTo(list, DiseaseConfig.class);
-                ExcelUtils.exportExcel(diseaseConfigList, null, "sheet1", DiseaseConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<DiseaseConfig> diseaseConfigList = BeanUtil.listCopyTo(list, DiseaseConfig.class);
+                    ExcelUtils.exportExcel(diseaseConfigList, null, "sheet1", DiseaseConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<DiseaseConfigWrapper> diseaseConfigList = BeanUtil.listCopyTo(list, DiseaseConfigWrapper.class);
+                    ExcelUtils.exportExcel(diseaseConfigList, null, "sheet1", DiseaseConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 5:
                 fileName = "药品" + fileName;
-                List<DrugConfig> drugConfigList = BeanUtil.listCopyTo(list, DrugConfig.class);
-                ExcelUtils.exportExcel(drugConfigList, getForm(), "sheet1", DrugConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<DrugConfig> drugConfigList = BeanUtil.listCopyTo(list, DrugConfig.class);
+                    ExcelUtils.exportExcel(drugConfigList, getForm(), "sheet1", DrugConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<DrugConfigWrapper> drugConfigList = BeanUtil.listCopyTo(list, DrugConfigWrapper.class);
+                    ExcelUtils.exportExcel(drugConfigList, getForm(), "sheet1", DrugConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 6:
                 fileName = "手术和操作" + fileName;
-                List<OperationConfig> operationConfigList = BeanUtil.listCopyTo(list, OperationConfig.class);
-                ExcelUtils.exportExcel(operationConfigList, null, "sheet1", OperationConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<OperationConfig> operationConfigList = BeanUtil.listCopyTo(list, OperationConfig.class);
+                    ExcelUtils.exportExcel(operationConfigList, null, "sheet1", OperationConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<OperationConfigWrapper> operationConfigList = BeanUtil.listCopyTo(list, OperationConfigWrapper.class);
+                    ExcelUtils.exportExcel(operationConfigList, null, "sheet1", OperationConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 7:
                 fileName = "科室" + fileName;
-                List<DeptConfig> deptConfigList = BeanUtil.listCopyTo(list, DeptConfig.class);
-                ExcelUtils.exportExcel(deptConfigList, null, "sheet1", DeptConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<DeptConfig> deptConfigList = BeanUtil.listCopyTo(list, DeptConfig.class);
+                    ExcelUtils.exportExcel(deptConfigList, null, "sheet1", DeptConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<DeptConfigWrapper> deptConfigList = BeanUtil.listCopyTo(list, DeptConfigWrapper.class);
+                    ExcelUtils.exportExcel(deptConfigList, null, "sheet1", DeptConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 8:
                 fileName = "输血" + fileName;
-                List<TransfusionConfig> transfusionConfigList = BeanUtil.listCopyTo(list, TransfusionConfig.class);
-                ExcelUtils.exportExcel(transfusionConfigList, null, "sheet1", TransfusionConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<TransfusionConfig> transfusionConfigList = BeanUtil.listCopyTo(list, TransfusionConfig.class);
+                    ExcelUtils.exportExcel(transfusionConfigList, null, "sheet1", TransfusionConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<TransfusionConfigWrapper> transfusionConfigList = BeanUtil.listCopyTo(list, TransfusionConfigWrapper.class);
+                    ExcelUtils.exportExcel(transfusionConfigList, null, "sheet1", TransfusionConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 10:
                 fileName = "量表" + fileName;
-                List<ScaleConfig> scaleConfigList = BeanUtil.listCopyTo(list, ScaleConfig.class);
-                ExcelUtils.exportExcel(scaleConfigList, null, "sheet1", ScaleConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<ScaleConfig> scaleConfigList = BeanUtil.listCopyTo(list, ScaleConfig.class);
+                    ExcelUtils.exportExcel(scaleConfigList, null, "sheet1", ScaleConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<ScaleConfigWrapper> scaleConfigList = BeanUtil.listCopyTo(list, ScaleConfigWrapper.class);
+                    ExcelUtils.exportExcel(scaleConfigList, null, "sheet1", ScaleConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 11:
                 fileName = "护理" + fileName;
-                List<NurseConfig> nurseConfigList = BeanUtil.listCopyTo(list, NurseConfig.class);
-                ExcelUtils.exportExcel(nurseConfigList, null, "sheet1", NurseConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<NurseConfig> nurseConfigList = BeanUtil.listCopyTo(list, NurseConfig.class);
+                    ExcelUtils.exportExcel(nurseConfigList, null, "sheet1", NurseConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<NurseConfigWrapper> nurseConfigList = BeanUtil.listCopyTo(list, NurseConfigWrapper.class);
+                    ExcelUtils.exportExcel(nurseConfigList, null, "sheet1", NurseConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 12:
                 fileName = "中医疾病" + fileName;
-                List<TcmdiseaseConfig> tcmdiseaseConfigList = BeanUtil.listCopyTo(list, TcmdiseaseConfig.class);
-                ExcelUtils.exportExcel(tcmdiseaseConfigList, null, "sheet1", TcmdiseaseConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<TcmdiseaseConfig> tcmdiseaseConfigList = BeanUtil.listCopyTo(list, TcmdiseaseConfig.class);
+                    ExcelUtils.exportExcel(tcmdiseaseConfigList, null, "sheet1", TcmdiseaseConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<TcmdiseaseConfigWrapper> tcmdiseaseConfigList = BeanUtil.listCopyTo(list, TcmdiseaseConfigWrapper.class);
+                    ExcelUtils.exportExcel(tcmdiseaseConfigList, null, "sheet1", TcmdiseaseConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 13:
                 fileName = "中医证候" + fileName;
-                List<TcmsyndromeConfig> tcmsyndromeConfigList = BeanUtil.listCopyTo(list, TcmsyndromeConfig.class);
-                ExcelUtils.exportExcel(tcmsyndromeConfigList, null, "sheet1", TcmsyndromeConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<TcmsyndromeConfig> tcmsyndromeConfigList = BeanUtil.listCopyTo(list, TcmsyndromeConfig.class);
+                    ExcelUtils.exportExcel(tcmsyndromeConfigList, null, "sheet1", TcmsyndromeConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<TcmsyndromeConfigWrapper> tcmsyndromeConfigList = BeanUtil.listCopyTo(list, TcmsyndromeConfigWrapper.class);
+                    ExcelUtils.exportExcel(tcmsyndromeConfigList, null, "sheet1", TcmsyndromeConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             case 14:
                 fileName = "麻醉" + fileName;
-                List<AnesthesiaConfig> anesthesiaConfigList = BeanUtil.listCopyTo(list, AnesthesiaConfig.class);
-                ExcelUtils.exportExcel(anesthesiaConfigList, null, "sheet1", AnesthesiaConfig.class, fileName, response, 12.8f);
+                if (mode.equals(1)) {
+                    List<AnesthesiaConfig> anesthesiaConfigList = BeanUtil.listCopyTo(list, AnesthesiaConfig.class);
+                    ExcelUtils.exportExcel(anesthesiaConfigList, null, "sheet1", AnesthesiaConfig.class, fileName, response, 12.8f);
+                } else if (mode.equals(2)) {
+                    List<AnesthesiaConfigWrapper> anesthesiaConfigList = BeanUtil.listCopyTo(list, AnesthesiaConfigWrapper.class);
+                    ExcelUtils.exportExcel(anesthesiaConfigList, null, "sheet1", AnesthesiaConfigWrapper.class, fileName, response, 12.8f);
+                }
                 break;
             default:
                 break;
@@ -189,7 +262,7 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
      * @param response
      */
     public void exportExcelModule(HttpServletResponse response, MappingConfigVO mappingConfigVO) {
-        exportExcel(response, new ArrayList<>(), mappingConfigVO.getType(), "导入模板");
+        exportExcel(response, new ArrayList<>(), mappingConfigVO.getType(), "导入模板", 1);
     }
 
     /**
@@ -200,7 +273,7 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
     public void exportExcel(HttpServletResponse response, MappingConfigPageVO mappingConfigPageVO) {
         RespDTO<List<MappingConfigWrapper>> respDTO = cdssClient.exportExcel_remote(mappingConfigPageVO);
         if (RespDTOUtil.respIsOK(respDTO)) {
-            exportExcel(response, respDTO.data, mappingConfigPageVO.getType(), "映射");
+            exportExcel(response, respDTO.data, mappingConfigPageVO.getType(), "映射", 2);
         } else {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
         }
@@ -232,7 +305,7 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
 
         RespDTO<List<MappingConfigWrapper>> respDTO = cdssClient.precDataMatch_remote(file, type);
         if (RespDTOUtil.respIsOK(respDTO)) {
-            exportExcel(response, respDTO.data, type, "关联数据(预匹配)");
+            exportExcel(response, respDTO.data, type, "关联数据(预匹配)", 1);
         } else {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
         }
@@ -253,7 +326,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
         if (RespDTOUtil.respIsOK(respDTO)) {
             return respDTO.data;
         } else {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
+            if (respDTO.code.equals(CommonErrorCode.NOT_EXISTS.getCode())) {
+                throw new CommonException(CommonErrorCode.NOT_EXISTS, respDTO.msg);
+            } else {
+                throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
+            }
         }
     }
 
@@ -264,13 +341,15 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
      * @param hospitalId
      * @param type
      */
-    public Boolean importExcel(MultipartFile file, Long hospitalId, Integer type, String userId) {
+    public void importExcel(HttpServletResponse response, MultipartFile file, Long hospitalId, Integer type, String userId) {
         if (StringUtil.isBlank(userId)) {
             userId = UserUtils.getCurrentPrincipleID();
         }
-        RespDTO<Boolean> respDTO = cdssClient.importExcel(file, hospitalId, type, userId);
+        RespDTO<List<MappingConfigWrapper>> respDTO = cdssClient.importExcel_remote(file, hospitalId, type, userId);
         if (RespDTOUtil.respIsOK(respDTO)) {
-            return respDTO.data;
+            if (ListUtil.isNotEmpty(respDTO.data)) {
+                exportExcel(response, respDTO.data, type, "标准词校验错误(含非标和禁用)", 1);
+            }
         } else {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
         }
@@ -431,9 +510,10 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
      * @param hisNames
      * @param type
      * @param hospitalId
+     * @param status     标准术语启用禁用标志
      * @return
      */
-    public Map<String, Map<String, Map<String, List<String>>>> groupByHisNameWithName(List<String> hisNames, Integer type, Long hospitalId) {
+    public Map<String, Map<String, Map<String, List<String>>>> groupByHisNameWithName(List<String> hisNames, Integer type, Long hospitalId, Integer status) {
         Map<String, Map<String, Map<String, List<String>>>> retMap = new HashMap<>();
         Map<String, Map<String, Map<Long, List<Long>>>> idMap = groupByHisNameWithId(hisNames, type, hospitalId);
 
@@ -461,6 +541,7 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
         conceptVO.setSource(-1);
         conceptVO.setType(type);
         conceptVO.setIds(ids);
+        conceptVO.setStatus(status);
         RespDTO<List<IndexBatchDTO>> respDTO = cdssCoreClient.getConceptNames(conceptVO);
         RespDTOUtil.respNGDealCover(respDTO, "标准术语校验失败");
         List<IndexBatchDTO> indexList = respDTO.data;
@@ -479,11 +560,19 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
                                 if (formConceptId == null) {
                                     forms.add("");
                                 } else {
-                                    forms.add(idNameMap.get(formConceptId));
+                                    if (idNameMap.containsKey(formConceptId)) {
+                                        forms.add(idNameMap.get(formConceptId));
+                                    } else {
+                                        forms.add("");
+                                    }
                                 }
                             }
                             forms = forms.stream().distinct().collect(Collectors.toList());
-                            thirdMap.put(idNameMap.get(thirdEntry.getKey()), forms);
+                            if (idNameMap.containsKey(thirdEntry.getKey())) {
+                                thirdMap.put(idNameMap.get(thirdEntry.getKey()), forms);
+                            } /*else {
+                                thirdMap.put("", Lists.newLinkedList());
+                            }*/
                         }
                     }
                     subMap.put(subEntry.getKey(), thirdMap);

+ 36 - 8
cdssman-service/src/main/java/com/diagbot/facade/PlanDefaultFacade.java

@@ -1,6 +1,8 @@
 package com.diagbot.facade;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
+import com.diagbot.dto.DictionaryInfoDTO;
 import com.diagbot.dto.PlanDetailDTO;
 import com.diagbot.dto.PlanInfoDefaultDTO;
 import com.diagbot.entity.Plan;
@@ -11,15 +13,16 @@ import com.diagbot.exception.CommonException;
 import com.diagbot.util.BeanUtil;
 import com.diagbot.util.DateUtil;
 import com.diagbot.util.ListUtil;
+import com.diagbot.util.UserUtils;
 import com.diagbot.vo.HospitalSetVO;
 import com.diagbot.vo.PlanDefaultVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Date;
 import java.util.List;
+import java.util.stream.Collectors;
 
 /**
  * @author wangfeng
@@ -32,15 +35,40 @@ public class PlanDefaultFacade {
     PlanDetailFacade planDetailFacade;
     @Autowired
     PlanFacade planFacade;
+    @Autowired
+    DictionaryFacade dictionaryFacade;
 
     public Boolean addDefaultPlans(PlanDefaultVO planDefaultVO) {
         boolean res = false;
         Date now = DateUtil.now();
-        List<String> planCode = Arrays.asList("plan_default","patientia","info","chief","symptom","other","vital","lis","pacs","diag","doc_advice");
-        if(ListUtil.isEmpty(planCode)){
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "方案编码不能为空!");
+        List<DictionaryInfoDTO> listByGroupType = dictionaryFacade.getListByGroupType(60);
+        List<String> planCode = listByGroupType.stream().map(ac -> ac.getVal()).collect(Collectors.toList());
+       /* List<String> planCode = Arrays.asList("plan_default", "patientia", "info", "chief", "symptom", "other", "vital"
+                , "lis", "pacs", "diag", "doc_advice", "reference_lis", "reference_pacs", "order_rational",
+                "medical_advice", "medical_record");*/
+
+        //先删除医院默认的方案,
+        if (planDefaultVO.getHospitalId() == -1) {
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "朗通医院不能一键添加!");
+        }
+        QueryWrapper<Plan> planFandList = new QueryWrapper<>();
+        planFandList.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .in("plan_code", planCode)
+                .eq("hospital_id", planDefaultVO.getHospitalId());
+        List<Plan> planList = planFacade.list(planFandList);
+        if (ListUtil.isNotEmpty(planList)) {
+            List<Long> planIdcancel = planList.stream().map(ac -> ac.getId()).collect(Collectors.toList());
+            UpdateWrapper<PlanDetail> planDetailcancel = new UpdateWrapper<>();
+            planDetailcancel.eq("is_deleted", IsDeleteEnum.N.getKey())
+                    .eq("hospital_id", planDefaultVO.getHospitalId())
+                    .in("plan_id", planIdcancel);
+
+            planDetailFacade.remove(planDetailcancel);
+            planFacade.remove(planFandList);
         }
-        for (String str:planCode) {
+
+        //查询默认方案
+        for (String str : planCode) {
             PlanInfoDefaultDTO data = new PlanInfoDefaultDTO();
             QueryWrapper<Plan> planFand = new QueryWrapper<>();
             planFand.eq("is_deleted", IsDeleteEnum.N.getKey())
@@ -61,7 +89,7 @@ public class PlanDefaultFacade {
                     .eq("hospital_id", planDefaultVO.getHospitalId())
                     .eq("plan_code", str));
             if (countTow > 0) {
-                throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, str+"该方案编码已存在");
+                throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, str + "该方案编码已存在");
             }
             //保存方案配置
             if (plan != null) {
@@ -71,8 +99,8 @@ public class PlanDefaultFacade {
                 planDefault.setPlanName(plan.getPlanName());
                 planDefault.setPlanStatus(1);
                 planDefault.setRemark("0");
-                planDefault.setModifier("-1");
-                planDefault.setCreator("-1");
+                planDefault.setModifier(UserUtils.getCurrentPrincipleID());
+                planDefault.setCreator(UserUtils.getCurrentPrincipleID());
                 planDefault.setGmtModified(now);
                 planDefault.setGmtCreate(now);
                 res = planFacade.save(planDefault);

+ 17 - 2
cdssman-service/src/main/java/com/diagbot/facade/PlanFacade.java

@@ -3,6 +3,7 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.DictionaryInfoDTO;
 import com.diagbot.dto.PlanDetailDTO;
 import com.diagbot.dto.PlanInfoDefaultDTO;
 import com.diagbot.dto.PlanInfoPagesDTO;
@@ -33,6 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -51,7 +53,8 @@ public class PlanFacade extends PlanServiceImpl {
     PlanDetailFacade planDetailFacade;
     @Autowired
     private HospitalInfoFacade hospitalInfoFacade;
-
+    @Autowired
+    DictionaryFacade dictionaryFacade;
 
     /**
      * @param hospitalPlanSaveVO
@@ -195,6 +198,13 @@ public class PlanFacade extends PlanServiceImpl {
         boolean res = false;
         // 1.先判断数据是否存在有效
         Plan plan = checkPlan(hospitalPlanCancelVO.getPlanId());
+        List<DictionaryInfoDTO> listByGroupType = dictionaryFacade.getListByGroupType(60);
+        String val = listByGroupType.get(0).getVal();
+        String[] valStr = val.split(",");
+        List<String> planCode = Arrays.asList(valStr);
+        if(planCode.contains(plan.getPlanCode())){
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "默认方案编码不能被删除!");
+        }
         if (plan.getPlanStatus() == 1) {
             throw new CommonException(CommonErrorCode.FAIL, "该方案启用中,不能删除!");
         }
@@ -214,7 +224,12 @@ public class PlanFacade extends PlanServiceImpl {
     }
 
     public boolean revStopPlan(PlanRevStopVO planRevStopVO) {
-        checkPlan(planRevStopVO.getId());
+        Plan plan = checkPlan(planRevStopVO.getId());
+        List<DictionaryInfoDTO> listByGroupType = dictionaryFacade.getListByGroupType(60);
+        List<String> planCode = listByGroupType.stream().map(ac -> ac.getVal()).collect(Collectors.toList());
+        if(planCode.contains(plan.getPlanCode())){
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "默认方案编码不能被停用!");
+        }
         UpdateWrapper<Plan> planNew = new UpdateWrapper<>();
         planNew
                 .eq("id", planRevStopVO.getId())

+ 5 - 5
cdssman-service/src/main/java/com/diagbot/facade/ResultStaticKnowledgeFacade.java

@@ -144,7 +144,7 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
 
         // 已存在数据
         Map<String, Map<String, Map<String, List<String>>>> hisConfigMap
-                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.LisPack.getKey(), Long.valueOf(hospitalId));
+                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.LisPack.getKey(), Long.valueOf(hospitalId), StatusEnum.Enable.getKey());
 
         //术语映射
         for (LisConfig config : lisConfigList) {
@@ -346,7 +346,7 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
 
         // 已存在数据
         Map<String, Map<String, Map<String, List<String>>>> hisConfigMap
-                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Pacs.getKey(), Long.valueOf(hospitalId));
+                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Pacs.getKey(), Long.valueOf(hospitalId), StatusEnum.Enable.getKey());
         //术语映射
         for (PacsConfig config : pacsConfigList) {
             ResultStaticKnowledge result = new ResultStaticKnowledge();
@@ -538,7 +538,7 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
 
         // 已存在数据
         Map<String, Map<String, Map<String, List<String>>>> hisConfigMap
-                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Drug.getKey(), Long.valueOf(hospitalId));
+                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Drug.getKey(), Long.valueOf(hospitalId), StatusEnum.Enable.getKey());
 
         //术语映射
         for (DrugConfig config : drugConfigList) {
@@ -696,7 +696,7 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
 
         // 已存在数据
         Map<String, Map<String, Map<String, List<String>>>> hisConfigMap
-                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Disease.getKey(), Long.valueOf(hospitalId));
+                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Disease.getKey(), Long.valueOf(hospitalId), StatusEnum.Enable.getKey());
         //Map<String, Map<String, List<Long>>> hisConfigMap = diseaseConfigFacade.getConfigMap(Long.valueOf(hospitalId), null, null);
 
         //术语映射
@@ -855,7 +855,7 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
 
         // 已存在数据
         Map<String, Map<String, Map<String, List<String>>>> hisConfigMap
-                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Operation.getKey(), Long.valueOf(hospitalId));
+                = mappingConfigFacade.groupByHisNameWithName(null, ConceptTypeEnum.Operation.getKey(), Long.valueOf(hospitalId), StatusEnum.Enable.getKey());
         //Map<String, Map<String, List<Long>>> hisConfigMap = operationConfigFacade.getConfigMap(Long.valueOf(hospitalId), null, null);
 
         //术语映射

+ 14 - 0
cdssman-service/src/main/java/com/diagbot/facade/TranHospitalRelationFacade.java

@@ -0,0 +1,14 @@
+package com.diagbot.facade;
+
+import com.diagbot.service.impl.TranHospitalRelationServiceImpl;
+import org.springframework.stereotype.Component;
+
+/**
+ * @author zhoutg
+ * @Description:
+ * @date 2020-07-29 11:08
+ */
+@Component
+public class TranHospitalRelationFacade extends TranHospitalRelationServiceImpl {
+
+}

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/mapper/HospitalInfoMapper.java

@@ -3,7 +3,7 @@ package com.diagbot.mapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.dto.ConceptMappingDTO;
-import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.dto.HospitalInfoPageDTO;
 import com.diagbot.entity.HospitalInfo;
 import com.diagbot.vo.HospitalInfoPageVO;
 import org.apache.ibatis.annotations.Param;
@@ -23,7 +23,7 @@ public interface HospitalInfoMapper extends BaseMapper<HospitalInfo> {
      * @param hospitalInfoPageVO
      * @return
      */
-    IPage<DiseaseConfig> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO);
+    IPage<HospitalInfoPageDTO> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO);
 
     /**
      * 获取术语映射统计列表

+ 16 - 0
cdssman-service/src/main/java/com/diagbot/mapper/TranHospitalRelationMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.TranHospitalRelation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 医院关联表 Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2021-10-09
+ */
+public interface TranHospitalRelationMapper extends BaseMapper<TranHospitalRelation> {
+
+}

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/service/HospitalInfoService.java

@@ -3,7 +3,7 @@ package com.diagbot.service;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.diagbot.dto.ConceptMappingDTO;
-import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.dto.HospitalInfoPageDTO;
 import com.diagbot.entity.HospitalInfo;
 import com.diagbot.vo.HospitalInfoPageVO;
 import org.apache.ibatis.annotations.Param;
@@ -23,7 +23,7 @@ public interface HospitalInfoService extends IService<HospitalInfo> {
      * @param hospitalInfoPageVO
      * @return
      */
-    IPage<DiseaseConfig> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO);
+    IPage<HospitalInfoPageDTO> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO);
 
     /**
      * 获取术语映射统计列表

+ 16 - 0
cdssman-service/src/main/java/com/diagbot/service/TranHospitalRelationService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.TranHospitalRelation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 医院关联表 服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2021-10-09
+ */
+public interface TranHospitalRelationService extends IService<TranHospitalRelation> {
+
+}

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/service/impl/HospitalInfoServiceImpl.java

@@ -3,7 +3,7 @@ package com.diagbot.service.impl;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.diagbot.dto.ConceptMappingDTO;
-import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.dto.HospitalInfoPageDTO;
 import com.diagbot.entity.HospitalInfo;
 import com.diagbot.mapper.HospitalInfoMapper;
 import com.diagbot.service.HospitalInfoService;
@@ -27,7 +27,7 @@ public class HospitalInfoServiceImpl extends ServiceImpl<HospitalInfoMapper, Hos
      * @param hospitalInfoPageVO
      * @return
      */
-    public IPage<DiseaseConfig> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO) {
+    public IPage<HospitalInfoPageDTO> getPage(@Param("hospitalInfoPageVO") HospitalInfoPageVO hospitalInfoPageVO) {
         return baseMapper.getPage(hospitalInfoPageVO);
     }
 

+ 20 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/TranHospitalRelationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.TranHospitalRelation;
+import com.diagbot.mapper.TranHospitalRelationMapper;
+import com.diagbot.service.TranHospitalRelationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 医院关联表 服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2021-10-09
+ */
+@Service
+public class TranHospitalRelationServiceImpl extends ServiceImpl<TranHospitalRelationMapper, TranHospitalRelation> implements TranHospitalRelationService {
+
+}

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/vo/ConceptVO.java

@@ -3,7 +3,6 @@ package com.diagbot.vo;
 import lombok.Getter;
 import lombok.Setter;
 
-import javax.validation.constraints.NotNull;
 import java.util.List;
 
 /**
@@ -18,4 +17,5 @@ public class ConceptVO {
     private List<String> names;
     private Integer type;
     private Integer source;
+    private Integer status;
 }

+ 1 - 0
cdssman-service/src/main/java/com/diagbot/vo/FilterVO.java

@@ -15,4 +15,5 @@ import javax.validation.constraints.NotBlank;
 public class FilterVO {
     @NotBlank(message = "请输入检索内容")
     private String inputStr;
+    private Integer status;
 }

+ 26 - 0
cdssman-service/src/main/java/com/diagbot/vo/HospitalInfoGetVO.java

@@ -0,0 +1,26 @@
+package com.diagbot.vo;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 医院信息表
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalInfoGetVO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @NotNull(message = "医院id不能为空")
+    private Long id;
+}

+ 63 - 0
cdssman-service/src/main/java/com/diagbot/vo/HospitalInfoSaveVO.java

@@ -0,0 +1,63 @@
+package com.diagbot.vo;
+
+import com.google.common.collect.Lists;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * <p>
+ * 医院信息表
+ * </p>
+ *
+ * @author wangfeng
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalInfoSaveVO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    private Long id;
+
+    /**
+     * 医院名称
+     */
+    @NotBlank(message = "医院名称不能为空")
+    private String name;
+
+    /**
+     * 医院地址
+     */
+    private String address;
+
+    /**
+     * 医院名称拼音
+     */
+    private String spell;
+
+    /**
+     * 状态:0.禁用1.启用
+     */
+    private Integer status;
+
+    /**
+     * 是否对接(0-不对接,1-对接)
+     */
+    private Integer connect;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    /**
+     * 子医院关联表
+     */
+    private List<HospitalRelationVO> hospitalRelationVOList = Lists.newLinkedList();
+}

+ 33 - 0
cdssman-service/src/main/java/com/diagbot/vo/HospitalRelationVO.java

@@ -0,0 +1,33 @@
+package com.diagbot.vo;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 医院关联表
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-08-06
+ */
+@Data
+public class HospitalRelationVO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 子医院名称
+     */
+    @NotBlank(message = "子医院名称不能为空")
+    private String name;
+
+    /**
+     * 子医院编码
+     */
+    @NotBlank(message = "子医院编码不能为空")
+    private String code;
+
+}

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

@@ -71,4 +71,14 @@ public class MappingConfigPageVO extends Page {
      */
     @ApiModelProperty(hidden = true)
     private Integer isMultiple;
+
+    /**
+     * 标准术语启用禁用状态
+     */
+    private Integer status;
+
+    /**
+     * 剂型启用禁用状态
+     */
+    private Integer formStatus;
 }

+ 2 - 0
cdssman-service/src/main/java/com/diagbot/vo/PlanDefaultVO.java

@@ -3,6 +3,7 @@ package com.diagbot.vo;
 import lombok.Getter;
 import lombok.Setter;
 
+import javax.validation.constraints.NotNull;
 import java.util.List;
 
 /**
@@ -13,5 +14,6 @@ import java.util.List;
 @Setter
 @Getter
 public class PlanDefaultVO {
+    @NotNull(message = "请输入医院id")
     private Long hospitalId;
 }

+ 27 - 16
cdssman-service/src/main/java/com/diagbot/web/HospitalInfoController.java

@@ -5,13 +5,17 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
 import com.diagbot.dto.ConceptMappingDTO;
 import com.diagbot.dto.HospitalInfoDTO;
+import com.diagbot.dto.HospitalInfoGetDTO;
+import com.diagbot.dto.HospitalInfoPageDTO;
+import com.diagbot.dto.HospitalRelationErrorDTO;
 import com.diagbot.dto.RespDTO;
-import com.diagbot.entity.DiseaseConfig;
-import com.diagbot.entity.HospitalInfo;
+import com.diagbot.exception.ServiceErrorCode;
 import com.diagbot.facade.HospitalInfoFacade;
 import com.diagbot.vo.ChangeStatusVO;
+import com.diagbot.vo.HospitalInfoGetVO;
 import com.diagbot.vo.HospitalInfoListVO;
 import com.diagbot.vo.HospitalInfoPageVO;
+import com.diagbot.vo.HospitalInfoSaveVO;
 import com.diagbot.vo.HospitalSaveVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -52,19 +56,26 @@ public class HospitalInfoController {
         return RespDTO.onSuc(data);
     }
 
-    /**
-     * 保存或修改映射关系
-     *
-     * @param hospitalInfo
-     * @return
-     */
-    @ApiOperation(value = "保存或修改映射关系[by:zhaops]", notes = "")
+    @ApiOperation(value = "根据医院id获取信息[by:zhoutg]", notes = "")
+    @PostMapping("/getById")
+    @SysLogger("getById")
+    public RespDTO<HospitalInfoGetDTO> getById(@RequestBody @Valid HospitalInfoGetVO hospitalInfoGetVO) {
+        HospitalInfoGetDTO data = hospitalInfoFacade.getById(hospitalInfoGetVO);
+        return RespDTO.onSuc(data);
+    }
+
+    @ApiOperation(value = "保存或修改[by:zhaops]", notes = "")
     @PostMapping("/saveOrUpdateRecord")
     @SysLogger("saveOrUpdateRecord")
     @Transactional
-    public RespDTO<Boolean> saveOrUpdateRecord(@RequestBody @Valid HospitalInfo hospitalInfo) {
-        Boolean data = hospitalInfoFacade.saveOrUpdateRecord(hospitalInfo);
-        return RespDTO.onSuc(data);
+    public RespDTO<HospitalRelationErrorDTO> saveOrUpdateRecord(@RequestBody @Valid HospitalInfoSaveVO hospitalInfoSaveVO) {
+        HospitalRelationErrorDTO errorData = hospitalInfoFacade.saveOrUpdateRecord(hospitalInfoSaveVO);
+        if (errorData != null) {
+            return RespDTO.onSucBoth(ServiceErrorCode.NAME_CODE_ERROR.getCode(),
+                    "操作失败,请检查【医院名称+医院编码】重复项",
+                    errorData);
+        }
+        return RespDTO.onSuc(errorData);
     }
 
     /**
@@ -83,12 +94,12 @@ public class HospitalInfoController {
     }
 
     /**
-     * 删除映射关系
+     * 删除
      *
      * @param idVO
      * @return
      */
-    @ApiOperation(value = "删除映射关系[by:zhaops]", notes = "")
+    @ApiOperation(value = "删除[by:zhaops]", notes = "")
     @PostMapping("/deleteRecord")
     @SysLogger("deleteRecord")
     @Transactional
@@ -121,8 +132,8 @@ public class HospitalInfoController {
     @ApiOperation(value = "分页查询[by:zhaops]", notes = "")
     @PostMapping("/getPage")
     @SysLogger("getPage")
-    public RespDTO<DiseaseConfig> getPage(@RequestBody @Valid HospitalInfoPageVO hospitalInfoPageVO) {
-        IPage<DiseaseConfig> data = hospitalInfoFacade.getPage(hospitalInfoPageVO);
+    public RespDTO<IPage<HospitalInfoPageDTO>> getPage(@RequestBody @Valid HospitalInfoPageVO hospitalInfoPageVO) {
+        IPage<HospitalInfoPageDTO> data = hospitalInfoFacade.getPageFac(hospitalInfoPageVO);
         return RespDTO.onSuc(data);
     }
 

+ 2 - 3
cdssman-service/src/main/java/com/diagbot/web/MappingConfigController.java

@@ -95,12 +95,11 @@ public class MappingConfigController {
     @PostMapping(value = "/importExcel", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
     @SysLogger("importExcel")
     @Transactional
-    public RespDTO<Boolean> importExcel(@RequestParam("file") MultipartFile file,
+    public void importExcel(HttpServletResponse response,@RequestParam("file") MultipartFile file,
                             @RequestParam("hospitalId") Long hospitalId,
                             @RequestParam("type") Integer type,
                             @RequestParam("uesrId") String userId) {
-        Boolean data = mappingConfigFacade.importExcel(file, hospitalId, type, userId);
-        return RespDTO.onSuc(data);
+        mappingConfigFacade.importExcel(response, file, hospitalId, type, userId);
     }
 
 

+ 1 - 1
cdssman-service/src/main/resources/mapper/HospitalInfoMapper.xml

@@ -21,7 +21,7 @@
     </resultMap>
 
     <!-- 分页查询 -->
-    <select id="getPage" resultType="com.diagbot.entity.HospitalInfo">
+    <select id="getPage" resultType="com.diagbot.dto.HospitalInfoPageDTO">
         select a.*
         from tran_hospital_info a
         where a.is_deleted='N'

+ 19 - 0
cdssman-service/src/main/resources/mapper/TranHospitalRelationMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.TranHospitalRelationMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.TranHospitalRelation">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="code" property="code" />
+        <result column="name" property="name" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 2 - 2
cdssman-service/src/test/java/com/diagbot/CodeGeneration.java

@@ -49,14 +49,14 @@ public class CodeGeneration {
         dsc.setDriverName("com.mysql.cj.jdbc.Driver");
         dsc.setUsername("root");
         dsc.setPassword("lantone");
-        dsc.setUrl("jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8");
+        dsc.setUrl("jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8");
         mpg.setDataSource(dsc);
 
         // 策略配置
         StrategyConfig strategy = new StrategyConfig();
         //strategy.setTablePrefix(new String[] { "test" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "kl_tcm_disease","kl_tcm_syndrome"}); // 需要生成的表
+        strategy.setInclude(new String[] { "tran_hospital_relation"}); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);

+ 1 - 1
common/src/main/java/com/diagbot/exception/CommonErrorCode.java

@@ -58,7 +58,7 @@ public enum CommonErrorCode implements ErrorCode {
 
     public static CommonErrorCode codeOf(String code) {
         for (CommonErrorCode state : values()) {
-            if (state.getCode() == code) {
+            if (state.getCode().equals(code)) {
                 return state;
             }
         }

+ 114 - 0
common/src/main/java/com/diagbot/util/AgeUtil.java

@@ -0,0 +1,114 @@
+package com.diagbot.util;
+
+import java.math.BigDecimal;
+
+/**
+ * @description: 年龄工具类
+ * @author: zhoutg
+ * @time: 2020/7/30 15:18
+ */
+public class AgeUtil {
+
+    /**
+     * 年龄字符串转换成double类型
+     *
+     * @param ageStr
+     * @return
+     */
+    public static Double convertAge(String ageStr) {
+        try {
+            // 防止程序出错
+            if (StringUtil.isEmpty(ageStr)) {
+                return 20.0;
+            }
+            // 数值,当成年龄处理
+            if (isNumbers(ageStr)) {
+                return Double.parseDouble(ageStr);
+            }
+            // 20日 | 20天
+            if (ageStr.endsWith("日") || ageStr.endsWith("天")) {
+                return getHalfUp((Double.parseDouble(ageStr.substring(0, ageStr.length() - 1))) / 365);
+            }
+            // 3岁
+            if (ageStr.endsWith("岁")) {
+                return Double.parseDouble(ageStr.substring(0, ageStr.length() - 1));
+            }
+            // 3岁7个月 | 3岁7月
+            if (ageSuiYue(ageStr)) {
+                String[] ageArr = new String[2];
+                int indexSui = ageStr.indexOf("岁");
+                ageArr[0] = ageStr.substring(0, indexSui);
+                if (ageStr.indexOf("个月") > -1) { // 3岁7个月
+                    ageArr[1] = ageStr.substring(indexSui + 1, ageStr.indexOf("个月"));
+                } else { // 3岁7月
+                    ageArr[1] = ageStr.substring(indexSui + 1, ageStr.indexOf("月"));
+                }
+                return Double.parseDouble(ageArr[0]) + getHalfUp(Double.parseDouble(ageArr[1]) / 12);
+            }
+            // 1.08月 | .11月 | 3月
+            if (ageYue(ageStr)) {
+                String noUnit = ageStr.substring(0, ageStr.length() - 1);
+                return getHalfUp(Double.parseDouble(noUnit) / 12);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return 20.0;
+        }
+        return 20.0;
+    }
+
+    /**
+     * 判断字符串是否 仅 包含数字
+     *
+     * @param str
+     * @return
+     */
+    public static boolean numbersOnly(String str) {
+        String regex = "^[0-9]+$";
+        return str.matches(regex);
+    }
+
+    /**
+     * 判断字符串是否数值(正)
+     *
+     * @param str
+     * @return
+     */
+    public static boolean isNumbers(String str) {
+        String regex = "[0-9]+|([0-9]+\\.)+[0-9]*|[0-9]*(\\.[0-9]+)+";
+        return str.matches(regex);
+    }
+
+    /**
+     * 判断年龄字符串:xx月
+     *
+     * @param str
+     * @return
+     */
+    public static boolean ageYue(String str) {
+        String regex = "^[0-9]*[\\.]*[0-9]{1,2}月$";
+        return str.matches(regex);
+    }
+
+    /**
+     * 判断年龄字符串:3岁7个月
+     *
+     * @param str
+     * @return
+     */
+    public static boolean ageSuiYue(String str) {
+        String regex = "^[0-9]{1,3}岁[0-9]{1,2}个{0,1}月$";
+        return str.matches(regex);
+    }
+
+    /**
+     * 四舍五入保留2位小数
+     *
+     * @param ageStr
+     * @return
+     */
+    public static Double getHalfUp(Double ageStr) {
+        BigDecimal bg = new BigDecimal(String.valueOf(ageStr));
+        return bg.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
+    }
+}

+ 2 - 2
config-server/src/main/resources/shared/mrman-service-dev.yml

@@ -52,7 +52,7 @@ spring:
         master:
           driver-class-name: com.mysql.cj.jdbc.Driver
           platform: mysql
-          url: jdbc:mysql://192.168.2.236:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+          url: jdbc:mysql://192.168.2.237:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
           username: root
           password: lantone
           druid:
@@ -60,7 +60,7 @@ spring:
         slave:
           driver-class-name: com.mysql.cj.jdbc.Driver
           platform: mysql
-          url: jdbc:mysql://192.168.2.236:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+          url: jdbc:mysql://192.168.2.237:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
           username: root
           password: lantone
           druid:

+ 2 - 2
config-server/src/main/resources/shared/mrman-service-local.yml

@@ -52,7 +52,7 @@ spring:
         master:
           driver-class-name: com.mysql.cj.jdbc.Driver
           platform: mysql
-          url: jdbc:mysql://192.168.2.236:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+          url: jdbc:mysql://192.168.2.237:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
           username: root
           password: lantone
           druid:
@@ -60,7 +60,7 @@ spring:
         slave:
           driver-class-name: com.mysql.cj.jdbc.Driver
           platform: mysql
-          url: jdbc:mysql://192.168.2.236:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+          url: jdbc:mysql://192.168.2.237:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
           username: root
           password: lantone
           druid:

+ 410 - 0
docs/042.20211011默认方案初始化脚本/cdss_init.sql

@@ -0,0 +1,410 @@
+USE `cdss`;
+
+DELETE
+FROM
+tran_plan_detail 
+WHERE 
+id IN (
+SELECT	* FROM (SELECT 
+  b.id  AS id
+FROM
+  tran_plan a 
+  LEFT JOIN tran_plan_detail b 
+    ON a.id = b.plan_id 
+WHERE a.`hospital_id` = - 1 
+  AND a.`plan_code` IN (
+    "plan_default",
+    "patientia",
+    "info",
+    "chief",
+    "symptom",
+    "other",
+    "vital",
+    "lis",
+    "pacs",
+    "diag",
+    "doc_advice",    "reference_lis",
+    "reference_pacs", "order_rational","medical_advice","medical_record"
+  ))cc);
+  
+  
+DELETE FROM  `tran_plan` WHERE hospital_id = -1;
+  
+  
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('4', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '默认方案', 'plan_default', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('5', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-基本信息', 'info', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('6', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-主诉', 'chief', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('7', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-现病史', 'symptom', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('8', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-其他史', 'other', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('9', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-体格检查', 'vital', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('10', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-化验', 'lis', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('11', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-辅检', 'pacs', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('12', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-诊断', 'diag', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('13', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '输入位置-医嘱', 'doc_advice', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('14', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '非空且非输入状态', 'patientia', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('15', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '病历推送', 'medical_record', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('16', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '医嘱推送', 'medical_advice', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('17', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '开单合理性', 'order_rational', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('18', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '检查报告多测量值', 'reference_pacs', '1', NULL);
+INSERT INTO `cdss`.`tran_plan` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_name`, `plan_code`, `plan_status`, `remark`) VALUES ('19', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '检验报告多测量值', 'reference_lis', '1', NULL);
+
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-411', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-408', '中医知识库', 'tcmknowledge', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-410', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-408', '中药处方推荐', 'treatment', '0', '3', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-409', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-408', '病症推导', 'conditionder', '0', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-408', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-1', '中医辅助', 'tcmiss', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-407', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-1', '随访计划', 'followup', '0', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-406', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-1', '医学知识', 'medical', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-405', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐护理', 'nurse', '0', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-404', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐手术/操作', 'operation', '0', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-403', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐用药', 'medicine', '0', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-402', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '一般治疗', 'general', '0', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-401', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐量表', 'evaluation', '0', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-400', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐检查', 'pacs', '0', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-399', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐检验', 'lis', '0', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-398', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐体格检查', 'vital', '0', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-397', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '智能诊断', 'diag', '0', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-396', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '推荐症状', 'symptom', '0', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-395', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '病历书写规范提示', 'casewriting', '0', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-394', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '其他提醒', 'otherremind', '1', NULL, '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-393', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '危急值提醒', 'crivalue', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-392', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '高危', 'highrisk ', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-391', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '开单合理性', 'rationali', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-390', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-389', '危急重症提醒', 'critical', '0', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-389', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '19', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-388', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-385', '中医知识库', 'tcmknowledge', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-387', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-385', '中药处方推荐', 'treatment', '0', '3', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-386', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-385', '病症推导', 'conditionder', '0', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-385', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-1', '中医辅助', 'tcmiss', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-384', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-1', '随访计划', 'followup', '0', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-383', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-1', '医学知识', 'medical', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-382', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐护理', 'nurse', '0', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-381', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐手术/操作', 'operation', '0', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-380', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐用药', 'medicine', '0', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-379', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '一般治疗', 'general', '0', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-378', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐量表', 'evaluation', '0', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-377', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐检查', 'pacs', '0', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-376', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐检验', 'lis', '0', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-375', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐体格检查', 'vital', '0', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-374', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '智能诊断', 'diag', '0', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-373', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '推荐症状', 'symptom', '0', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-372', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '病历书写规范提示', 'casewriting', '0', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-371', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '其他提醒', 'otherremind', '1', NULL, '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-370', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '危急值提醒', 'crivalue', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-369', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '高危', 'highrisk ', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-368', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '开单合理性', 'rationali', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-367', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-366', '危急重症提醒', 'critical', '0', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-366', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '18', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-365', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-362', '中医知识库', 'tcmknowledge', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-364', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-362', '中药处方推荐', 'treatment', '0', '3', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-363', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-362', '病症推导', 'conditionder', '0', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-362', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-1', '中医辅助', 'tcmiss', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-361', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-1', '随访计划', 'followup', '0', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-360', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-1', '医学知识', 'medical', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-359', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐护理', 'nurse', '0', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-358', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐手术/操作', 'operation', '0', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-357', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐用药', 'medicine', '0', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-356', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '一般治疗', 'general', '0', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-355', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐量表', 'evaluation', '0', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-354', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐检查', 'pacs', '0', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-353', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐检验', 'lis', '0', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-352', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐体格检查', 'vital', '0', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-351', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '智能诊断', 'diag', '0', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-350', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '推荐症状', 'symptom', '0', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-349', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '病历书写规范提示', 'casewriting', '0', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-348', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '其他提醒', 'otherremind', '1', NULL, '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-347', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '危急值提醒', 'crivalue', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-346', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '高危', 'highrisk ', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-345', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '开单合理性', 'rationali', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-344', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-343', '危急重症提醒', 'critical', '0', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-343', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '17', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-342', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-339', '中医知识库', 'tcmknowledge', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-341', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-339', '中药处方推荐', 'treatment', '0', '3', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-340', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-339', '病症推导', 'conditionder', '0', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-339', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-1', '中医辅助', 'tcmiss', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-338', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-1', '随访计划', 'followup', '0', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-337', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-336', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐护理', 'nurse', '0', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-335', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐手术/操作', 'operation', '0', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-334', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐用药', 'medicine', '0', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-333', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '一般治疗', 'general', '1', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-332', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐量表', 'evaluation', '0', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-331', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐检查', 'pacs', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-330', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐检验', 'lis', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-329', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐体格检查', 'vital', '0', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-328', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '智能诊断', 'diag', '0', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-327', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '推荐症状', 'symptom', '0', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-326', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '病历书写规范提示', 'casewriting', '0', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-325', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '其他提醒', 'otherremind', '0', NULL, '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-324', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '危急值提醒', 'crivalue', '0', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-323', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '高危', 'highrisk ', '0', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-322', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '开单合理性', 'rationali', '0', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-321', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-320', '危急重症提醒', 'critical', '0', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-320', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '16', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-319', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-316', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-318', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-316', '中药处方推荐', 'treatment', '1', '3', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-317', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-316', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-316', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-315', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-314', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-313', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐护理', 'nurse', '1', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-312', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐手术/操作', 'operation', '1', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-311', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐用药', 'medicine', '1', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-310', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '一般治疗', 'general', '1', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-309', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐量表', 'evaluation', '1', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-308', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐检查', 'pacs', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-307', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐检验', 'lis', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-306', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐体格检查', 'vital', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-305', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-304', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '推荐症状', 'symptom', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-303', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '病历书写规范提示', 'casewriting', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-302', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '其他提醒', 'otherremind', '1', NULL, '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-301', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '危急值提醒', 'crivalue', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-300', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '高危', 'highrisk ', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-299', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '开单合理性', 'rationali', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-298', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-297', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-297', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '15', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-296', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-284', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-295', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-284', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-294', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-284', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-293', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '推荐检查', 'pacs', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-292', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '推荐检验', 'lis', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-291', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '智能诊断', 'diag', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-290', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '病历书写规范提示', 'casewriting', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-289', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '其他提醒', 'otherremind', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-288', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '危急值提醒', 'crivalue', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-287', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '高危', 'highrisk ', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-286', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '开单合理性', 'rationali', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-285', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-280', '智能警示', 'tips', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-284', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-283', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-282', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-281', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-280', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '14', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-279', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-263', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-278', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-263', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-277', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-263', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-276', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '推荐量表', 'evaluation', '1', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-275', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '推荐检查', 'pacs', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-274', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '推荐检验', 'lis', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-273', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '病历书写规范提示', 'casewriting', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-272', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '其他提醒', 'otherremind', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-271', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '危急值提醒', 'crivalue', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-270', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '高危', 'highrisk ', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-269', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '开单合理性', 'rationali', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-268', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '智能警示', 'tips', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-267', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '推荐手术/操作', 'operation', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-266', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '推荐用药', 'medicine', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-265', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '一般治疗', 'general', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-264', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-259', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-263', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-262', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-261', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-260', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-259', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '13', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-258', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-240', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-257', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-240', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-256', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-240', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-255', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐护理', 'nurse', '1', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-254', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐手术/操作', 'operation', '1', '5', '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-253', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐用药', 'medicine', '1', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-252', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '一般治疗', 'general', '1', NULL, '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-251', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐量表', 'evaluation', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-250', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐检查', 'pacs', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-249', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '推荐检验', 'lis', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-248', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-247', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-246', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-245', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-244', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-243', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-242', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '智能诊断', 'diag', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-241', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-236', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-240', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-239', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-238', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-237', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-236', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '12', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-235', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-221', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-234', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-221', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-233', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-221', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-232', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '推荐量表', 'evaluation', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-231', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '推荐检验', 'lis', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-230', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-229', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-228', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-227', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-226', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-225', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-224', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-223', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '推荐检查', 'pacs', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-222', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-217', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-221', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-220', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-219', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-218', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-217', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '11', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-216', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-202', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-215', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-202', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-214', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-202', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-213', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '推荐量表', 'evaluation', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-212', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '推荐检查', 'pacs', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-211', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-210', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-209', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-208', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-207', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-206', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-205', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-204', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '推荐检验', 'lis', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-203', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-198', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-202', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-201', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-200', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-199', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-198', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '10', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-197', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-182', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-196', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-182', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-195', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-182', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-194', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '推荐量表', 'evaluation', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-193', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '推荐检查', 'pacs', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-192', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '推荐检验', 'lis', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-191', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-190', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-189', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-188', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-187', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-186', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-185', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-184', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '推荐体格检查', 'vital', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-183', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-178', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-182', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-181', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-180', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-179', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-178', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '9', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-177', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-163', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-176', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-163', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-175', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-163', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-174', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '推荐量表', 'evaluation', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-173', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '推荐检查', 'pacs', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-172', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '推荐检验', 'lis', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-171', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '智能诊断', 'diag', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-170', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '病历书写规范提示', 'casewriting', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-169', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '其他提醒', 'otherremind', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-168', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '危急值提醒', 'crivalue', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-167', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '高危', 'highrisk ', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-166', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '开单合理性', 'rationali', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-165', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '智能警示', 'tips', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-164', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-159', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-163', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-162', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-161', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-160', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-159', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '8', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-158', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-143', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-157', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-143', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-156', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-143', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-155', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '推荐量表', 'evaluation', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-154', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '推荐检查', 'pacs', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-153', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '推荐检验', 'lis', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-152', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-151', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-150', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-149', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-148', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-147', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-146', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-145', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '推荐症状', 'symptom', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-144', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-139', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-143', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-142', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-141', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-140', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-139', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '7', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-138', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-123', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-137', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-123', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-136', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-123', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-135', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '推荐量表', 'evaluation', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-134', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '推荐检查', 'pacs', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-133', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '推荐检验', 'lis', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-132', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-131', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '病历书写规范提示', 'casewriting', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-130', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '其他提醒', 'otherremind', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-129', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '危急值提醒', 'crivalue', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-128', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '高危', 'highrisk ', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-127', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '开单合理性', 'rationali', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-126', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '智能警示', 'tips', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-125', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '推荐症状', 'symptom', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-124', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-119', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-123', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-122', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-121', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-120', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-119', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '6', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-118', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-104', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-117', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-104', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-116', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-104', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-115', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '推荐量表', 'evaluation', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-114', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '推荐检查', 'pacs', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-113', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '推荐检验', 'lis', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-112', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '智能诊断', 'diag', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-111', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '病历书写规范提示', 'casewriting', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-110', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '其他提醒', 'otherremind', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-109', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '危急值提醒', 'crivalue', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-108', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '高危', 'highrisk ', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-107', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '开单合理性', 'rationali', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-106', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '智能警示', 'tips', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-105', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-100', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-104', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-103', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-102', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-101', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-100', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '5', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-25', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-5', '中医知识库', 'tcmknowledge', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-24', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-5', '中药处方推荐', 'treatment', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-23', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-5', '病症推导', 'conditionder', '1', NULL, '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-22', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐护理', 'nurse', '1', '5', '17', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-21', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐手术/操作', 'operation', '1', '5', '16', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-20', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐用药', 'medicine', '1', '5', '15', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-19', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '一般治疗', 'general', '1', NULL, '14', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-18', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐量表', 'evaluation', '1', '5', '13', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-17', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐检查', 'pacs', '1', '5', '12', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-16', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐检验', 'lis', '1', '5', '11', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-15', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐体格检查', 'vital', '1', '5', '10', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-14', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '智能诊断', 'diag', '1', '5', '9', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-13', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '推荐症状', 'symptom', '1', '5', '8', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-12', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '病历书写规范提示', 'casewriting', '1', '5', '7', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-11', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '其他提醒', 'otherremind', '1', '5', '6', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-10', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '危急值提醒', 'crivalue', '1', '5', '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-9', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '高危', 'highrisk ', '1', '5', '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-8', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '开单合理性', 'rationali', '1', '5', '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-7', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '智能警示', 'tips', '1', '5', '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-6', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '1', '危急重症提醒', 'critical', '1', '5', '1', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-5', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-1', '中医辅助', 'tcmiss', '1', NULL, '5', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-4', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-1', '随访计划', 'followup', '1', NULL, '4', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-3', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-1', '医学知识', 'medical', '1', NULL, '3', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('-2', 'Y', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-1', '病历质控', 'qc', '1', NULL, '2', NULL, NULL);
+INSERT INTO `cdss`.`tran_plan_detail` (`id`, `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `hospital_id`, `plan_id`, `parent_id`, `name`, `code`, `status`, `number`, `order_no`, `value`, `remark`) VALUES ('1', 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '-1', '4', '-1', '辅助信息', 'auxiliary', '1', NULL, '1', NULL, NULL);
+
+DELETE
+FROM
+  `cdss`.`sys_dictionary_info`
+WHERE group_type = 60 ;
+
+
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '默认方案', 'plan_default', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-基本信息', 'info', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-主诉', 'chief', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-现病史', 'symptom', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ('N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-其他史', 'other', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ('N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-体格检查', 'vital', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-化验', 'lis', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-辅检', 'pacs', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-诊断', 'diag', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '输入位置-医嘱', 'doc_advice', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '非空且非输入状态', 'patientia', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '病历推送', 'medical_record', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '医嘱推送', 'medical_advice', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '开单合理性', 'order_rational', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '检查报告多测量值', 'reference_pacs', '1', '0', '电子方案配置');
+INSERT INTO `cdss`.`sys_dictionary_info` (  `is_deleted`, `gmt_create`, `gmt_modified`, `creator`, `modifier`, `group_type`, `name`, `val`, `return_type`, `order_no`, `remark`) VALUES ( 'N', '1970-01-01 12:00:00', '1970-01-01 12:00:00', '0', '0', '60', '检验报告多测量值', 'reference_lis', '1', '0', NULL);

+ 1 - 1
user-service/src/main/java/com/diagbot/service/impl/TokenServiceImpl.java

@@ -56,7 +56,7 @@ public class TokenServiceImpl implements TokenService {
      */
     @Override
     public Boolean createToken(JwtStore token) {
-        DecodedJWT jwt = JwtUtil.decodedJWT(token.getRefreshToken());
+        DecodedJWT jwt = JwtUtil.decodedJWT(token.getAccessToken());
         Map<String, Claim> claims = jwt.getClaims();
         String userId = claims.get("user_id").asInt().toString();
         Date expDate = claims.get("exp").asDate();

+ 4 - 1
user-service/src/main/java/com/diagbot/web/UserController.java

@@ -108,7 +108,10 @@ public class UserController {
 
     @ApiOperation(value = "登录获取jwt[by:zhoutg]",
             notes = "username:用户名,必填<br>" +
-                    "password:密码, 必填, 默认密码:dc483e80a7a0bd9ef71d8cf973673924<br> ")
+                    "password:密码, 必填<br> " +
+                    "【236】:f6af7afd01d4eb0dc5fe0a342cd6cee7<br>" +
+                    "【241】:ccd2fc33d2d423d7209035dbfff82b29<br>" +
+                    "【121、122】:27f78bb8d0adb1568d674518302f10b6<br>")
     @PostMapping("/getJwt")
     @SysLogger("getJwt")
     public RespDTO<JwtDTO> getJwt(@RequestBody UserLoginVO userLoginVO) {