Prechádzať zdrojové kódy

更新开单合理性中的禁忌的辅助检查描述项目

MarkHuang 4 rokov pred
rodič
commit
4d2c65db47

+ 3 - 0
src/main/java/com/diagbot/entity/node/Operation.java

@@ -35,6 +35,9 @@ public class Operation extends BaseNode  {
     @Relationship(type = "手术和操作禁忌实验室检查", direction = Relationship.OUTGOING)
     private Set<LIS> conflict_lis = new HashSet<>();
 
+    @Relationship(type = "手术和操作禁忌辅助检查描述", direction = Relationship.OUTGOING)
+    private Set<PACSDescribe> conflict_pacsdesc = new HashSet<>();
+
     @Relationship(type = "手术和操作禁忌服用药品", direction = Relationship.OUTGOING)
     private Set<OralMedicine> oralMedicines = new HashSet<>();
 

+ 3 - 0
src/main/java/com/diagbot/entity/node/PACS.java

@@ -59,6 +59,9 @@ public class PACS extends BaseNode  {
     @Relationship(type="辅助检查禁忌实验室检查", direction = Relationship.OUTGOING)
     private Set<LIS> liss = new HashSet<>();
 
+    @Relationship(type="辅助检查禁忌辅助检查描述", direction = Relationship.OUTGOING)
+    private Set<PACSDescribe> pacs_conflict_pacsdesc;
+
     @Relationship(type="辅助检查禁忌疾病", direction = Relationship.OUTGOING)
     private Set<Disease> diseases = new HashSet<>();
 

+ 29 - 0
src/main/java/com/diagbot/entity/node/PACSDescribe.java

@@ -0,0 +1,29 @@
+package com.diagbot.entity.node;
+
+import com.diagbot.entity.node.base.BaseNode;
+import lombok.Getter;
+import lombok.Setter;
+import org.neo4j.ogm.annotation.NodeEntity;
+import org.neo4j.ogm.annotation.Relationship;
+
+import java.util.HashSet;
+import java.util.Set;
+
+@Setter
+@Getter
+//@EqualsAndHashCode(callSuper = false)
+@NodeEntity(label = "辅助检查描述")
+public class PACSDescribe extends BaseNode  {
+
+    @Relationship(type = "手术和操作禁忌辅助检查描述", direction = Relationship.INCOMING)
+    private Set<Operation> op_conflict_pacsdesc = new HashSet<>();
+
+    @Relationship(type="辅助检查禁忌辅助检查描述", direction = Relationship.INCOMING)
+    private Set<PACS> pacs_conflict_pacsdesc;
+
+}
+
+
+
+
+

+ 6 - 0
src/main/java/com/diagbot/repository/OperationNode.java

@@ -74,6 +74,12 @@ public class OperationNode {
             opBillNeoDTO.getGroup().add(NeoUtil.updateNodeInfo(name, null, null, null, null));
         }
 
+        Set<PACSDescribe> conflict_pacsdesc = operation.getConflict_pacsdesc();
+        for (PACSDescribe pacsdesc : conflict_pacsdesc) {
+            String name = pacsdesc.getName();
+            opBillNeoDTO.getPacsDesc().add(NeoUtil.updateNodeInfo(name, null, null, null, null));
+        }
+
         return opBillNeoDTO;
     }
 

+ 5 - 0
src/main/java/com/diagbot/repository/PACSNode.java

@@ -106,6 +106,11 @@ public class PACSNode {
             pacsBillNeoDTO.getGroup().add(NeoUtil.updateNodeInfo(name, null, null, null, null));
         }
 
+        Set<PACSDescribe> conflict_pacsdesc = pacs.getPacs_conflict_pacsdesc();
+        for (PACSDescribe pacsdesc : conflict_pacsdesc) {
+            String name = pacsdesc.getName();
+            pacsBillNeoDTO.getPacsDesc().add(NeoUtil.updateNodeInfo(name, null, null, null, null));
+        }
 
         return pacsBillNeoDTO;
     }