|
@@ -92,7 +92,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label for="diagString">疾病信息</label>
|
|
<label for="diagString">疾病信息</label>
|
|
- <input type="text" id="diagString" placeholder="" size="150">
|
|
|
|
|
|
+ <input type="text" id="diagString" placeholder="" size="80">
|
|
|
|
+ <label>记录数</label>
|
|
|
|
+ <input type="text" id="length" placeholder="" value="20">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<!-- /.box-body -->
|
|
@@ -114,9 +116,7 @@
|
|
<table id="diag_list" class="table table-bordered table-striped">
|
|
<table id="diag_list" class="table table-bordered table-striped">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th>diag</th>
|
|
|
|
- <th>dept</th>
|
|
|
|
- <th>rate</th>
|
|
|
|
|
|
+ <th>疾病</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@@ -139,9 +139,7 @@
|
|
<table id="before_combine_diag_list" class="table table-bordered table-striped">
|
|
<table id="before_combine_diag_list" class="table table-bordered table-striped">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th>diag</th>
|
|
|
|
- <th>dept</th>
|
|
|
|
- <th>rate</th>
|
|
|
|
|
|
+ <th>检查</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@@ -164,8 +162,7 @@
|
|
<table id="symptom_list" class="table table-bordered table-striped">
|
|
<table id="symptom_list" class="table table-bordered table-striped">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th>symptom</th>
|
|
|
|
- <th>rate</th>
|
|
|
|
|
|
+ <th>用药</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@@ -213,7 +210,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
function bayesPage(resourceType) {
|
|
function bayesPage(resourceType) {
|
|
- startDiag('/algorithm_validate/page_neural', '#symptom_list', '1', resourceType, '111', '1');
|
|
|
|
|
|
+ startDiag('/algorithm_validate/page_neural', '#diag_list', '1', resourceType, '111', '1');
|
|
}
|
|
}
|
|
|
|
|
|
function startDiag(url, obj, featureType, resourceType, algorithmClassify, tp) {
|
|
function startDiag(url, obj, featureType, resourceType, algorithmClassify, tp) {
|
|
@@ -229,8 +226,7 @@
|
|
"destroy": true,
|
|
"destroy": true,
|
|
"iDisplayLength": 25,
|
|
"iDisplayLength": 25,
|
|
"columns": [
|
|
"columns": [
|
|
- {"data": "featureName"},
|
|
|
|
- {"data": "rate"}
|
|
|
|
|
|
+ {"data": "featureName"}
|
|
],
|
|
],
|
|
"ajax": {
|
|
"ajax": {
|
|
"url": push_web_url + url,
|
|
"url": push_web_url + url,
|
|
@@ -238,40 +234,36 @@
|
|
d.featureType = featureType;
|
|
d.featureType = featureType;
|
|
d.resourceType = resourceType;
|
|
d.resourceType = resourceType;
|
|
d.algorithmClassifyValue = algorithmClassify;
|
|
d.algorithmClassifyValue = algorithmClassify;
|
|
- var content = $("#content").val();
|
|
|
|
|
|
+ var symptom = $("#content").val();
|
|
var diagString = $("#diagString").val();
|
|
var diagString = $("#diagString").val();
|
|
|
|
+ var length = $("#length").val();
|
|
d.sysCode = "2";
|
|
d.sysCode = "2";
|
|
//添加额外的参数传给服务器
|
|
//添加额外的参数传给服务器
|
|
- if (content != null && content != undefined) {
|
|
|
|
- d.content = content;
|
|
|
|
|
|
+ if (symptom != null && symptom != undefined) {
|
|
|
|
+ d.symptom = symptom;
|
|
}
|
|
}
|
|
if (diagString != null && diagString != undefined) {
|
|
if (diagString != null && diagString != undefined) {
|
|
d.diagString = diagString;
|
|
d.diagString = diagString;
|
|
}
|
|
}
|
|
|
|
+ d.length = length;
|
|
},
|
|
},
|
|
"dataSrc": function (json) {
|
|
"dataSrc": function (json) {
|
|
if (tp == '1') {
|
|
if (tp == '1') {
|
|
- $("#participle_diag").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.dis;
|
|
json.data = json.data.dis;
|
|
}
|
|
}
|
|
if (tp == '2') {
|
|
if (tp == '2') {
|
|
- $("#participle_diag").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.dis;
|
|
json.data = json.data.dis;
|
|
}
|
|
}
|
|
if (tp == '3') {
|
|
if (tp == '3') {
|
|
- $("#participle_vital").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.vitals;
|
|
json.data = json.data.vitals;
|
|
}
|
|
}
|
|
if (tp == '4') {
|
|
if (tp == '4') {
|
|
- $("#participle_lis").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.labs;
|
|
json.data = json.data.labs;
|
|
}
|
|
}
|
|
if (tp == '5') {
|
|
if (tp == '5') {
|
|
- $("#participle_pacs").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.pacs;
|
|
json.data = json.data.pacs;
|
|
}
|
|
}
|
|
if (tp == '6') {
|
|
if (tp == '6') {
|
|
- $("#before_combine_participle_diag").html(json.data.participleSymptom);
|
|
|
|
json.data = json.data.beforeCombineDis;
|
|
json.data = json.data.beforeCombineDis;
|
|
}
|
|
}
|
|
return json.data;
|
|
return json.data;
|