Jelajahi Sumber

门诊病历打印

hurugang 3 tahun lalu
induk
melakukan
de93e899de

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

@@ -0,0 +1,97 @@
+package cn.hnthyy.thmz.controller.mz;
+
+import cn.hnthyy.thmz.Utils.DateUtil;
+import cn.hnthyy.thmz.comment.UserLoginToken;
+import cn.hnthyy.thmz.entity.his.mz.Employee;
+import cn.hnthyy.thmz.entity.his.mz.MzBlRecord;
+import cn.hnthyy.thmz.entity.his.mz.MzPatientMi;
+import cn.hnthyy.thmz.enums.GenderEnum;
+import cn.hnthyy.thmz.service.his.mz.EmployeeService;
+import cn.hnthyy.thmz.service.his.mz.MzBlRecordService;
+import cn.hnthyy.thmz.service.his.mz.MzPatientMiService;
+import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.HashMap;
+import java.util.Map;
+
+@Slf4j
+@RestController
+public class MzBlRecordController {
+    @Autowired
+    private MzBlRecordService mzBlRecordService;
+    @Autowired
+    private ZdUnitCodeService zdUnitCodeService;
+    @Autowired
+    private EmployeeService employeeService;
+    @Autowired
+    private MzPatientMiService mzPatientMiService;
+
+    /**
+     * 查询门诊病历
+     *
+     * @param patientId
+     * @param times
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/getMzBlrecord", method = {RequestMethod.GET})
+    public Map<String, Object> getMzBlrecord(@RequestParam("patientId") String patientId, @RequestParam("times") Integer times) {
+        Map<String, Object> results = new HashMap<>();
+        if (StringUtils.isBlank(patientId)) {
+            results.put("code", -1);
+            results.put("message", "患者门诊ID不能为空");
+            return results;
+        }
+        if (times == null) {
+            results.put("code", -1);
+            results.put("message", "就诊次数为空");
+            return results;
+        }
+        try {
+            MzBlRecord mzBlRecord = mzBlRecordService.queryMzBlRecordByPatientIdAndTimes(patientId, times);
+            if (mzBlRecord == null) {
+                results.put("code", -1);
+                results.put("message", "查询门诊病历失败,没有对应的门诊病历数据");
+                return results;
+            }
+            if(mzBlRecord.getEmrProcess()!=null){
+                String zyzl =null;
+                if(mzBlRecord.getEmrProcess().indexOf("医技与诊疗:")>0){
+                    zyzl = mzBlRecord.getEmrProcess().substring(mzBlRecord.getEmrProcess().indexOf("中药治疗:"),mzBlRecord.getEmrProcess().indexOf("医技与诊疗:"));
+                }else {
+                    zyzl = mzBlRecord.getEmrProcess().substring(mzBlRecord.getEmrProcess().indexOf("中药治疗:"));
+                }
+                if(zyzl!=null && StringUtils.isNotBlank(zyzl)){
+                    mzBlRecord.setEmrProcess(mzBlRecord.getEmrProcess().replace(zyzl,"%zwf%"));
+                    zyzl=zyzl.replaceAll("_"," ").replaceAll("中药治疗:","</br>中药治疗:</br>");
+                }
+                mzBlRecord.setEmrProcess(mzBlRecord.getEmrProcess().replaceAll("_","</br>").replaceAll("西药治疗:","西药治疗:</br>").replaceAll("医技与诊疗:","</br>医技与诊疗:</br>").replace("%zwf%",zyzl));
+            }
+            results.put("code", 0);
+            results.put("message", "查询门诊病历成功");
+            results.put("mzBlRecord", mzBlRecord);
+            results.put("visitDate", DateUtil.fomart(mzBlRecord.getVisitDate(), "yyyy-MM-dd HH:mm:ss"));
+            results.put("deptName", zdUnitCodeService.queryDeptNameByIdInCache(mzBlRecord.getDeptCode()));
+            if (mzBlRecord.getDoctorCode() != null && StringUtils.isNotBlank(mzBlRecord.getDoctorCode())) {
+                Employee employee = employeeService.queryByUserCode(mzBlRecord.getDoctorCode());
+                results.put("doctorName", employee != null ? employee.getEmployeeName() : "");
+            }
+            MzPatientMi mzPatientMi = mzPatientMiService.queryByPatientId(patientId);
+            mzPatientMi.setGender(GenderEnum.getGenderByCode(mzPatientMi.getSex()).name);
+            results.put("mzPatientMi", mzPatientMi);
+            return results;
+        } catch (Exception e) {
+            results.put("code", -1);
+            results.put("message", "查询门诊病历失败,请联系管理员");
+            log.error("系统异常,错误信息{}", e.getMessage());
+            return results;
+        }
+    }
+}

+ 1 - 1
src/main/java/cn/hnthyy/thmz/entity/his/mz/MzBlRecord.java

@@ -35,7 +35,7 @@ public class MzBlRecord {
     private String emrPs;
     //体格检查  其他检查 对应 otherCheck
     private String emrPe;
-    //辅助检查 不用了
+    //辅助检查
     private String emrFzjc;
     //处理意见
     private String emrProcess;

+ 8 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -893,6 +893,8 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         List<Map<String, Object>> jePrescription = new ArrayList();
         xyPrescription.put("jePrescription", jePrescription);
         prescriptionDetail.put("xyPrescription", xyPrescription);
+        //辅助检查
+        String emrFzjc=null;
         if (mzPrescriptionVo.getMzYjReqList() != null && mzPrescriptionVo.getMzYjReqList().size() > 0) {
             Map<String, Object> yjMap = new HashMap<>();
             yjMap.put("amount", BigDecimal.ZERO);
@@ -905,6 +907,11 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                     name += " 备注:" + mzYjReq.getJyRemark();
                 }
                 detail.add(name);
+                if(emrFzjc==null){
+                    emrFzjc=name;
+                }else {
+                    emrFzjc+=","+name;
+                }
                 if (YesNoEnum.YES.equals(savePrescription)) {
                     List<ZdChargeItem> zdChargeItemList = null;
                     zdChargeItemList = jcJyItemChargeService.queryJcJyItemChargeByCode(mzYjReq.getOrderCode());
@@ -1096,6 +1103,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                 getIndex(zlPrescription, sbd, 0);
             }
         }
+        mzPrescriptionVo.getMzBlRecord().setEmrFzjc(emrFzjc);
         mzPrescriptionVo.getMzBlRecord().setEmrProcess(sbd.toString());
     }
 

+ 132 - 0
src/main/resources/static/js/mz/clinic.js

@@ -5609,6 +5609,10 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
                             printYjReq(patientId, times);
                         });
                     }
+                    $("#printBlRecord").removeClass("hide").addClass("in");
+                    $("#printBlRecord").off("click").on("click", function (t) {
+                        printBlRecord(patientId, times);
+                    });
                 } else {
                     $("#printPrescription").removeClass("in").addClass("hide");
                     $("#callPrescription").removeClass("hide").addClass("in");
@@ -6076,6 +6080,7 @@ function printYjReq(patientId, times) {
             }
             if (res.code == 0) {
                 if (res.data == null || res.data.mzYjReqList == null || res.data.mzYjReqList.length == 0) {
+                    errorMesageSimaple("没有医技申请单可以打印");
                     return;
                 }
                 setPrint();
@@ -6156,4 +6161,131 @@ function printYjReq(patientId, times) {
             }
         }
     });
+}
+
+
+
+
+
+/**
+ * 打印门诊病历
+ * @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(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);
+            }
+        }
+    });
 }

+ 190 - 39
src/main/resources/templates/mz/clinic.html

@@ -1190,7 +1190,7 @@
                     </div>
                     <div class="conent" style="margin-bottom: 5px;" id="prescriptionDetail_zlyjTitle">
                         <div style="color: #2e69eb!important;margin-bottom: 5px;">
-                            诊疗与医技:
+                            医技与诊疗:
                         </div>
                         <div id="prescriptionDetail_zlyjContent">
                             <!--<span>14×17吋干式胶片</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>片</span>-->
@@ -1203,9 +1203,9 @@
                 </form>
             </div>
             <div class="modal-footer">
-                <!--<button type="button" class="btn btn-primary hide" id="printPrescription">打印门诊病历</button>-->
-                <button type="button" class="btn btn-primary hide" id="printYjReq">医技申请单打印</button>
-                <button type="button" class="btn btn-primary hide" id="printPrescription">处方、门诊指引单打印</button>
+                <button type="button" class="btn btn-primary hide" id="printBlRecord">打印门诊病历</button>
+                <button type="button" class="btn btn-primary hide" id="printYjReq">打印医技申请单</button>
+                <button type="button" class="btn btn-primary hide" id="printPrescription">打印处方、门诊指引单</button>
                 <button type="button" class="btn btn-primary hide" id="callPrescription">调用</button>
                 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
             </div>
@@ -1709,7 +1709,8 @@
                 <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
                 <div style="text-align:center;font-weight: 700;">检查申请单</div>
             </div>
-            <table class="table table-striped table-bordered" style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+            <table class="table table-striped table-bordered"
+                   style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
                 <tbody style="font-size: 13px;">
                 <tr>
                     <td>门诊ID: <span id="patientIdJcReq"></span></td>
@@ -1723,35 +1724,52 @@
                     <td>单号:<span id="reqNoJcReq"></span></td>
                 </tr>
                 <tr>
-                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJcReq" ></span></td>
+                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJcReq"></span></td>
                 </tr>
                 </tbody>
             </table>
-            <table class="table table-striped table-bordered" style="border: 1px solid black;font-size: 13px;border-collapse: collapse;">
+            <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: 30px;height: 50px;">症状</td>
-                    <td colspan="7" id="jcReqEmrChiefComplaint" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-width: 30px;min-height: 50px;">
+                        症状
+                    </td>
+                    <td colspan="7" id="jcReqEmrChiefComplaint"
+                        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;height: 50px;">病史</td>
-                    <td colspan="7" id="jcReqHis" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;">
+                        病史
+                    </td>
+                    <td colspan="7" id="jcReqHis"
+                        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;height: 50px;">体征</td>
-                    <td colspan="7" id="jcReqTz" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;">
+                        体征
+                    </td>
+                    <td colspan="7" id="jcReqTz"
+                        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;height: 50px;font-weight: bold">项目</td>
-                    <td colspan="7" id="jcReqItem" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;font-weight: bold"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;font-weight: bold">
+                        项目
+                    </td>
+                    <td colspan="7" id="jcReqItem"
+                        style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;font-weight: bold"></td>
                 </tr>
                 <tr>
-                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">备注</td>
-                    <td colspan="7" id="jcReqRemark" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;">
+                        备注
+                    </td>
+                    <td colspan="7" id="jcReqRemark"
+                        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;">
+            <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="jcReqReqDept"></span></td>
@@ -1759,7 +1777,8 @@
                 </tr>
                 <tr>
                     <td>申请日期:<span id="jcReqReqDate"></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>
+                    <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>
@@ -1778,7 +1797,8 @@
                 <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
                 <div style="text-align:center;font-weight: 700;">检验申请单</div>
             </div>
-            <table class="table table-striped table-bordered" style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+            <table class="table table-striped table-bordered"
+                   style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
                 <tbody style="font-size: 13px;">
                 <tr>
                     <td>门诊ID: <span id="patientIdJyReq"></span></td>
@@ -1792,43 +1812,55 @@
                     <td>单号:<span id="reqNoJyReq"></span></td>
                 </tr>
                 <tr>
-                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJyReq" ></span></td>
+                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJyReq"></span></td>
                 </tr>
                 </tbody>
             </table>
-            <table class="table table-striped table-bordered" style="border: 1px solid black;font-size: 13px;border-collapse: collapse;">
+            <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: 30px;height: 50px;">症状</td>
-                    <td colspan="7" id="jyReqEmrChiefComplaint" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-width: 30px;min-height: 50px;">
+                        症状
+                    </td>
+                    <td colspan="7" id="jyReqEmrChiefComplaint"
+                        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;height: 50px;">病史</td>
-                    <td colspan="7" id="jyReqHis" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;">
+                        病史
+                    </td>
+                    <td colspan="7" id="jyReqHis"
+                        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;height: 50px;">体征</td>
-                    <td colspan="7" id="jyReqTz" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-height: 50px;">
+                        体征
+                    </td>
+                    <td colspan="7" id="jyReqTz"
+                        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;height: 50px;">临床印象</td>
-                    <td colspan="7" id="jyReqRemark" 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;height: 50px;">临床印象</td>
+                             <td colspan="7" id="jyReqRemark" 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;border-collapse: collapse;">
+            <table class="table table-striped table-bordered"
+                   style="border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;border-collapse: collapse;">
                 <tbody style="font-size: 13px;font-weight: bold;text-align: center;">
                 <tr>
-                    <th style="height: 30px;border-bottom: 1px solid black;">检验项目</th>
-                    <th style="height: 30px;border-bottom: 1px solid black;">标本</th>
+                    <th style="min-height: 30px;border-bottom: 1px solid black;">检验项目</th>
+                    <th style="min-height: 30px;border-bottom: 1px solid black;">标本</th>
                 </tr>
                 <tr>
-                    <td id="jyReqItem" style="height: 30px;"></td>
+                    <td id="jyReqItem" style="min-height: 30px;"></td>
                     <td id="jyReqInspectStuff"></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;">
+            <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="jyReqReqDept"></span></td>
@@ -1836,14 +1868,133 @@
                 </tr>
                 <tr>
                     <td>申请日期:<span id="jyReqReqDate"></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>
+                    <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 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;">
+                        处理(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>
-    <!--打印检验申请单结束-->
+<!--打印门诊病历结束-->
 
 
 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>