ソースを参照

发药增加历史处方查询

hsh 1 年間 前
コミット
a40bfeb25f

+ 8 - 0
src/main/resources/static/js/dependent/custom-from-min.js

@@ -1050,6 +1050,14 @@ function init_daterangepicker() {
     initDaterangepickerWithId('reportrange',"left");
 }
 
+/**
+ * 新日期改变事件
+ * @param id 时间控件id
+ * @param callback 回调函数
+ */
+function daterangepickerNew(id, location) {
+    initDaterangepickerWithId(id, location);
+}
 
 /**
  * 根据id构造日期选择器

+ 321 - 1
src/main/resources/static/js/mz/west_pharmacy_send.js

@@ -5,7 +5,7 @@ var bqPrintIndex = window.localStorage["bqPrintIndex"];
 var fskPrintIndex = window.localStorage["fskPrintIndex"];
 var winNo = window.localStorage["winNo"];
 var groupNo = window.localStorage["groupNo"];
-
+let coreId // 病人id
 $(function () {
     init_daterangepicker();
     $(".selectpicker").selectpicker({
@@ -34,6 +34,13 @@ $(function () {
         cleanParams();
     });
 
+    $('#btn_clean_history').click(function () {
+        $('#reportRangeList span').html(moment().subtract(30, 'days').format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
+    });
+    $("#btn_query_history").click(function (t) {
+        callHistoryDetail();
+    });
+
     $("#btn_query").click(function (t) {
         initTbTable();
     });
@@ -357,6 +364,7 @@ function initTbTable(pageIndex) {
                             str += '<button type="button" class="registration-no-color-foot-button" title="发药" id="sendDrug" onclick="sendMedicineProcessing(\'' + row.realNo + '\',\'' + row.orderNo + '\',\'' + row.receiptNo + '\',\'' + row.times + '\',\'' + row.patientId + '\',\'' + row.name + '\')"><i class="fa fa-check-square-o"></i></button>';
                         }
                         str += '<button type="button" class="registration-no-color-foot-button" title="详细" onclick="prescriptionDetail(\'' + row.realNo + '\',\'' + row.orderNo + '\',\'' + row.receiptNo + '\',\'' + row.times + '\',\'' + row.patientId + '\',\'' + row.confirmFlag + '\')"><i class="fa fa-plus"></i></button>';
+                        str += '<button type="button" class="registration-no-color-foot-button" title="历史处方" onclick="prescriptionHistoryDetail(\'' + row.patientId + '\',\'' + 0 +'\')"><i class="fa fa-eye"></i></button>';
                     }
                     return str;
                 }
@@ -1721,5 +1729,317 @@ function callAllergenInfo(allergenList){
     });
 }
 
+function callHistoryDetail() {
+    if(coreId){
+        prescriptionHistoryDetail(coreId, '1');
+    }
+}
+
+// 查看历史处方
+let $historyTable
+function prescriptionHistoryDetail(patientId, type){
+    coreId = patientId
+    if(type === '0'){
+        daterangepickerNew('reportRangeList', 'center');
+        initSelectHistory();
+    }
+    let rePortRangeArr = getRePortRangeArr1();
+    let temp = {   //这里的键的名字和控制器的变量名必须一直,这边改动,控制器也需要改成一样的
+        patientId: patientId,
+        beginTime: rePortRangeArr[0],
+        endTime: rePortRangeArr[1],
+        // pageSize: params.limit,   //页面大小
+        // pageIndex: params.offset / params.limit,  //页码
+    };
+    $('#tb_table_history').bootstrapTable("destroy");
+    $historyTable = $('#tb_table_history').bootstrapTable({
+        url: '/thmz/getMzBlRecordList',         //请求后台的URL(*)
+        method: 'post',                      //请求方式(*)
+        toolbar: '#toolbar',                //工具按钮用哪个容器
+        striped: true,                      //是否显示行间隔色
+        cache: false,                       //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+        pagination: true,                   //是否显示分页(*)
+        sortable: true,                     //是否启用排序
+        sortOrder: "desc",                   //排序方式
+        queryParams: temp,           //传递参数(*)
+        sidePagination: "server",           //分页方式:client客户端分页,server服务端分页(*)
+        pageNumber: 1,                       //初始化加载第一页,默认第一页
+        pageSize: 5,                       //每页的记录行数(*)
+        pageList: [10, 15, 25, 50, 100],        //可供选择的每页的行数(*)
+        search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+        strictSearch: true,
+        showColumns: false,                  //是否显示所有的列
+        showRefresh: false,                  //是否显示刷新按钮
+        minimumCountColumns: 2,             //最少允许的列数
+        clickToSelect: true,                //是否启用点击选中行
+        uniqueId: "ID",                     //每一行的唯一标识,一般为主键列
+        showToggle: false,                    //是否显示详细视图和列表视图的切换按钮
+        cardView: false,                    //是否显示详细视图
+        detailView: false,
+        //rowStyle:rowStyle,//通过自定义函数设置行样式
+        ajaxOptions: {
+            headers: {
+                'Accept': 'application/json',
+                'Authorization': 'Bearer ' + localStorage.getItem("token")
+            }
+        },
+        columns: [
+            {
+                title: '操作',
+                field: 'op',
+                align: "center",
+                valign: 'middle',
+                formatter: function (value, row, index) {
+                    var str = '<button type="button" class="btn btn-primary  btn-sm" onclick="showMzBlRecordModal(\'' + row.patientId + '\',' + row.times + ',3)">查看</button>';
+                    return [str].join('');
+                }
+            },
+            {
+                field: 'patientId',
+                title: '门诊ID',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'patientName',
+                title: '患者姓名',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'deptCode',
+                title: '就诊科室',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'doctorCode',
+                title: '接诊医师',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'firstOrNot',
+                title: '初/复诊',
+                align: "center",
+                valign: 'middle',
+                formatter: function (value, row, index) {
+                    if (value == '1') {
+                        return "复诊";
+                    }
+                    return "初诊";
+                }
+            }
+            , {
+                field: 'visitDate',
+                title: '就诊时间',
+                align: "center",
+                valign: 'middle',
+                formatter: function (value, row, index) {
+                    if (value == null || value == "") {
+                        return "";
+                    }
+                    return format(value, "yyyy-MM-dd HH:mm:ss");
+                }
+            }
+        ],
+        responseHandler: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            var ress = eval(res);
+            if (ress.code == -1) {
+                if (ress.message != null && ress.message != '') {
+                    errorMesage(ress);
+                }
+                return {
+                    "total": 0,//总页数
+                    "rows": {}   //数据
+                };
+            }
+            return {
+                "total": ress.total,//总页数
+                "rows": ress.data   //数据
+            };
+        },
+    });
+    $("#historyModal").modal();
+}
+
+function showMzBlRecordModal(patientId, times, type) {
+    $.ajax({
+        type: "GET",
+        url: '/thmz/getMzBlrecord?patientId=' + patientId + '&times=' + times,
+        contentType: "application/json;charset=UTF-8",
+        dataType: "json",
+        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        success: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            if (res.code == 0) {
+                var mzPatientMi = res.mzPatientMi;
+                $("#editPatientId").text(mzPatientMi.patientId);
+                $("#editPatientName").text(mzPatientMi.name);
+                $("#editPatientGender").text(mzPatientMi.gender);
+                $("#editPatientAge").text(mzPatientMi.ageString);
+                var mzBlRecord = res.mzBlRecord;
+                $("#editEmrChiefComplaint").val(mzBlRecord.emrChiefComplaint == null ? "" : mzBlRecord.emrChiefComplaint);
+                $("#editEmrHpi").val(mzBlRecord.emrHpi == null ? "" : mzBlRecord.emrHpi);
+                $("#editEmrPs").val(mzBlRecord.emrPs == null ? "" : mzBlRecord.emrPs);
+                $("#editPersonalHistory").val(mzBlRecord.personalHistory == null ? "" : mzBlRecord.personalHistory);
+                $("#editFamilyHistory").val(mzBlRecord.familyHistory == null ? "" : mzBlRecord.familyHistory);
+                $("#editObstericalHistory").val(mzBlRecord.obstericalHistory == null ? "" : mzBlRecord.obstericalHistory);
+                $("#editQtjc").val(mzBlRecord.emrPe == null ? "" : mzBlRecord.emrPe);
+                setSelectedAttr("editZd", mzBlRecord.icdCode, mzBlRecord.icdText);
+                var patientAllergenInfoList = res.patientAllergenInfoList;
+                if (patientAllergenInfoList != null && patientAllergenInfoList.length > 0) {
+                    var zdAllergen = [];
+                    var ypDitList = [];
+                    var zdAllergenHtml = '';
+                    var ypDitListHtml = '';
+                    var zdAllergeCodes = null;
+                    var zdAllergeTexts = null;
+                    var ypDitListodes = null;
+                    var ypDitListTexts = null;
+                    for (var i = 0; i < patientAllergenInfoList.length; i++) {
+                        var patientAllergenInfo = patientAllergenInfoList[i];
+                        if (patientAllergenInfo.type == 0 || patientAllergenInfo.type == '0') {
+                            zdAllergen[zdAllergen.length] = patientAllergenInfo.allergenCode;
+                            zdAllergenHtml += '<option value="' + patientAllergenInfo.allergenCode + '">' + patientAllergenInfo.allergenName + '</option>';
+                            if (zdAllergeCodes == null) {
+                                zdAllergeCodes = patientAllergenInfo.allergenCode;
+                                zdAllergeTexts = patientAllergenInfo.allergenName;
+                            } else {
+                                zdAllergeCodes += "," + patientAllergenInfo.allergenCode;
+                                zdAllergeTexts += "," + patientAllergenInfo.allergenName;
+                            }
+                        } else if (patientAllergenInfo.type == 1 || patientAllergenInfo.type == '1') {
+                            ypDitList[ypDitList.length] = patientAllergenInfo.allergenCode;
+                            ypDitListHtml += '<option value="' + patientAllergenInfo.allergenCode + '">' + patientAllergenInfo.allergenName + '</option>';
+                            if (zdAllergeCodes == null) {
+                                ypDitListodes = patientAllergenInfo.allergenCode;
+                                ypDitListTexts = patientAllergenInfo.allergenName;
+                            } else {
+                                ypDitListodes += "," + patientAllergenInfo.allergenCode;
+                                ypDitListTexts += "," + patientAllergenInfo.allergenName;
+                            }
+                        }
+                    }
+                    $("#editZdAllergen").empty();
+                    $('#editZdAllergen').append(zdAllergenHtml);
+                    $('#editZdAllergen').selectpicker('refresh');
+                    $("#editYpDitList").empty();
+                    $('#editYpDitList').append(ypDitListHtml);
+                    $('#editYpDitList').selectpicker('refresh');
+                    $("#editZdAllergen").selectpicker('val', zdAllergen);
+                    $("#editZdAllergen").selectpicker('refresh');
+                    $("#editYpDitList").selectpicker('val', ypDitList);
+                    $("#editYpDitList").selectpicker('refresh');
+                    $("#editZdAllergen").attr("selectedCodes", zdAllergeCodes);
+                    $("#editZdAllergen").attr("selectedTexts", zdAllergeTexts);
+                    $("#editYpDitList").attr("selectedCodes", ypDitListodes);
+                    $("#editYpDitList").attr("selectedTexts", ypDitListTexts);
+                }
+                var tentativeDiagnosis = mzBlRecord.tentativeDiagnosis == null ? "" : mzBlRecord.tentativeDiagnosis;
+                if ((mzBlRecord.icdCode == null || mzBlRecord.icdCode == "") && mzBlRecord.icdText != null && mzBlRecord.icdText != "") {
+                    if (tentativeDiagnosis == null || tentativeDiagnosis == "") {
+                        tentativeDiagnosis = mzBlRecord.icdText;
+                    } else {
+                        tentativeDiagnosis = mzBlRecord.icdText + " " + tentativeDiagnosis;
+                    }
+                }
+                $("#edittentativeDiagnosis").val(tentativeDiagnosis);
+                $("#editEmrJkjy").val(mzBlRecord.emrJkjy == null ? "" : mzBlRecord.emrJkjy);
+                $("#bl_weight").val(mzBlRecord.weight == 0 ? null : mzBlRecord.weight);
+                $("#bl_temperature").val(mzBlRecord.temperature == 0 ? null : mzBlRecord.temperature);
+                $("#bl_sphygmus").val(mzBlRecord.sphygmus == 0 ? null : mzBlRecord.sphygmus);
+                $("#bl_breathe").val(mzBlRecord.breathe == 0 ? null : mzBlRecord.breathe);
+                $("#bl_pressure_high").val(mzBlRecord.pressureHigh == 0 ? null : mzBlRecord.pressureHigh);
+                $("#bl_pressure_floor").val(mzBlRecord.pressureFloor == 0 ? null : mzBlRecord.pressureFloor);
+                $("#bl_pressure_high_left").val(mzBlRecord.pressureHighLeft == 0 ? null : mzBlRecord.pressureHighLeft);
+                $("#bl_pressure_floor_left").val(mzBlRecord.pressureFloorLeft == 0 ? null : mzBlRecord.pressureFloorLeft);
+                if (mzBlRecord.emrProcess != null && mzBlRecord.emrProcess != "") {
+                    var reg = new RegExp("</br>", "g");//g,表示全部替换。
+                    var editEmrProcess = mzBlRecord.emrProcess.replace(reg, "\n");
+                    reg = new RegExp("&nbsp;", "g");//g,表示全部替换。
+                    editEmrProcess = editEmrProcess.replace(reg, "");
+                    $("#editEmrProcess").val(editEmrProcess);
+                } else {
+                    $("#editEmrProcess").val("");
+                }
+                if (type == 1) {
+                    $("#mzBlRecorTitle").html("门诊病历【编辑】");
+                    $("#setOtherEmrProcess").removeClass("in").addClass("hide");
+                    $("#openBlRecordModel").removeClass("hide").addClass("in");
+                    $("#setEmrProcess").removeClass("hide").addClass("in");
+                    $("#visitingDetailModal").modal("hide");
+                } else if (type == 2 || type == 3) {
+                    $("#mzBlRecorTitle").html("门诊病历【查询】");
+                    if(type==2){
+                        $("#setOtherEmrProcess").removeClass("hide").addClass("in");
+                    }else {
+                        $("#setOtherEmrProcess").removeClass("in").addClass("hide");
+                    }
+                    $("#openBlRecordModel").removeClass("in").addClass("hide");
+                    $("#setEmrProcess").removeClass("in").addClass("hide");
+                    //因为预览的时候,关闭预览框没有清空数据,且 此时基础数据的病历次数被清空
+                    if ($("#mzBlTimes").val() != null && $("#mzBlTimes").val() != "" && ($("#baseMzBlTimes").val() == null || $("#baseMzBlTimes").val() == "")) {
+                        $("#baseMzBlTimes").val($("#mzBlTimes").val());
+                    }
+                    $("#otherBlRecordModal").modal("hide");
+                }
+                $("#mzBlTimes").val(mzBlRecord.times);
+                $("#editMzBlRecordModal").modal();
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+}
+
+function getRePortRangeArr1() {
+    var rePortRange = $('#reportRangeList span').html();
+    var rePortRangeArr = rePortRange.split(" - ");
+    rePortRangeArr[0] = rePortRangeArr[0] + " 00:00:00"
+    rePortRangeArr[1] = rePortRangeArr[1] + " 23:59:59"
+    return rePortRangeArr;
+}
 
+/**
+ * 清空区域
+ */
+function clearInput() {
+    $("#editPatientId").text(null);
+    $("#editPatientName").text(null);
+    $("#editPatientGender").text(null);
+    $("#editPatientAge").text(null);
+    $("#editEmrChiefComplaint").val(null);
+    $("#editEmrHpi").val(null);
+    $("#editEmrPs").val(null);
+    $("#editPersonalHistory").val(null);
+    $("#editFamilyHistory").val(null);
+    $("#editObstericalHistory").val(null);
+    $("#bl_weight").val(null);
+    $("#bl_sphygmus").val(null);
+    $("#bl_breathe").val(null);
+    $("#bl_pressure_high").val(null);
+    $("#bl_pressure_floor").val(null);
+    $("#bl_pressure_high_left").val(null);
+    $("#bl_pressure_floor_left").val(null);
+    $("#editQtjc").val(null);
+    $("#editZd").selectpicker('val', null);
+    $("#editZd").selectpicker('refresh');
+    $("#edittentativeDiagnosis").val(null);
+    $("#editEmrProcess").val(null);
+    $("#editEmrJkjy").val(null);
+    $("#mzBlTimes").val(null);
+}
 
