Browse Source

更新辅检开单合理性的文本匹配方式

MarkHuang 4 years ago
parent
commit
a3c16adaf5

+ 3 - 0
src/main/java/com/diagbot/entity/relationship/PacsNameDisease.java

@@ -13,6 +13,9 @@ public class PacsNameDisease extends BaseRelation {
     @StartNode
     private PacsName pacsName;
 
+    @Property(name = "匹配")
+    private Integer exactMatch;
+
     @EndNode
     private Disease disease;
 }

+ 2 - 0
src/main/java/com/diagbot/repository/NodeInfo.java

@@ -18,4 +18,6 @@ public class NodeInfo {
     Integer range;
     // 类型
     String typeval;
+    // 匹配类型
+    Integer matchtype;
 }

+ 1 - 0
src/main/java/com/diagbot/repository/PacsNameNode.java

@@ -138,6 +138,7 @@ public class PacsNameNode {
                 nodeInfo = new NodeInfo();
                 nodeInfo.setName(disease.getDisease().getName());
                 nodeInfo.setTypeval(Constants.disease);
+                nodeInfo.setMatchtype(disease.getExactMatch());
                 pacsBillNeoDTO.getDisease().add(NeoUtil.updateNodeInfo(nodeInfo));
             }
         }

+ 4 - 0
src/main/java/com/diagbot/util/NeoUtil.java

@@ -54,6 +54,10 @@ public class NeoUtil {
         type = (null==type)?"":type;
         nodeNeoDTO.setTermtype(type);
 
+        if (nodeInfo.getMatchtype()!=null && nodeInfo.getMatchtype()==1) {
+            nodeNeoDTO.setExactMatch(1);
+        }
+
         return nodeNeoDTO;
     }