Ver código fonte

添加写死的规则

gaodm 4 anos atrás
pai
commit
9170379a98

+ 2 - 0
src/main/java/com/diagbot/facade/BillFacade.java

@@ -53,6 +53,8 @@ public class BillFacade {
         // otherRule.ecgRule(wordCrfDTO, res);
         otherRule.qjssxsRule(wordCrfDTO, res);
         otherRule.pttRule(wordCrfDTO, res);
+        otherRule.lisDiseaseRule(wordCrfDTO, res);
+        otherRule.lisAgeRule(wordCrfDTO, res);
 
         // 结果去重处理
         commonFacade.dealMsg(res.getBillMsgList());

+ 67 - 0
src/main/java/com/diagbot/rule/OtherRule.java

@@ -1,5 +1,6 @@
 package com.diagbot.rule;
 
+import com.diagbot.biz.push.entity.Lis;
 import com.diagbot.biz.push.entity.Pacs;
 import com.diagbot.dto.BillMsg;
 import com.diagbot.dto.BillNeoMaxDTO;
@@ -31,6 +32,8 @@ public class OtherRule {
     CommonRule commonRule;
     @Autowired
     VitalRule vitalRule;
+    @Autowired
+    AgeRule ageRule;
 
     /**
      * 70岁及以上开【内镜检查】时,需要先做【心电图检查】
@@ -159,4 +162,68 @@ public class OtherRule {
             }
         }
     }
+
+    /**
+     * 检验开单:【血常规】
+     * 1、禁忌疾病:血友病
+     *
+     * @param wordCrfDTO
+     * @param res
+     */
+    public void lisDiseaseRule(WordCrfDTO wordCrfDTO, IndicationDTO res) {
+        // 特殊值处理
+        // List<String> drugNameList = CoreUtil.getPropertyList(wordCrfDTO.getDrugOrder(), "uniqueName");
+        List<Lis> lisOrderList = wordCrfDTO.getLisOrder();
+        for (Lis lis : lisOrderList) {
+            String lisOrderName = "血常规";
+            if (lisOrderName.equals(lis.getUniqueName())) {
+                // 开单项信息
+                BillNeoMaxDTO billNeoMaxDTO = new BillNeoMaxDTO();
+                billNeoMaxDTO.setOrderName(lis.getName());
+                billNeoMaxDTO.setOrderStandName(lisOrderName);
+
+                // 禁忌疾病
+                List<NodeNeoDTO> diseaseNode = new ArrayList<>();
+                List<String> diseaseList = Lists.newArrayList("血友病");
+                for (String str : diseaseList) {
+                    NodeNeoDTO nodeNeoDTO = new NodeNeoDTO();
+                    nodeNeoDTO.setName(str);
+                    nodeNeoDTO.setTermtype(NeoEnum.disease.getName());
+                    diseaseNode.add(nodeNeoDTO);
+                }
+                billNeoMaxDTO.setDisease(diseaseNode);
+                commonRule.compareItemWithBill(diseaseNode, wordCrfDTO.getDiagSource(), billNeoMaxDTO, res.getBillMsgList(), NeoEnum.disease.getName());
+            }
+        }
+    }
+
+    /**
+     * 检验开单:【孕酮测定】
+     * 1、禁忌年龄:1岁2个月
+     *
+     * @param wordCrfDTO
+     * @param res
+     */
+    public void lisAgeRule(WordCrfDTO wordCrfDTO, IndicationDTO res) {
+        // 特殊值处理
+        // List<String> drugNameList = CoreUtil.getPropertyList(wordCrfDTO.getDrugOrder(), "uniqueName");
+        List<Lis> lisOrderList = wordCrfDTO.getLisOrder();
+        for (Lis lis : lisOrderList) {
+            String lisOrderName = "孕酮测定";
+            if (lisOrderName.equals(lis.getUniqueName())) {
+                // 开单项信息
+                BillNeoMaxDTO billNeoMaxDTO = new BillNeoMaxDTO();
+                billNeoMaxDTO.setOrderName(lis.getName());
+                billNeoMaxDTO.setOrderStandName(lisOrderName);
+
+                // 禁忌年龄
+                NodeNeoDTO nodeNeoDTO = new NodeNeoDTO();
+                nodeNeoDTO.setMax(new BigDecimal(10));
+                nodeNeoDTO.setTermtype(NeoEnum.ageNeoDTO.getName());
+
+                billNeoMaxDTO.setAgeNeoDTO(nodeNeoDTO);
+                ageRule.bill(wordCrfDTO, billNeoMaxDTO, res.getBillMsgList(), NeoEnum.ageNeoDTO.getName());
+            }
+        }
+    }
 }

+ 2 - 2
src/main/resources/application-local.yml

@@ -41,7 +41,7 @@ spring:
     druid:
       driver-class-name: com.mysql.cj.jdbc.Driver
       platform: mysql
-      url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      url: jdbc:mysql://192.168.2.236:3306/cdss_old?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
       username: root
       password: lantone
       # 连接池的配置信息
@@ -107,7 +107,7 @@ spring:
 
 neo4j:
   data:
-    URI: http://192.168.2.234:7480
+    URI: http://192.168.3.150:7480
     username: neo4j
     password: root