From de59011365132b90e7cfd3f076043fb19e64236c Mon Sep 17 00:00:00 2001 From: zengwh <81383286@qq.com> Date: Sun, 1 Aug 2021 18:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4HIS=E5=8F=AC=E5=9B=9E?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=92=8C=E6=89=93=E5=8D=B0=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/beHospitaledController.java | 4 +- .../emr/controller/lastVerifyController.java | 4 +- src/main/java/com/emr/dao/TUuPrintMapper.java | 2 + .../com/emr/entity/Archive_Master_Vo.java | 4 ++ .../ipml/Archive_MasterServiceImpl.java | 45 ++++++++++++-- .../resources/mapper/Archive_MasterMapper.xml | 59 +++++++++++++++++-- src/main/resources/mapper/TUuPrintMapper.xml | 13 ++++ .../views/beHospitaledDir/beHospList.jsp | 12 +++- .../views/lastVerifyDir/lastVerifyList.jsp | 12 +++- .../webapp/static/js/beHospList/beHospList.js | 29 ++++++++- .../js/hospitalCommom/hospitalCommom.js | 2 +- .../js/lastVerifyList/lastVerifyList.js | 29 ++++++++- 12 files changed, 195 insertions(+), 20 deletions(-) diff --git a/src/main/java/com/emr/controller/beHospitaledController.java b/src/main/java/com/emr/controller/beHospitaledController.java index 33ecb3b..bd15074 100644 --- a/src/main/java/com/emr/controller/beHospitaledController.java +++ b/src/main/java/com/emr/controller/beHospitaledController.java @@ -153,8 +153,8 @@ public class beHospitaledController { @ResponseBody @RequestMapping(value = "/exportExcel") public void exportExcel(HttpServletResponse response, HttpServletRequest request,Archive_Master_Vo archiveMasterVo,Integer isSearch){ - String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态"; - String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status"; + String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态,是否完整,HIS召回状态,打印状态"; + String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status,lockinfo,callBackStatus,printStatus"; //构造excel的数据 if(isSearch == 0){ archiveMasterVo.setStartDateTo(null); diff --git a/src/main/java/com/emr/controller/lastVerifyController.java b/src/main/java/com/emr/controller/lastVerifyController.java index b441f8c..514ef41 100644 --- a/src/main/java/com/emr/controller/lastVerifyController.java +++ b/src/main/java/com/emr/controller/lastVerifyController.java @@ -95,8 +95,8 @@ public class lastVerifyController { archiveMasterVo.setStartDateTo(null); archiveMasterVo.setEndDateTo(null); } - String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态,纸质状态,纸质扫描"; - String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status,remark,checkName"; + String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态,纸质状态,纸质扫描,HIS召回状态,打印状态"; + String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status,remark,checkName,callBackStatus,printStatus"; try { //构造excel的数据 List list = archiveMasterService.selectLastVerifyList(archiveMasterVo); diff --git a/src/main/java/com/emr/dao/TUuPrintMapper.java b/src/main/java/com/emr/dao/TUuPrintMapper.java index d7163d4..11a5b1d 100644 --- a/src/main/java/com/emr/dao/TUuPrintMapper.java +++ b/src/main/java/com/emr/dao/TUuPrintMapper.java @@ -15,4 +15,6 @@ public interface TUuPrintMapper { List getPrintCount(TUuPrintSearch record); List getPrintInfo(TUuPrintSearch record); + + List selectAllByPatientId(@Param("patientId") String patientId); } \ No newline at end of file diff --git a/src/main/java/com/emr/entity/Archive_Master_Vo.java b/src/main/java/com/emr/entity/Archive_Master_Vo.java index fe36c75..23290d3 100644 --- a/src/main/java/com/emr/entity/Archive_Master_Vo.java +++ b/src/main/java/com/emr/entity/Archive_Master_Vo.java @@ -83,6 +83,10 @@ public class Archive_Master_Vo extends Archive_Master{ private String paperPosition4; private String lockInfo;//完整性描述 + + private String callBackStatus;//退回召回状态 + + private String printStatus;//打印状态 } diff --git a/src/main/java/com/emr/service/ipml/Archive_MasterServiceImpl.java b/src/main/java/com/emr/service/ipml/Archive_MasterServiceImpl.java index 9882cc3..b7e05c0 100644 --- a/src/main/java/com/emr/service/ipml/Archive_MasterServiceImpl.java +++ b/src/main/java/com/emr/service/ipml/Archive_MasterServiceImpl.java @@ -56,6 +56,8 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { private Emr_DictionaryMapper dictionaryMapper; @Autowired private PaperPostionService paperPostionService; + @Autowired + private TUuPrintMapper tUuPrintMapper; /** * 在院列表 * */ @@ -218,6 +220,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { Emr_Dictionary dictionary = new Emr_Dictionary(); dictionary.setTypecode("dept_code"); List dictionaries = dictionaryMapper.dicByTypeCode(dictionary); + StringBuilder patientIdStr = new StringBuilder(); for (Archive_Master_Vo masterVo : list) { //科室名称编码转名称 deptNameCode2Name(dictionaries, masterVo); @@ -228,6 +231,23 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { }else if(status.equals(EnumVerify.DocState.CallBacked.getCode())){ masterVo.setStatus(EnumVerify.DocState.CallBacked.getName()); } + if(StringUtils.isNotBlank(patientIdStr)){ + patientIdStr.append(","); + } + masterVo.setPrintStatus("否"); + patientIdStr.append(masterVo.getPatientId()); + } + //设置打印状态 + List tUuPrints = tUuPrintMapper.selectAllByPatientId(patientIdStr.toString()); + if(!CollectionUtils.isEmpty(tUuPrints)){ + for (Archive_Master_Vo masterVo : list) { + for (TUuPrint tUuPrint : tUuPrints){ + if(tUuPrint.getPatientId().equals(masterVo.getPatientId())){ + masterVo.setPrintStatus("是"); + break; + } + } + } } } return list; @@ -270,9 +290,10 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { //组织完整性字段并完整的更新archive_master表的完整性字段值为完整LockInfo='完整' //updateMasterBySuccess(list); //转换科室与赋值超期天数 - selectByColumnChange(list); + String patientIds = selectByColumnChange(list); //根据状态code转换状态及判断显示按钮 if(null != list && !list.isEmpty()){ + List tUuPrints = tUuPrintMapper.selectAllByPatientId(patientIds); //查询流转角色集合 List flowRoles = flowRoleMapper.selectAll(); //计算属于哪种审核角色 @@ -297,6 +318,17 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { masterVo.setBtns(btns); } } + //定义打印状态 + String printStatus = "否"; + if(!CollectionUtils.isEmpty(tUuPrints)){ + for(TUuPrint tUuPrint : tUuPrints){ + if(tUuPrint.getPatientId().equals(masterVo.getPatientId())){ + printStatus = "是"; + break; + } + } + } + masterVo.setPrintStatus(printStatus); } } } @@ -346,11 +378,12 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { } /** - * 出院浏览转换科室中文、查询天数 + * 出院浏览转换科室中文、查询天数,赋值打印状态 * * @param list */ - private void selectByColumnChange(List list) { + private String selectByColumnChange(List list) { + StringBuilder patientIdStr = new StringBuilder(); if(!CollectionUtils.isEmpty(list)){ //查询科室集合 Emr_Dictionary dictionary = new Emr_Dictionary(); @@ -363,7 +396,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { }else{ selectDays = archiveMasterMapper.selectDaysByMasterIds(list); } - for (Archive_Master_Vo vo:list) { //科室名称编码转名称 deptNameCode2Name(dictionaries, vo); @@ -376,8 +408,13 @@ public class Archive_MasterServiceImpl implements Archive_MasterService { } } } + if(StringUtils.isNotBlank(patientIdStr)){ + patientIdStr.append(","); + } + patientIdStr.append(vo.getPatientId()); } } + return patientIdStr.toString(); } /** diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index de1e727..2b4ae13 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -607,22 +607,52 @@ where user_name = #{userName} + + + (select distinct jzh from archive_other_ext where sysFlag = -300) + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp index 8c3dba3..0d87ecd 100644 --- a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp +++ b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp @@ -233,6 +233,14 @@ +
+ + +
@@ -839,7 +847,7 @@ - - + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp index 6e5c16d..c39dc8c 100644 --- a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp +++ b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp @@ -193,6 +193,14 @@ +
+ + +
@@ -671,8 +679,8 @@ - - + + \ No newline at end of file diff --git a/src/main/webapp/static/js/beHospList/beHospList.js b/src/main/webapp/static/js/beHospList/beHospList.js index 0dfb749..fcfc359 100644 --- a/src/main/webapp/static/js/beHospList/beHospList.js +++ b/src/main/webapp/static/js/beHospList/beHospList.js @@ -71,7 +71,8 @@ function initTable() { roles:$("#searchOperRole").val(), isSuccess:$("#isSuccessSearch").val(), infoId:$("#infoId").val(), - operRole:$("#checker").val() + operRole:$("#checker").val(), + callBackStatus:$("#callBackStatus").val() }; return temp; }, @@ -148,6 +149,32 @@ function initTable() { } } }, + { + title: 'HIS召回状态', + field: 'callBackStatus', + align: 'center', + valign: 'middle', + formatter:function(value, row){ + if(value == '是'){ + return ''; + }else{ + return ''; + } + } + }, + { + title: '打印状态', + field: 'printStatus', + align: 'center', + valign: 'middle', + formatter:function(value, row){ + if(value == '是'){ + return ''; + }else{ + return ''; + } + } + }, { title: "操作", align: 'left', diff --git a/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js b/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js index b5cd5ae..4eb18d8 100644 --- a/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js +++ b/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js @@ -55,7 +55,7 @@ function loadDoctorInCharge(){ //判断是否需要选中 var flag = $("#flag").val(); var currentRole = $("#roleId").val(); - if(flag == 1 && currentRole == 1){ + if(currentRole == 1){ if($("#currentName").val() == name){ selected = 'selected'; } diff --git a/src/main/webapp/static/js/lastVerifyList/lastVerifyList.js b/src/main/webapp/static/js/lastVerifyList/lastVerifyList.js index f67af53..cf94ef2 100644 --- a/src/main/webapp/static/js/lastVerifyList/lastVerifyList.js +++ b/src/main/webapp/static/js/lastVerifyList/lastVerifyList.js @@ -74,7 +74,8 @@ function initTable() { doctorInCharge:$("#doctorInCharge").val(), isSign:$("#isSign").val(), isSearch:$("#isSearch").val(), - checkName:$("#checkName").val() + checkName:$("#checkName").val(), + callBackStatus:$("#callBackStatus").val() }; return temp; }, @@ -186,6 +187,32 @@ function initTable() { return str; } }, + { + title: 'HIS召回状态', + field: 'callBackStatus', + align: 'center', + valign: 'middle', + formatter:function(value, row){ + if(value == '是'){ + return ''; + }else{ + return ''; + } + } + }, + { + title: '打印状态', + field: 'printStatus', + align: 'center', + valign: 'middle', + formatter:function(value, row){ + if(value == '是'){ + return ''; + }else{ + return ''; + } + } + }, { title: "操作", align: 'left',