فهرست منبع

门诊病历查看接口开发

hurugang 3 سال پیش
والد
کامیت
757e650f03

+ 53 - 0
src/main/java/cn/hnthyy/thmz/controller/mz/MzBlRecordController.java

@@ -197,4 +197,57 @@ public class MzBlRecordController {
     }
 
 
+
+    /**
+     * 修改门诊病历的处理意见
+     *
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/setEmrProcess", method = {RequestMethod.POST})
+    public Map<String, Object> setEmrProcess(@RequestBody MzBlRecord mzBlRecord) {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            if (mzBlRecord == null) {
+                resultMap.put("code", -1);
+                resultMap.put("message", "修改门诊病历的处理意见失败,参数为空");
+                return resultMap;
+            }
+            if (StringUtils.isBlank(mzBlRecord.getPatientId())) {
+                resultMap.put("code", -1);
+                resultMap.put("message", "修改门诊病历的处理意见失败,门诊ID为空");
+                return resultMap;
+            }
+            if (mzBlRecord.getTimes() == null) {
+                resultMap.put("code", -1);
+                resultMap.put("message", "修改门诊病历的处理意见失败,就诊次数为空");
+                return resultMap;
+            }
+            if(mzBlRecord.getEmrProcess()==null || StringUtils.isBlank(mzBlRecord.getEmrProcess())){
+                resultMap.put("code", -1);
+                resultMap.put("message", "修改门诊病历的处理意见失败,补充处理意见为空");
+                return resultMap;
+            }
+            MzBlRecord dbMzBlRecord= mzBlRecordService.queryMzBlRecordByPatientIdAndTimes(mzBlRecord.getPatientId(),mzBlRecord.getTimes());
+            if(dbMzBlRecord==null){
+                resultMap.put("code", -1);
+                resultMap.put("message", "修改门诊病历的处理意见失败,病历不存在");
+                return resultMap;
+            }
+            dbMzBlRecord.setEmrProcess(dbMzBlRecord.getEmrProcess()+"_补充处理:"+mzBlRecord.getEmrProcess());
+            mzBlRecordService.modifyMzBlRecordEmrProcess(dbMzBlRecord);
+            resultMap.put("code", 0);
+            resultMap.put("message", "修改门诊病历的处理意见成功");
+            return resultMap;
+        } catch (Exception e) {
+            e.printStackTrace();
+            log.error("修改门诊病历的处理意见失败,错误信息{}", e);
+            resultMap.put("code", -1);
+            resultMap.put("message", "修改门诊病历的处理意见失败");
+            return resultMap;
+        }
+    }
+
+
+
 }

+ 8 - 5
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzBlRecordMapper.java

@@ -1,10 +1,7 @@
 package cn.hnthyy.thmz.mapper.his.mz;
 
 import cn.hnthyy.thmz.entity.his.mz.MzBlRecord;
-import org.apache.ibatis.annotations.Delete;
-import org.apache.ibatis.annotations.Insert;
-import org.apache.ibatis.annotations.Param;
-import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.*;
 
 import java.util.List;
 import java.util.Map;
@@ -144,7 +141,13 @@ public interface MzBlRecordMapper {
     List<MzBlRecord> selectMzBlRecordWithPage(MzBlRecord mzBlRecord);
 
 
-
+    /**
+     * 修改处理意见
+     * @param mzBlRecord
+     * @return
+     */
+    @Update("update mz_bl_record set emr_process =#{emrProcess} where patient_id=#{patientId} and times = #{times}")
+    int updateMzBlRecordEmrProcess(MzBlRecord mzBlRecord);
 
 
 

+ 7 - 0
src/main/java/cn/hnthyy/thmz/service/his/mz/MzBlRecordService.java

@@ -8,6 +8,7 @@ import java.util.List;
  * 病历数据库操作接口
  */
 public interface MzBlRecordService {
+
     /**
      * 根本病人id 和就诊次数查询病历
      * @param patientId
@@ -34,5 +35,11 @@ public interface MzBlRecordService {
      */
     List<MzBlRecord> queryMzBlRecordWithPage(MzBlRecord mzBlRecord);
 
+    /**
+     * 修改处理意见
+     * @param mzBlRecord
+     * @return
+     */
+    int modifyMzBlRecordEmrProcess(MzBlRecord mzBlRecord);
 }
 

+ 5 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzBlRecordServiceImpl.java

