浏览代码

重新删除阴性症状、疾病在推送结果中过滤

louhr 6 年之前
父节点
当前提交
572c4386e1

+ 3 - 3
bigdata-web/src/main/java/org/diagbot/bigdata/work/ResultDataProxy.java

@@ -89,9 +89,9 @@ public class ResultDataProxy {
             return false;
         }
         //
-        if (searchData.getFilters().get(result) != null) {
-            return false;
-        }
+//        if (searchData.getFilters().get(result) != null) {
+//            return false;
+//        }
         return true;
     }
 

+ 12 - 0
push-web/src/main/resources/static/pages/algorithm/list.html

@@ -93,6 +93,10 @@
                     <label for="symptom_id">症状</label>&nbsp;
                     <input type="text" id="symptom_id" placeholder="" size="150">&nbsp;&nbsp;&nbsp;&nbsp;
                 </div>
+                <div class="form-group">
+                    <label for="other_id">其他史</label>&nbsp;
+                    <input type="text" id="other_id" placeholder="" size="150">&nbsp;&nbsp;&nbsp;&nbsp;
+                </div>
                 <div class="form-group">
                     <label for="diag_id">诊断</label>&nbsp;
                     <input type="text" id="diag_id" placeholder="" size="50">&nbsp;&nbsp;&nbsp;&nbsp;
@@ -384,6 +388,7 @@
                     d.resourceType = resourceType;
                     d.algorithmClassifyValue =  algorithmClassify;
                     var symptom = $("#symptom_id").val();
+                    var other = $("#other_id").val();
                     var diag = $("#diag_id").val();
                     var length = $("#length").val();
                     var sex = $("#sex").val();
@@ -395,6 +400,9 @@
                     if (symptom != null && symptom != undefined) {
                         d.symptom = symptom;
                     }
+                    if (other != null && other != undefined) {
+                        d.other = other;
+                    }
                     if (diag != null && diag != undefined && diag != '') {
                         d.diag = diag;
                     }
@@ -474,6 +482,7 @@
                     d.resourceType = resourceType;
                     d.algorithmClassifyValue =  algorithmClassify;
                     var symptom = $("#symptom_id").val();
+                    var other = $("#other_id").val();
                     var diag = $("#diag_id").val();
                     var length = $("#length").val();
                     var sex = $("#sex").val();
@@ -485,6 +494,9 @@
                     if (symptom != null && symptom != undefined) {
                         d.symptom = symptom;
                     }
+                    if (other != null && other != undefined) {
+                        d.other = other;
+                    }
                     if (diag != null && diag != undefined && diag != '') {
                         d.diag = diag;
                     }