+function initSelectHistory() {
+    $('#reportRangeList span').html(moment().subtract(30, 'days').format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
+    //select 从后台加载数据,并保留之前选择的内容
+    dynamicSelectWithOri("editZd", '/thmz/getAllZdIcdCommonParams?commonParams=',false);
+    //过敏源
+    dynamicSelectWithOri("editZdAllergen", '/thmz/getZdAllergenListByCode?code=', false);
+    //药品列表
+    dynamicSelectWithOri("editYpDitList", '/thmz/getYpZdDictListByCode?code=', false);
+}

+ 289 - 0
src/main/resources/templates/mz/west_pharmacy_send.html

@@ -6,6 +6,11 @@
 <script src="/thmz/js/dependent/daterangepicker.js"></script>
 <script src="/thmz/js/common/pharmacy-com.js"></script>
 <script src="/thmz/js/common/socket-com.js"></script>
+<script src="/thmz/js/common/map-util.js"></script>
+<script src="/thmz/js/common/select-util.js"></script>
+<script src="/thmz/js/common/string-util.js"></script>
+<script src="/thmz/js/common/date-util.js"></script>
+<script src="/thmz/js/common/debounce.js"></script>
 <script src="/thmz/js/mz/west_pharmacy_send.js"></script>
 <script src="/thmz/js/dependent/LodopFuncs.js"></script>
 <title>门诊药房发退药</title>
@@ -555,6 +560,290 @@
 </div>
 <!--中药标签打印弹窗结尾-->
 
+<!--处方历史详细弹窗开始-->
+<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="historyModal">
+    <div class="modal-dialog modal-sm">
+        <div class="modal-content" style="width: 1300px;margin-left: -450px;">
+            <div class="modal-header">
+                <h4 class="modal-title modal-title-thmz">处方历史详细</h4>
+            </div>
+            <div class="modal-body">
+                <div class="row">
+                    <div class="col-md-12 col-sm-12 col-xs-12">
+                        <form id="dataForm" class="form-horizontal" autocomplete="off">
+                            <div class="form-group">
+                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="reportRangeList" style="width: 125px;">
+                                    就诊时间
+                                </label>
+                                <div class="col-md-4 col-sm-4 col-xs-12" style="width: 320px;">
+                                    <div id="reportRangeList" class="pull-left"
+                                         style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc;">
+                                        <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
+                                        <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
+                                    </div>
+                                </div>
+                                <button type="button" style="margin-left:5px;width: 4%;" id="btn_query_history" class="btn btn-primary"
+                                        title="查询"><i class="fa fa-search"></i>
+                                </button>
+                                <button type="button" style="margin-left:5px;width: 4%;" id="btn_clean_history" class="btn btn-primary"
+                                        title="重置"><i class="fa fa-rotate-left"></i>
+                                </button>
+                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
+                            </div>
+                        </form>
+                        <table id="tb_table_history"
+                               style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"></table>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--处方历史详细弹窗结尾-->
+
+<!--病历编辑弹窗开始-->
+<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editMzBlRecordModal">
+    <div class="modal-dialog modal-lg">
+        <div class="modal-content" style="width: 780px;max-height: 700px;overflow-y: auto;">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" onclick="clearInput()"><span
+                        aria-hidden="true">×</span>
+                </button>
+                <h4 class="modal-title modal-title-thmz" id="mzBlRecorTitle">门诊病历【编辑】</h4>
+            </div>
+            <div class="modal-body">
+                <form class="form-horizontal form-label-left" novalidate autocomplete="off">
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-3 col-sm-3 col-xs-12 item">
+                            <span>门诊Id:<span id="editPatientId"></span></span>
+                        </div>
+                        <div class="col-md-3 col-sm-3 col-xs-12 item">
+                            <span>姓名:<span id="editPatientName"></span></span>
+                        </div>
+                        <div class="col-md-3 col-sm-3 col-xs-12 item">
+                            <span>性别:<span id="editPatientGender"></span></span>
+                        </div>
+                        <div class="col-md-3 col-sm-3 col-xs-12 item">
+                            <span>年龄:<span id="editPatientAge"></span></span>
+                        </div>
+                    </div>
+
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editEmrChiefComplaint">主诉
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editEmrChiefComplaint" class="form-control col-md-7 col-xs-12"
+                                          type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editEmrHpi">现病史
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editEmrHpi" class="form-control col-md-7 col-xs-12"
+                                          type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editEmrPs">既往史
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editEmrPs" class="form-control col-md-7 col-xs-12" type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editPersonalHistory">个人史
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editPersonalHistory" class="form-control col-md-7 col-xs-12"
+                                          type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editFamilyHistory">家族史
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editFamilyHistory" class="form-control col-md-7 col-xs-12"
+                                          type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editObstericalHistory">婚育史
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editObstericalHistory" class="form-control col-md-7 col-xs-12"
+                                          type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12">一般项目:</label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <div style="float: left;">
+                                    体重<input id="bl_weight" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>kg&nbsp;&nbsp;
+                                    体温<input id="bl_temperature" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>℃&nbsp;&nbsp;
+                                    脉搏<input id="bl_sphygmus" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;
+                                    呼吸<input id="bl_breathe" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;</br>
+                                    血压<input id="bl_pressure_high" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>&nbsp;/
+                                    <input id="bl_pressure_floor" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>mmhg
+                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;血压(左)<input id="bl_pressure_high_left" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>&nbsp;/
+                                    <input id="bl_pressure_floor_left" disabled type="number" style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>mmhg
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editZdAllergen">过敏源
+                            </label>
+                            <div class="col-md-4 col-sm-4 col-xs-12">
+                                <select class="form-control selectpicker show-tick"
+                                        title="常规过敏源" data-live-search="true"  multiple
+                                        id="editZdAllergen">
+                                </select>
+                            </div>
+                            <div class="col-md-4 col-sm-4 col-xs-12">
+                                <select class="form-control selectpicker show-tick"
+                                        title="本院药品过敏源" data-live-search="true" multiple
+                                        id="editYpDitList">
+                                </select>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editQtjc">体格检查
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editQtjc" class="form-control col-md-7 col-xs-12" type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editZd">诊断
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <select class="form-control selectpicker show-tick" multiple data-live-search="true"
+                                        id="editZd" title="请选择" disabled>
+                                </select>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="edittentativeDiagnosis">初步诊断
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="edittentativeDiagnosis" class="form-control col-md-7 col-xs-12" type="text" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editEmrProcess">处理(RP.)
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editEmrProcess" class="form-control col-md-7 col-xs-12"
+                                          style="min-height: 250px;" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <div class="col-md-12 col-sm-12 col-xs-12 item">
+                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="editEmrJkjy">健康教育
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="editEmrJkjy" class="form-control col-md-7 col-xs-12"
+                                          style="min-height: 80px;" disabled></textarea>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <!--本次病历的就诊次数-->
+                <input id="mzBlTimes" type="hidden"/>
+                <!-- 合并处方的基础就诊次数-->
+                <input id="baseMzBlTimes" type="hidden"/>
+                <button type="button" class="btn btn-primary hide" onclick="setOtherEmrProcess()"
+                        id="setOtherEmrProcess">提取处理意见
+                </button>
+                <button type="button" class="btn btn-primary" onclick="openBlRecordModel()" id="openBlRecordModel">
+                    合并病历列表
+                </button>
+                <button type="button" class="btn btn-primary" onclick="setEmrProcess()" id="setEmrProcess">保存</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearInput()">取消</button>
+            </div>
+        </div>
+    </div>
+</div>
+<!--病历编辑弹窗结尾-->
+
+<!--提示弹窗开始-->
+<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="messageModal"
+     style="top:20%;">
+    <div class="modal-dialog modal-sm">
+        <div class="modal-content" style="width: 480px;max-height: 550px;overflow-y: auto;">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
+                </button>
+                <h4 class="modal-title modal-title-thmz">提示</h4>
+            </div>
+            <div class="modal-body">
+                <form class="form-horizontal form-label-left" novalidate>
+                    <div class="col-md-2 col-sm-2 col-xs-12">
+                        <i class="fa fa-info-circle blue fa-3x"></i>
+                    </div>
+                    <div class="col-md-10 col-sm-10 col-xs-12"
+                         style="font-size: 14px;font-weight: 700;min-height: 39px;line-height: 39px;" id="messageContent">
+                        当前有病人正在接诊,是否切换?
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-primary" id="messageButton">确定</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
+            </div>
+        </div>
+    </div>
+</div>
+<!--提示弹窗结尾-->
+
+
+<!--待合并病历列表弹框开始-->
+<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="otherBlRecordModal">
+    <div class="modal-dialog modal-lg">
+        <div class="modal-content" style="width: 980px;max-height: 550px;overflow-y: auto;">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
+                </button>
+                <h4 class="modal-title modal-title-thmz">待合并病历列表</h4>
+            </div>
+            <div class="modal-body">
+                <form class="form-horizontal form-label-left" novalidate>
+                    <table id="other_bl_record_table" style="margin-top: 10px;"></table>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
+            </div>
+        </div>
+    </div>
+</div>
+<!--待合并病历列表请弹框结尾-->
 
 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
     <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>