123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520 |
- <!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">
- <div class="wrapper">
- <header class="main-header">
- <!-- Logo -->
- <a href="#" class="logo">
- <!-- logo for regular state and mobile devices -->
- <span class="logo-lg"><b>D</b>iagbot</span>
- </a>
- </header>
- <!-- Left side column. contains the logo and sidebar -->
- <aside class="main-sidebar">
- <!-- sidebar: style can be found in sidebar.less -->
- <section class="sidebar">
- <!-- /.search form -->
- <!-- sidebar menu: : style can be found in sidebar.less -->
- <ul class="sidebar-menu">
- <li class="header">MAIN NAVIGATION</li>
- <li class="treeview active">
- <a href="#">
- <i class="fa fa-folder"></i> <span>diagbot</span>
- <span class="pull-right-container">
- <i class="fa fa-angle-left pull-right"></i>
- </span>
- </a>
- <ul class="treeview-menu">
- <li class="active"><a href="/push-web/participle/index"><i class="fa fa-circle-o"></i>分词示例</a>
- </li>
- <li class="active"><a href="/push-web/extract/index"><i class="fa fa-circle-o"></i>提取特征</a></li>
- <li class="active"><a href="/push-web/relation/list"><i class="fa fa-circle-o"></i>数据标注</a>
- </li>
- <li class="active"><a href="/push-web/relation/index"><i class="fa fa-circle-o"></i>关系抽取</a>
- </li>
- <li class="active"><a href="/push-web/algorithm/index"><i class="fa fa-circle-o"></i>算法分析</a>
- </li>
- </ul>
- </li>
- </ul>
- </section>
- <!-- /.sidebar -->
- </aside>
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- <small></small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="#"><i class="fa fa-dashboard"></i>Diagbot</a></li>
- <li><a href="#">nlp</a></li>
- <li class="active">分词示例</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="invoice">
- <!-- title row -->
- <div class="row">
- <div class="col-xs-12">
- <h2 class="page-header">
- <form role="form" id="up_file_form" enctype='multipart/form-data' style="position: relative;">
- <i class="fa"></i>病 例
- </form>
- </h2>
- </div>
- <!-- /.col -->
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="row">
- <div class="col-xs-12">
- <form role="form" id="participle_form">
- <!-- textarea -->
- <div class="form-group">
- <textarea class="form-control" rows="5" placeholder="Enter ..." name="content" id="content">
- 患者入院前40余年受凉后出现咳嗽、咳痰,咳嗽不剧,少量咳痰,约2-5毫升/日,伴气急,气急常于夜间发作,活动后明显,休息后缓解,无双下肢水肿,无咯粉红色泡沫痰,无胸痛、心悸,无胸闷,无咯血、盗汗,曾于浙二医院就诊,诊断为“哮喘”,予“信必可” 2吸/日治疗,症状控制良好。1周前患者受凉后再发咳嗽、咳痰,咳嗽 较剧,阵发性,咳少量黄痰,伴发热,体温最高38.5度,气急,夜间发作,患者此次发作伴恶心,无呕吐,腹胀,食欲差,曾于当地卫生院就诊,查血常规示白细胞升高,超敏C反应蛋白329毫克/升,B超提示胆囊壁毛糙,当地医院予“头孢曲松+左氧氟沙星针”抗感染、泮立苏护胃治疗,患者感黄痰转位白痰,但咳嗽、发热等症状无改善,今为进一步诊疗来我院就诊,遂门诊拟”哮喘’收治入院。
- 病来患者神清,精神软,食欲、睡眠差,小便如常,大便1/日,水样便,近半年体重无明显增减。
- </textarea>
- </div>
- </form>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <button type="button" class="btn btn-success pull-right"
- onclick="_ajax('/relation/extraction')"><i
- class="fa fa-credit-card"></i> 开 始 分 析
- </button>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="box box-solid">
- <div class="box-header with-border">
- <i class="fa fa-text-width"></i>
- <h3 class="box-title">结 构 化</h3>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <dl class="dl-horizontal" id="participle_result">
- </dl>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <div class="col-md-12" style="height: 300px;overflow: auto">
- <!-- TABLE: LATEST ORDERS -->
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">症状信息</h3>
- <div class="box-tools pull-right">
- <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
- </button>
- <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
- </div>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="table-responsive">
- <table class="table no-margin">
- <thead>
- <tr>
- <th width="14%">症状</th>
- <th width="14%">时间</th>
- <th width="14%">性质</th>
- <th width="14%">诱因</th>
- <th width="14%">程度</th>
- <th width="14%">部位</th>
- <th width="16%">其他</th>
- </tr>
- </thead>
- <tbody id="symptom_extract_id">
- </tbody>
- </table>
- </div>
- <!-- /.table-responsive -->
- </div>
- </div>
- <!-- /.box -->
- <!-- TABLE: LATEST ORDERS -->
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">体征信息</h3>
- <div class="box-tools pull-right">
- <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
- </button>
- <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
- </div>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="table-responsive">
- <table class="table no-margin">
- <thead>
- <tr>
- <th width="20%">项目名称</th>
- <th width="20%">部位</th>
- <th width="20%">结果信息</th>
- <th width="20%">程度</th>
- <th width="20%">阴性标识</th>
- </tr>
- </thead>
- <tbody id="vital_extract_id">
- </tbody>
- </table>
- </div>
- <!-- /.table-responsive -->
- </div>
- </div>
- <!-- /.box -->
- <!-- TABLE: LATEST ORDERS -->
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">化验信息</h3>
- <div class="box-tools pull-right">
- <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
- </button>
- <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
- </div>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="table-responsive">
- <table class="table no-margin">
- <thead>
- <tr>
- <th width="20%">项目名称</th>
- <th width="20%">结果信息</th>
- <th width="60%">其他</th>
- </tr>
- </thead>
- <tbody id="lis_extract_id">
- </tbody>
- </table>
- </div>
- <!-- /.table-responsive -->
- </div>
- </div>
- <!-- /.box -->
- <!-- TABLE: LATEST ORDERS -->
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">检查信息</h3>
- <div class="box-tools pull-right">
- <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
- </button>
- <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
- </div>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="table-responsive">
- <table class="table no-margin">
- <thead>
- <tr>
- <th width="20%">项目名称</th>
- <th width="20%">结果信息</th>
- <th width="60%">其他</th>
- </tr>
- </thead>
- <tbody id="pacs_extract_id">
- </tbody>
- </table>
- </div>
- <!-- /.table-responsive -->
- </div>
- </div>
- <!-- /.box -->
- <!-- TABLE: LATEST ORDERS -->
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">治疗信息</h3>
- <div class="box-tools pull-right">
- <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
- </button>
- <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
- </div>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <div class="table-responsive">
- <table class="table no-margin">
- <thead>
- <tr>
- <th width="20%">用药</th>
- <th width="20%">结果</th>
- <th width="60%">其他</th>
- </tr>
- </thead>
- <tbody id="treat_extract_id">
- </tbody>
- </table>
- </div>
- <!-- /.table-responsive -->
- </div>
- </div>
- <!-- /.box -->
- </div>
- <!-- ./col -->
- </div>
- <script>
- function _ajax(url) {
- $.support.cors = true;
- $.ajax({
- url: nlp_web_url + '/participle/split_and_highlight',
- data: $("#participle_form").serialize(),
- dataType: "json",
- type: "post",
- success: function (data) {
- $("#participle_result").html(data.data);
- }
- });
- $.ajax({
- url: nlp_web_url + url,
- data: $("#participle_form").serialize(),
- dataType: "json",
- type: "post",
- success: function (data) {
- var outputInfos = data.data;
- var h = "";
- var vital_h = "";
- var lis_h = "";
- var pacs_h = "";
- var treat_h = "";
- $.each(outputInfos, function (index, outputInfo) {
- var symptoms = outputInfo.symptoms;
- if (symptoms != null) {
- $.each(symptoms, function (symptom_index, symptom) {
- h += "<tr><td><strong>";
- if (symptom.negative != null) {
- h += symptom.negative.negaName;
- }
- h += symptom.symptomName + "</strong></td>"
- h += "<td>";
- if (symptom.pd != null) {
- h += symptom.pd.value + symptom.pd.unit;
- }
- h += "</td>";
- h += "<td>";
- if (symptom.property != null) {
- h += symptom.property.propertyName;
- }
- h += "</td>";
- h += "<td>";
- if (symptom.cause != null) {
- h += symptom.cause.causeName;
- }
- h += "</td>";
- h += "<td><span class=\"label label-success\">";
- if (symptom.degree != null) {
- if (symptom.degree.pd != null) {
- h += symptom.degree.degreeName + "(" + symptom.degree.pd.value + symptom.degree.pd.unit + ")";
- } else {
- h += symptom.degree.degreeName;
- }
- }
- h += "</span></td>";
- h += "<td>";
- if (symptom.bodyPart != null) {
- if (symptom.bodyPart.position != null) {
- h += symptom.bodyPart.position.positionName + symptom.bodyPart.partBodyName;
- } else {
- h += symptom.bodyPart.partBodyName;
- }
- }
- h += "</td></tr>";
- });
- }
- var vitals = outputInfo.vitals;
- if (vitals != null) {
- $.each(vitals, function (vital_index, vital) {
- vital_h += "<tr><td>";
- if (vital.vitalName != null) {
- vital_h += vital.vitalName;
- }
- vital_h += "</td>";
- vital_h += "<td>";
- if (vital.bodyPart != null) {
- if (vital.bodyPart.position != null) {
- vital_h += vital.bodyPart.position.positionName + vital.bodyPart.partBodyName;
- } else {
- vital_h += vital.bodyPart.partBodyName;
- }
- }
- vital_h += "</td>";
- vital_h += "<td>";
- if (vital.value != null) {
- vital_h += vital.value;
- }
- if (vital.pd != null) {
- vital_h += vital.pd.value + vital.pd.unit;
- }
- vital_h += "</td>";
- vital_h += "<td>";
- if (vital.degree != null) {
- vital_h += vital.degree.degreeName;
- }
- vital_h += "</td>";
- vital_h += "<td>";
- if (vital.negative != null) {
- vital_h += vital.negative.negaName;
- }
- vital_h += "</td></tr>";
- });
- }
- var lises = outputInfo.lises;
- if (lises != null) {
- $.each(lises, function (lis_index, lis) {
- lis_h += "<tr><td>";
- if (lis.lisName != null) {
- lis_h += lis.lisName;
- }
- lis_h += "</td>";
- lis_h += "<td>";
- if (lis.pd != null) {
- lis_h += lis.pd.value + lis.pd.unit;
- }
- lis_h += "</td>";
- lis_h += "<td>";
- if (lis.value != null) {
- lis_h += lis.value;
- }
- lis_h += "</td><td></td></tr>";
- });
- }
- var pacses = outputInfo.pacses;
- if (pacses != null) {
- $.each(pacses, function (lis_index, pacs) {
- pacs_h += "<tr><td>";
- if (pacs.pacsName != null) {
- pacs_h += pacs.pacsName;
- }
- pacs_h += "</td>";
- pacs_h += "<td>";
- if (pacs.value != null) {
- pacs_h += pacs.value;
- }
- pacs_h += "</td><td></td></tr>";
- });
- }
- var treats = outputInfo.treats;
- if (treats != null) {
- $.each(treats, function (treat_index, treat) {
- treat_h += "<tr><td>";
- if (treat.treatName != null) {
- treat_h += treat.treatName;
- }
- treat_h += "</td>";
- treat_h += "<td>";
- if (treat.value != null) {
- treat_h += treat.value;
- }
- treat_h += "</td><td></td></tr>";
- });
- }
- });
- $("#symptom_extract_id").html(h);
- $("#vital_extract_id").html(vital_h);
- $("#lis_extract_id").html(lis_h);
- $("#pacs_extract_id").html(pacs_h);
- $("#treat_extract_id").html(treat_h);
- }
- });
- };
- </script>
- </section>
- <!-- /.content -->
- <div class="clearfix"></div>
- </div>
- <!-- /.control-sidebar -->
- <!-- Add the sidebar's background. This div must be placed
- immediately after the control sidebar -->
- <div class="control-sidebar-bg"></div>
- </div>
- <!-- ./wrapper -->
- <!-- 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>
- <!-- 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>
- </body>
- </html>
|