فهرست منبع

更新手术开单合理性

MarkHuang 4 سال پیش
والد
کامیت
07a8237f60

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

@@ -114,6 +114,9 @@ public class Disease extends BaseNode  {
 
     @Relationship(type="实验室检查禁忌疾病", direction = Relationship.INCOMING)
     private Set<Disease> lis_conflict_diseases;
+
+    @Relationship(type="手术和操作禁忌疾病", direction = Relationship.INCOMING)
+    private Set<Operation> operation_conflict_diseases;
 }
 
 

+ 3 - 3
src/main/java/com/diagbot/repository/OperationNode.java

@@ -39,8 +39,8 @@ public class OperationNode {
         Set<Vital> vitals = operation.getVitals();
         for (Vital vital : vitals) {
             String name = vital.getName();
-            BigDecimal min = NeoUtil.DoubletoBigDecimal(vital.getMinval());
-            BigDecimal max = NeoUtil.DoubletoBigDecimal(vital.getMaxval());
+            BigDecimal min = NeoUtil.DoubletoBigDecimal(Double.valueOf(vital.getMinval()));
+            BigDecimal max = NeoUtil.DoubletoBigDecimal(Double.valueOf(vital.getMaxval()));
             String unit = vital.getUnit();
             Integer range = vital.getRange();
             opBillNeoDTO.getVitals().add(NeoUtil.updateNodeInfo(name, min, max, unit, range));
@@ -62,7 +62,7 @@ public class OperationNode {
             opBillNeoDTO.getConflictmeds().add(NeoUtil.updateNodeInfo(name, null, null, null, null));
         }
 
-        Set<Disease> conflict_disease = operation.getDiseases();
+        Set<Disease> conflict_disease = operation.getConflict_diseases();
         for (Disease disease : conflict_disease) {
             String name = disease.getName();
             opBillNeoDTO.getDisease().add(NeoUtil.updateNodeInfo(name, null, null, null, null));