@@ -27,4 +27,9 @@ public class MzBlRecordServiceImpl implements MzBlRecordService {
     public List<MzBlRecord> queryMzBlRecordWithPage(MzBlRecord mzBlRecord) {
         return mzBlRecordMapper.selectMzBlRecordWithPage(mzBlRecord);
     }
+
+    @Override
+    public int modifyMzBlRecordEmrProcess(MzBlRecord mzBlRecord) {
+        return mzBlRecordMapper.updateMzBlRecordEmrProcess(mzBlRecord);
+    }
 }

+ 389 - 2
src/main/resources/static/js/mz/mz_bl_record.js

@@ -1,4 +1,7 @@
 //@ sourceURL=mz_bl_record.js
+var LODOP; //声明为全局变量
+//默认打印机下标
+var printIndex = -1;
 $(function () {
     daterangepicker(initMzBlRecordList);
     initSelect();
@@ -128,8 +131,8 @@ function initMzBlRecordList() {
                 align: "center",
                 valign: 'middle',
                 formatter: function (value, row, index) {
-                    var str = '<button type="button" class="btn btn-primary  btn-sm" onclick="updateZdChargeItem(\'' + row.code + '\')">编辑<i class="fa fa-edit" style="margin-left: 10px;"></i></button>';
-                    str += '<button type="button" class="btn btn-primary  btn-sm" onclick="updateZdChargeItem(\'' + row.code + '\')">打印<i class="fa fa-print" style="margin-left: 10px;"></i></button>';
+                    var str = '<button type="button" class="btn btn-primary  btn-sm" onclick="showMzBlRecordModal(\'' + row.patientId + '\','+row.times+')">编辑<i class="fa fa-edit" style="margin-left: 10px;"></i></button>';
+                    str += '<button type="button" class="btn btn-primary  btn-sm" onclick="printBlRecord(\'' + row.patientId + '\','+row.times+')">打印<i class="fa fa-print" style="margin-left: 10px;"></i></button>';
                     return [str].join('');
                 }
             },
@@ -239,3 +242,387 @@ function initSelect() {
     initDeptSelect();
 }
 
+
+
+/**
+ * 查询默认打印机
+ */
+function setPrint() {
+    if (printIndex >= 0) {
+        return;
+    }
+    $.ajax({
+        type: "GET",
+        url: '/thmz/getLastWindowsByCurrentUser',
+        contentType: "application/json;charset=UTF-8",
+        dataType: "json",
+        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        async: false,
+        success: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            if (res.code == 0) {
+                printIndex = res.data.cgPrintIndex;
+            } else {
+                printIndex = -1;
+            }
+        }
+    });
+}
+
+/**
+ * 打印门诊病历
+ * @param patientId
+ * @param times
+ * @param clnicId
+ * @param payMark
+ */
+function printBlRecord(patientId, times) {
+    $.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) {
+                setPrint();
+                LODOP = getLodop();
+                LODOP.PRINT_INITA(6, 0, "148mm", "210mm", "湖南泰和医院门诊病历");
+                LODOP.SET_PRINT_STYLE("FontSize", 9); //字体大小
+                //设置默认打印机
+                LODOP.SET_PRINTER_INDEX(printIndex);
+                LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "148mm");
+                LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
+                LODOP.SET_PRINT_PAGESIZE(1, "148mm", "210mm", "CreateCustomPage");
+                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊病历");//对新建的纸张重命名
+                //intDispMode:预览比例,数字型,0-适高  1-正常大小  2-适宽
+                //intToolMode:工具条和按钮,数字型  0-显示(上方)工具栏   1-显示(下方)按钮栏    2-两个都显示   3-两个都不显示
+                //blDirectPrint: 打印按钮是否“直接打印” 1-是  0-否(弹出界面“选机打印”)
+                //intWidth,intHeight 窗口的宽和高,整数型,单位是px
+                //strTitleButtonCaptoin 预览窗口和打印按钮的名称组合,字符型,用“点”分隔
+                //LODOP.SET_PREVIEW_WINDOW(intDispMode,intToolMode,blDirectPrint,intWidth,intHeight,strTitleButtonCaptoin)
+                LODOP.SET_PREVIEW_WINDOW(0, 2, 0, 700, 900, "");
+                //LODOP.SET_PRINT_STYLE("FontSize", 8); //字体大小
+                var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
+                var mzPatientMi = res.mzPatientMi;
+                $("#patientIdBlrecord").text(mzPatientMi.patientId);
+                $("#patientNameBlrecord").text(mzPatientMi.name);
+                $("#patientGenderBlrecord").text(mzPatientMi.gender);
+                $("#patientAgeBlrecord").text(mzPatientMi.age + "岁");
+                var mzBlRecord = res.mzBlRecord;
+                if (mzBlRecord.firstOrNot == "1") {
+                    $("#firstOrNotTitle").text("复诊");
+                } else {
+                    $("#firstOrNotTitle").text("初诊");
+                }
+                if (mzBlRecord.emrChiefComplaint != null && mzBlRecord.emrChiefComplaint != "") {
+                    $("#emrChiefComplaintBlrecord").text(mzBlRecord.emrChiefComplaint);
+                    $("#emrChiefComplaintBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrChiefComplaintBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.emrHpi != null && mzBlRecord.emrHpi != "") {
+                    $("#emrHpiBlrecord").text(mzBlRecord.emrHpi);
+                    $("#emrHpiBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrHpiBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.emrPs != null && mzBlRecord.emrPs != "") {
+                    $("#emrPsBlrecord").text(mzBlRecord.emrPs);
+                    $("#emrPsBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrPsBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.personalHistory != null && mzBlRecord.personalHistory != "") {
+                    $("#personalHistoryBlrecord").text(mzBlRecord.personalHistory);
+                    $("#personalHistoryBlrecord").parent().css("display", "block");
+                } else {
+                    $("#personalHistoryBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.familyHistory != null && mzBlRecord.familyHistory != "") {
+                    $("#familyHistoryBlrecord").text(mzBlRecord.familyHistory);
+                    $("#familyHistoryBlrecord").parent().css("display", "block");
+                } else {
+                    $("#familyHistoryBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.obstericalHistory != null && mzBlRecord.obstericalHistory != "") {
+                    $("#obstericalHistoryBlrecord").text(mzBlRecord.obstericalHistory);
+                    $("#obstericalHistoryBlrecord").parent().css("display", "block");
+                } else {
+                    $("#obstericalHistoryBlrecord").parent().css("display", "none");
+                }
+                var tz = getTz(mzBlRecord);
+                if (tz != null && tz != "") {
+                    $("#tzjcBlrecord").text(tz);
+                    $("#tzjcBlrecord").parent().css("display", "block");
+                } else {
+                    $("#tzjcBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.emrPe != null && mzBlRecord.emrPe != "") {
+                    $("#emrPeBlrecord").text(mzBlRecord.emrPe);
+                    $("#emrPeBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrPeBlrecord").parent().css("display", "none");
+                }
+                if (res.icdText != null && res.icdText != "") {
+                    $("#icdTextBlrecord").text(res.icdText);
+                    $("#icdTextBlrecord").parent().css("display", "block");
+                } else {
+                    $("#icdTextBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.emrProcess != null && mzBlRecord.emrProcess != "") {
+                    $("#emrProcessBlrecord").html(mzBlRecord.emrProcess);
+                    $("#emrProcessBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrProcessBlrecord").parent().css("display", "none");
+                }
+                if (mzBlRecord.emrJkjy != null && mzBlRecord.emrJkjy != "") {
+                    $("#emrJkjyBlrecord").text(mzBlRecord.emrJkjy);
+                    $("#emrJkjyBlrecord").parent().css("display", "block");
+                } else {
+                    $("#emrJkjyBlrecord").parent().css("display", "none");
+                }
+                $("#visitDeptBlrecord").text(res.deptName);
+                $("#visitDoctorBlrecord").text(res.doctorName);
+                $("#visitDateBlrecord").text(res.visitDate);
+                LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("mz_blrecord_card_table").innerHTML);
+                LODOP.PREVIEW();
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+}
+
+
+
+
+/**
+ * 构建体征描述
+ * @param mzBlRecord
+ * @returns {*}
+ */
+function getTz(mzBlRecord) {
+    var tz = null;
+    if (mzBlRecord.weight != null) {
+        var temp = "体重:" + mzBlRecord.weight + "kg ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.temperature != null) {
+        var temp = "体温:" + mzBlRecord.temperature + "℃ ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.sphygmus != null) {
+        var temp = "脉搏:" + mzBlRecord.sphygmus + "次/分 ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.breathe != null) {
+        var temp = "呼吸:" + mzBlRecord.breathe + "次/分 ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null) {
+        var temp = "血压:" + mzBlRecord.pressureHigh + "/" + mzBlRecord.pressureFloor;
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null) {
+        var temp = "左血压:" + mzBlRecord.pressureHighLeft + "/" + mzBlRecord.pressureFloorLeft;
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    return tz;
+}
+
+
+/**
+ * 加载病历信息
+ * @param patientId
+ * @param times
+ */
+function showMzBlRecordModal(patientId, times) {
+    $.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.age + "岁");
+                var mzBlRecord = res.mzBlRecord;
+                // if (mzBlRecord.firstOrNot == "1") {
+                //     $("#firstOrNotTitle").text("复诊");
+                // } else {
+                //     $("#firstOrNotTitle").text("初诊");
+                // }
+                if (mzBlRecord.emrChiefComplaint != null && mzBlRecord.emrChiefComplaint != "") {
+                    $("#editEmrChiefComplaint").val(mzBlRecord.emrChiefComplaint);
+                    $("#editEmrChiefComplaint").parent().parent().css("display", "block");
+                } else {
+                    $("#editEmrChiefComplaint").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.emrHpi != null && mzBlRecord.emrHpi != "") {
+                    $("#editEmrHpi").val(mzBlRecord.emrHpi);
+                    $("#editEmrHpi").parent().parent().css("display", "block");
+                } else {
+                    $("#editEmrHpi").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.emrPs != null && mzBlRecord.emrPs != "") {
+                    $("#editEmrPs").val(mzBlRecord.emrPs);
+                    $("#editEmrPs").parent().parent().css("display", "block");
+                } else {
+                    $("#editEmrPs").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.personalHistory != null && mzBlRecord.personalHistory != "") {
+                    $("#editPersonalHistory").val(mzBlRecord.personalHistory);
+                    $("#editPersonalHistory").parent().parent().css("display", "block");
+                } else {
+                    $("#editPersonalHistory").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.familyHistory != null && mzBlRecord.familyHistory != "") {
+                    $("#editFamilyHistory").val(mzBlRecord.familyHistory);
+                    $("#editFamilyHistory").parent().parent().css("display", "block");
+                } else {
+                    $("#editFamilyHistory").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.obstericalHistory != null && mzBlRecord.obstericalHistory != "") {
+                    $("#editObstericalHistory").val(mzBlRecord.obstericalHistory);
+                    $("#editObstericalHistory").parent().parent().css("display", "block");
+                } else {
+                    $("#editObstericalHistory").parent().parent().css("display", "none");
+                }
+                var tz = getTz(mzBlRecord);
+                if (tz != null && tz != "") {
+                    $("#editTgjc").val(tz);
+                    $("#editTgjc").parent().parent().css("display", "block");
+                } else {
+                    $("#editTgjc").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.emrPe != null && mzBlRecord.emrPe != "") {
+                    $("#editQtjc").val(mzBlRecord.emrPe);
+                    $("#editQtjc").parent().parent().css("display", "block");
+                } else {
+                    $("#editQtjc").parent().parent().css("display", "none");
+                }
+                if (res.icdText != null && res.icdText != "") {
+                    $("#editZd").val(res.icdText);
+                    $("#editZd").parent().parent().css("display", "block");
+                } else {
+                    $("#editZd").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.emrProcess != null && mzBlRecord.emrProcess != "") {
+                    var reg = new RegExp("</br>","g");//g,表示全部替换。
+                    $("#editEmrProcess").val(mzBlRecord.emrProcess.replace(reg,"\n"));
+                    $("#editEmrProcess").parent().parent().css("display", "block");
+                } else {
+                    $("#editEmrProcess").parent().parent().css("display", "none");
+                }
+                if (mzBlRecord.emrJkjy != null && mzBlRecord.emrJkjy != "") {
+                    $("#editEmrJkjy").text(mzBlRecord.emrJkjy);
+                    $("#editEmrJkjy").parent().parent().css("display", "block");
+                } else {
+                    $("#editEmrJkjy").parent().parent().css("display", "none");
+                }
+                $("#mzBlTimes").val(mzBlRecord.times);
+                $("#editMzBlRecordModal").modal();
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+
+}
+
+
+/**
+ * 保存门诊病历
+ */
+function setEmrProcess() {
+    $.ajax({
+        type: "POST",
+        url: '/thmz/setEmrProcess',
+        contentType: "application/json;charset=UTF-8",
+        dataType: "json",
+        data: JSON.stringify({
+            "patientId": $("#editPatientId").text(),
+            "times": $("#mzBlTimes").val(),
+            "emrProcess": $("#newEmrProcess").val()
+        }),
+        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) {
+                clearInput();
+                successMesage(res);
+                $("#editMzBlRecordModal").modal("hide");
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+}
+
+
+/**
+ * 情况区域
+ */
+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);
+    $("#editTgjc").val(null);
+    $("#editQtjc").val(null);
+    $("#editZd").val(null);
+    $("#editEmrProcess").val(null);
+    $("#editEmrJkjy").val(null);
+    $("#newEmrProcess").val(null);
+    $("#mzBlTimes").val(null);
+}

+ 288 - 2
src/main/resources/templates/mz/mz_bl_record.html

@@ -1,13 +1,21 @@
 <link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
 <link rel="stylesheet" href="/thmz/css/bootstrap/css/daterangepicker.css"/>
-<link rel="stylesheet" href="/thmz/css/toll_administration.css"/>
+<link rel="stylesheet" href="/thmz/css/custom.min.css">
 <script src="/thmz/js/dependent/bootstrap-select.js"></script>
 <script src="/thmz/js/dependent/validator.js"></script>
 <script src="/thmz/js/common/map-util.js"></script>
 <script src="/thmz/js/dependent/daterangepicker.js"></script>
 <script src="/thmz/js/common/date-util.js"></script>
+<script src="/thmz/js/dependent/LodopFuncs.js"></script>
 <script src="/thmz/js/mz/mz_bl_record.js"></script>
 <title>门诊病例列表</title>
+<!-- 打印的样式-->
+<style media="print">
+    @page {
+        size: auto;
+        margin: 0mm;
+    }
+</style>
 <div class="row" style="height: calc(100% - 60px);overflow-y: auto;">
     <div class="col-md-12 col-sm-12 col-xs-12">
         <div class="x_panel">
@@ -50,4 +58,282 @@
         </div>
         <table id="tb_table"></table>
     </div>
-</div>
+</div>
+
+
+
+
+<!--打印门诊病历开始-->
+<div id="mz_blrecord_card_table" class="hide"
+     style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
+    <div>
+        <div>
+            <div style="position: relative;">
+                <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
+                <div style="float: right;color: red;margin-right: 30px;border: 1px solid red;width: 60px;text-align: center;position: absolute;top: 0px;right: 0px;"
+                     id="firstOrNotTitle"></div>
+            </div>
+            <div style="text-align:center;font-weight: 700;">门诊病历</div>
+            <table class="table table-striped table-bordered"
+                   style="margin-top: 10px;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>门诊ID: <span id="patientIdBlrecord"></span></td>
+                    <td>姓名:<span id="patientNameBlrecord"></span></td>
+                    <td>性别: <span id="patientGenderBlrecord"></span></td>
+                    <td>年龄:<span id="patientAgeBlrecord"></span></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered"
+                   style="border: 1px solid black;font-size: 13px;border-collapse: collapse;">
+                <tbody style="padding-bottom: 10px;font-size: 13px;">
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-width: 60px;min-height: 30px;">
+                        主诉
+                    </td>
+                    <td colspan="7" id="emrChiefComplaintBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        现病史
+                    </td>
+                    <td colspan="7" id="emrHpiBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        既往史
+                    </td>
+                    <td colspan="7" id="emrPsBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        个人史
+                    </td>
+                    <td colspan="7" id="personalHistoryBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        家族史
+                    </td>
+                    <td colspan="7" id="familyHistoryBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        婚育史
+                    </td>
+                    <td colspan="7" id="obstericalHistoryBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        体格检查
+                    </td>
+                    <td colspan="7" id="tzjcBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        其他检查
+                    </td>
+                    <td colspan="7" id="emrPeBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        诊断
+                    </td>
+                    <td colspan="7" id="icdTextBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        处理(RP.)
+                    </td>
+                    <td colspan="7" id="emrProcessBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 30px;">
+                        健康教育
+                    </td>
+                    <td colspan="7" id="emrJkjyBlrecord"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered"
+                   style="border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>就诊科室: <span id="visitDeptBlrecord"></span></td>
+                    <td>就诊医生:<span id="visitDoctorBlrecord"></span></td>
+                </tr>
+                <tr>
+                    <td>就诊时间:<span id="visitDateBlrecord"></span></td>
+                    <td>医师签名:<span style="text-decoration: underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+                    </td>
+                </tr>
+                </tbody>
+            </table>
+        </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: 680px;">
+            <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">门诊病历【编辑】</h4>
+            </div>
+            <div class="modal-body">
+                <form class="form-horizontal form-label-left" novalidate id="editUserForm" 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">
+                                <input id="editEmrChiefComplaint" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editEmrHpi" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editEmrPs" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editPersonalHistory" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editFamilyHistory" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editObstericalHistory" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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="editTgjc">体格检查
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <input id="editTgjc" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editQtjc" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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">
+                                <input id="editZd" class="form-control col-md-7 col-xs-12" type="text" readonly>
+                            </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" readonly></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="newEmrProcess">补充处理(RP.)
+                            </label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <textarea id="newEmrProcess" class="form-control col-md-7 col-xs-12"></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"></textarea>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <input id="mzBlTimes" type="hidden"/>
+                <button type="button" class="btn btn-primary" onclick="setEmrProcess()">保存</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearInput()">取消</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>
+</object>