|
@@ -0,0 +1,461 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <title>AdminLTE 2 | Invoice</title>
|
|
|
+ <!-- Tell the browser to be responsive to screen width -->
|
|
|
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
+ <!-- Bootstrap 3.3.6 -->
|
|
|
+ <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
|
|
|
+ <!-- Font Awesome -->
|
|
|
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
|
|
|
+ <!-- Ionicons -->
|
|
|
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
|
|
|
+ <!-- Theme style -->
|
|
|
+ <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
|
|
|
+ <!-- AdminLTE Skins. Choose a skin from the css/skins
|
|
|
+ folder instead of downloading all of them to reduce the load. -->
|
|
|
+ <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
|
|
|
+
|
|
|
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
|
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
+ <!--[if lt IE 9]>
|
|
|
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
|
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
+ <![endif]-->
|
|
|
+ <style>
|
|
|
+ .interval {
|
|
|
+ padding: 1px 8px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ #my_file {
|
|
|
+ visibility: hidden; /* 隐藏 */
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body class="hold-transition skin-blue sidebar-mini">
|
|
|
+ <!-- Left side column. contains the logo and sidebar -->
|
|
|
+ <!-- Content Wrapper. Contains page content -->
|
|
|
+ <div class="content-wrapper">
|
|
|
+ <!-- Content Header (Page header) -->
|
|
|
+ <section class="content-header">
|
|
|
+ <h1>
|
|
|
+ 眼科医院
|
|
|
+ </h1>
|
|
|
+ <!--<ol class="breadcrumb">
|
|
|
+ <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
|
|
+ <li><a href="#">Tables</a></li>
|
|
|
+ <li class="active">Data tables</li>
|
|
|
+ </ol>-->
|
|
|
+ </section>
|
|
|
+
|
|
|
+ <form role="form">
|
|
|
+ <div class="box-body">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="symptom_id">主诉</label>
|
|
|
+ <input type="text" id="chief_id" placeholder="" size="150">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="symptom_id">现病史</label>
|
|
|
+ <input type="text" id="symptom_id" placeholder="" size="150">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="vital_id">专科检查</label>
|
|
|
+ <input type="text" id="vital_id" placeholder="" size="150">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="pacs_id">辅检</label>
|
|
|
+ <input type="text" id="pacs_id" placeholder="" size="150">
|
|
|
+ </div>
|
|
|
+ <!-- <div class="form-group">
|
|
|
+ <label for="symptom_id">性别</label>
|
|
|
+ <select style="padding:2px;width: 150px;" id="sex">
|
|
|
+ <option></option>
|
|
|
+ <option value="M">男(M)</option>
|
|
|
+ <option value="F">女(F)</option>
|
|
|
+ </select>
|
|
|
+ <label for="symptom_id">年龄</label>
|
|
|
+ <input type="text" id="age" placeholder="">
|
|
|
+ </div>-->
|
|
|
+ </div>
|
|
|
+ <!-- /.box-body -->
|
|
|
+ <div class="box-footer">
|
|
|
+ <button type="button" class="btn btn-primary" onclick="clickes();">推送</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+
|
|
|
+ <!-- Main content -->
|
|
|
+ <section class="content">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-header">
|
|
|
+ <h3 class="box-title">推送结果</h3>
|
|
|
+ </div>
|
|
|
+ <div class="box-body" id="feature_inputs_div">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- /.box -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- /.row -->
|
|
|
+ <!-- /.col -->
|
|
|
+ <!-- /.row -->
|
|
|
+ </section>
|
|
|
+ <!-- /.content -->
|
|
|
+ </div>
|
|
|
+ <!-- /.content-wrapper -->
|
|
|
+
|
|
|
+ <!-- /.control-sidebar -->
|
|
|
+ <!-- Add the sidebar's background. This div must be placed
|
|
|
+ immediately after the control sidebar -->
|
|
|
+ <div class="control-sidebar-bg"></div>
|
|
|
+<!-- ./wrapper -->
|
|
|
+<div class="modal fade" id="modal-default">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span></button>
|
|
|
+ <h4 class="modal-title">消息</h4>
|
|
|
+ </div>
|
|
|
+ <div class="row" id="modal-loading">
|
|
|
+ <!-- /.col -->
|
|
|
+ <div class="col-md-12">
|
|
|
+ <div class="box box-danger box-solid">
|
|
|
+ <div class="box-header">
|
|
|
+ <h3 class="box-title">诊断归一</h3>
|
|
|
+ </div>
|
|
|
+ <div class="box-body">
|
|
|
+ 此过程可能需要较长时间,请耐心等待... ...
|
|
|
+ </div>
|
|
|
+ <!-- /.box-body -->
|
|
|
+ <!-- Loading (remove the following to stop the loading)-->
|
|
|
+ <div class="overlay">
|
|
|
+ <i class="fa fa-refresh fa-spin"></i>
|
|
|
+ </div>
|
|
|
+ <!-- end loading -->
|
|
|
+ </div>
|
|
|
+ <!-- /.box -->
|
|
|
+ </div>
|
|
|
+ <!-- /.col -->
|
|
|
+ </div>
|
|
|
+ <!-- /.row -->
|
|
|
+ <div class="modal-body">
|
|
|
+ <p></p>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- /.modal-content -->
|
|
|
+ </div>
|
|
|
+ <!-- /.modal-dialog -->
|
|
|
+</div>
|
|
|
+<!-- /.modal -->
|
|
|
+<!-- jQuery 2.2.3 -->
|
|
|
+<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
|
|
|
+<!-- Bootstrap 3.3.6 -->
|
|
|
+<script src="../bootstrap/js/bootstrap.min.js"></script>
|
|
|
+<!-- DataTables -->
|
|
|
+<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
|
|
|
+<script src="../plugins/datatables/dataTables.bootstrap.min.js"></script>
|
|
|
+<!-- SlimScroll -->
|
|
|
+<script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
|
|
+<!-- FastClick -->
|
|
|
+<script src="../plugins/fastclick/fastclick.js"></script>
|
|
|
+<!-- AdminLTE App -->
|
|
|
+<script src="../dist/js/app.min.js"></script>
|
|
|
+<!-- AdminLTE for demo purposes -->
|
|
|
+<script src="../dist/js/demo.js"></script>
|
|
|
+
|
|
|
+<script src="../dist/js/push.js"></script>
|
|
|
+
|
|
|
+<script>
|
|
|
+ $(function () {
|
|
|
+ });
|
|
|
+ function clickes(){
|
|
|
+ alert("进来了");
|
|
|
+ $.ajax({
|
|
|
+ url:push_web_url+"/eyehospital/people",//访问的地址
|
|
|
+ type:"get",
|
|
|
+ dataType:'JSON',//后台返回的数据格式类型
|
|
|
+ success:function (data) {
|
|
|
+ alert("成功了");
|
|
|
+ $("#feature_inputs_div").append(data.name);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ };
|
|
|
+ function bayesPage(resourceType) {
|
|
|
+ var diag = $("#diag_id").val();
|
|
|
+ var symptom = $("#symptom").val();
|
|
|
+ if (diag != '' && symptom == '') {
|
|
|
+ $('#diag_list').html("");
|
|
|
+ $('#before_combine_diag_list').html("");
|
|
|
+ startDiag('/algorithm/page_neural', '#symptom_list', '1', resourceType, '111', '1');
|
|
|
+ startDiag('/algorithm/page_neural', '#vital_list', '3,2,7', resourceType, '131', '3');
|
|
|
+ startDiag('/algorithm/page_neural', '#lis_list', '4,2,7', resourceType, '141', '4');
|
|
|
+ startDiag('/algorithm/page_neural', '#pacs_list', '5,2,7', resourceType, '151', '5');
|
|
|
+
|
|
|
+ } else {
|
|
|
+ startDiag('/algorithm/page_neural', '#symptom_list', '1', resourceType, '11', '1');
|
|
|
+ startDiag('/algorithm/page_neural', '#vital_list', '3,2,7', resourceType, '31', '3');
|
|
|
+ startDiag('/algorithm/page_neural', '#lis_list', '4,2,7', resourceType, '41', '4');
|
|
|
+ startDiag('/algorithm/page_neural', '#pacs_list', '5,2,7', resourceType, '51', '5');
|
|
|
+
|
|
|
+ startDiagMapping('/algorithm/page_neural', '#diag_list', '2', resourceType, '21', '2');
|
|
|
+ startDiagMapping('/algorithm/page_neural', '#before_combine_diag_list', '2', resourceType, '21', '6');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function startDiagMapping(url, obj, featureType, resourceType, algorithmClassify, tp) {
|
|
|
+ $(obj).DataTable({
|
|
|
+ "paging": false,
|
|
|
+ "bPaginate" : true,
|
|
|
+ "lengthChange": true,
|
|
|
+ "searching": false,
|
|
|
+ "ordering": false,
|
|
|
+ "info": false,
|
|
|
+ "autoWidth": false,
|
|
|
+ "serverSide": true,
|
|
|
+ "destroy": true,
|
|
|
+ "iDisplayLength": 25,
|
|
|
+ "columns": [
|
|
|
+ {"data": "featureName"},
|
|
|
+ {"data": "extraProperty"},
|
|
|
+ {"data": "rate"}
|
|
|
+ ],
|
|
|
+ "ajax": {
|
|
|
+ "url": push_web_url + url,
|
|
|
+ "data": function ( d ) {
|
|
|
+ d.featureType = featureType;
|
|
|
+ d.resourceType = resourceType;
|
|
|
+ d.algorithmClassifyValue = algorithmClassify;
|
|
|
+ var symptom = $("#symptom_id").val();
|
|
|
+ var vital = $("#vital_id").val();
|
|
|
+ var past = $("#past_id").val();
|
|
|
+ var other = $("#other_id").val();
|
|
|
+ var lis = $("#lis_id").val();
|
|
|
+ var pacs = $("#pacs_id").val();
|
|
|
+ var lisOrder = $("#lis_order").val();
|
|
|
+ var pacsOrder = $("#pacs_order").val();
|
|
|
+ var diag = $("#diag_id").val();
|
|
|
+ var length = $("#length").val();
|
|
|
+ var sex = $("#sex").val();
|
|
|
+ var age = $("#age").val();
|
|
|
+ var age_start = $("#age_start").val();
|
|
|
+ var age_end = $("#age_end").val();
|
|
|
+ d.sysCode = "2";
|
|
|
+ //添加额外的参数传给服务器
|
|
|
+ if (symptom != null && symptom != undefined) {
|
|
|
+ d.symptom = symptom;
|
|
|
+ }
|
|
|
+ if (vital != null && vital != undefined) {
|
|
|
+ d.vital = vital;
|
|
|
+ }
|
|
|
+ if (past != null && past != undefined) {
|
|
|
+ d.past = past;
|
|
|
+ }
|
|
|
+ if (other != null && other != undefined) {
|
|
|
+ d.other = other;
|
|
|
+ }
|
|
|
+ if (lis != null && lis != undefined) {
|
|
|
+ d.lis = lis;
|
|
|
+ }
|
|
|
+ if (pacs != null && pacs != undefined) {
|
|
|
+ d.pacs = pacs;
|
|
|
+ }
|
|
|
+ if (lisOrder != null && lisOrder != undefined) {
|
|
|
+ d.lisOrder = lisOrder;
|
|
|
+ }
|
|
|
+ if (pacsOrder != null && pacsOrder != undefined) {
|
|
|
+ d.pacsOrder = pacsOrder;
|
|
|
+ }
|
|
|
+ if (diag != null && diag != undefined && diag != '') {
|
|
|
+ d.diag = diag;
|
|
|
+ }
|
|
|
+ if (length != null && length != undefined) {
|
|
|
+ d.length = length;
|
|
|
+ }
|
|
|
+ if (sex != null && sex != undefined) {
|
|
|
+ d.sex = sex;
|
|
|
+ }
|
|
|
+ if (age != '' && age_start != age && age != undefined) {
|
|
|
+ d.age = age;
|
|
|
+ }
|
|
|
+ if (age_start != '' && age_start != null && age_start != undefined) {
|
|
|
+ d.age_start = age_start;
|
|
|
+ }
|
|
|
+ if (age_end != '' && age_end != null && age_end != undefined) {
|
|
|
+ d.age_end = age_end;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "dataSrc": function (json) {
|
|
|
+ var inputs = json.data.inputs;
|
|
|
+ var h = "";
|
|
|
+ $.each(inputs, function (key, item) {
|
|
|
+ h += "<div class='form-group'><label>" + key + " </label>";
|
|
|
+ h += "</div>";
|
|
|
+ });
|
|
|
+ $("#feature_inputs_div").html(h);
|
|
|
+
|
|
|
+ if (tp == '1') {
|
|
|
+ $("#participle_symptom").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.symptom;
|
|
|
+ }
|
|
|
+ if (tp == '2') {
|
|
|
+ $("#participle_diag").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.dis;
|
|
|
+ }
|
|
|
+ if (tp == '3') {
|
|
|
+ $("#participle_vital").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.vitals;
|
|
|
+ }
|
|
|
+ if (tp == '4') {
|
|
|
+ $("#participle_lis").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.labs;
|
|
|
+ }
|
|
|
+ if (tp == '5') {
|
|
|
+ $("#participle_pacs").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.pacs;
|
|
|
+ }
|
|
|
+ if (tp == '6') {
|
|
|
+ $("#before_combine_participle_diag").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.beforeCombineDis;
|
|
|
+ }
|
|
|
+ return json.data;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ function startDiag(url, obj, featureType, resourceType, algorithmClassify, tp) {
|
|
|
+ $(obj).DataTable({
|
|
|
+ "paging": false,
|
|
|
+ "bPaginate" : true,
|
|
|
+ "lengthChange": true,
|
|
|
+ "searching": false,
|
|
|
+ "ordering": false,
|
|
|
+ "info": false,
|
|
|
+ "autoWidth": false,
|
|
|
+ "serverSide": true,
|
|
|
+ "destroy": true,
|
|
|
+ "iDisplayLength": 25,
|
|
|
+ "columns": [
|
|
|
+ {"data": "featureName"},
|
|
|
+ {"data": "rate"}
|
|
|
+ ],
|
|
|
+ "ajax": {
|
|
|
+ "url": push_web_url + url,
|
|
|
+ "data": function ( d ) {
|
|
|
+ d.featureType = featureType;
|
|
|
+ d.resourceType = resourceType;
|
|
|
+ d.algorithmClassifyValue = algorithmClassify;
|
|
|
+ var symptom = $("#symptom_id").val();
|
|
|
+ var vital = $("#vital_id").val();
|
|
|
+ var past = $("#past_id").val();
|
|
|
+ var other = $("#other_id").val();
|
|
|
+ var lis = $("#lis_id").val();
|
|
|
+ var pacs = $("#pacs_id").val();
|
|
|
+ var lisOrder = $("#lis_order").val();
|
|
|
+ var pacsOrder = $("#pacs_order").val();
|
|
|
+ var diag = $("#diag_id").val();
|
|
|
+ var length = $("#length").val();
|
|
|
+ var sex = $("#sex").val();
|
|
|
+ var age = $("#age").val();
|
|
|
+ var age_start = $("#age_start").val();
|
|
|
+ var age_end = $("#age_end").val();
|
|
|
+ d.sysCode = "2";
|
|
|
+ //添加额外的参数传给服务器
|
|
|
+ if (symptom != null && symptom != undefined) {
|
|
|
+ d.symptom = symptom;
|
|
|
+ }
|
|
|
+ if (vital != null && vital != undefined) {
|
|
|
+ d.vital = vital;
|
|
|
+ }
|
|
|
+ if (past != null && past != undefined) {
|
|
|
+ d.past = past;
|
|
|
+ }
|
|
|
+ if (other != null && other != undefined) {
|
|
|
+ d.other = other;
|
|
|
+ }
|
|
|
+ if (lis != null && lis != undefined) {
|
|
|
+ d.lis = lis;
|
|
|
+ }
|
|
|
+ if (pacs != null && pacs != undefined) {
|
|
|
+ d.pacs = pacs;
|
|
|
+ }
|
|
|
+ if (lisOrder != null && lisOrder != undefined) {
|
|
|
+ d.lisOrder = lisOrder;
|
|
|
+ }
|
|
|
+ if (pacsOrder != null && pacsOrder != undefined) {
|
|
|
+ d.pacsOrder = pacsOrder;
|
|
|
+ }
|
|
|
+ if (diag != null && diag != undefined && diag != '') {
|
|
|
+ d.diag = diag;
|
|
|
+ }
|
|
|
+ if (length != null && length != undefined) {
|
|
|
+ d.length = length;
|
|
|
+ }
|
|
|
+ if (sex != null && sex != undefined) {
|
|
|
+ d.sex = sex;
|
|
|
+ }
|
|
|
+ if (age != '' && age_start != age && age != undefined) {
|
|
|
+ d.age = age;
|
|
|
+ }
|
|
|
+ if (age_start != '' && age_start != null && age_start != undefined) {
|
|
|
+ d.age_start = age_start;
|
|
|
+ }
|
|
|
+ if (age_end != '' && age_end != null && age_end != undefined) {
|
|
|
+ d.age_end = age_end;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "dataSrc": function (json) {
|
|
|
+ var inputs = json.data.inputs;
|
|
|
+ var h = "";
|
|
|
+ $.each(inputs, function (key, item) {
|
|
|
+ h += "<div class='form-group'><label>" + key + ": </label>";
|
|
|
+ $.each(item,function (k, t) {
|
|
|
+ if (t == null) {
|
|
|
+ t = "";
|
|
|
+ }
|
|
|
+ h += " (<label>" + k + ":" + t + "</label>) ";
|
|
|
+ });
|
|
|
+ h += "</div>";
|
|
|
+ });
|
|
|
+ $("#feature_inputs_div").html(h);
|
|
|
+
|
|
|
+ if (tp == '1') {
|
|
|
+ $("#participle_symptom").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.symptom;
|
|
|
+ }
|
|
|
+ if (tp == '2') {
|
|
|
+ $("#participle_diag").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.dis;
|
|
|
+ }
|
|
|
+ if (tp == '3') {
|
|
|
+ $("#participle_vital").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.vitals;
|
|
|
+ }
|
|
|
+ if (tp == '4') {
|
|
|
+ $("#participle_lis").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.labs;
|
|
|
+ }
|
|
|
+ if (tp == '5') {
|
|
|
+ $("#participle_pacs").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.pacs;
|
|
|
+ }
|
|
|
+ if (tp == '6') {
|
|
|
+ $("#before_combine_participle_diag").html(json.data.participleSymptom);
|
|
|
+ json.data = json.data.beforeCombineDis;
|
|
|
+ }
|
|
|
+ return json.data;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|