|
@@ -2856,13 +2856,13 @@ public class ConsoleFacade {
|
|
|
/**
|
|
|
* 时效性报表导出-杭州七院
|
|
|
*/
|
|
|
- public List<Map<String, Object>> TimelinessReportExport(QcResultShortPageVO qcResultShortPageVO) {
|
|
|
+ public List<Map<String, Object>> TimelinessReportExport(FilterTimelinessVO filterTimelinessVO) {
|
|
|
List<Map<String, Object>> records = new LinkedList<>();
|
|
|
- List<ExportReportDetailaaDTO> unfinishedFirst = behospitalInfoFacade.getUnfinishedFirst_HZQY(qcResultShortPageVO);
|
|
|
- List<ExportReportDetailabDTO> unfinishedIn = behospitalInfoFacade.getUnfinishedIn_HZQY(qcResultShortPageVO);
|
|
|
- List<ExportReportDetailacDTO> unfinishedSuicide = behospitalInfoFacade.getUnfinishedSuicide_HZQY(qcResultShortPageVO);
|
|
|
- List<ExportReportDetailbDTO> unfinishedThree = behospitalInfoFacade.getUnfinishedThree_HZQY(qcResultShortPageVO);
|
|
|
- List<ExportReportDetailbDTO> unfinishedSix = behospitalInfoFacade.getUnfinishedSix_HZQY(qcResultShortPageVO);
|
|
|
+ List<ExportReportDetailaaDTO> unfinishedFirst = behospitalInfoFacade.getUnfinishedFirstExport_HZQY(filterTimelinessVO);
|
|
|
+ List<ExportReportDetailabDTO> unfinishedIn = behospitalInfoFacade.getUnfinishedInExport_HZQY(filterTimelinessVO);
|
|
|
+ List<ExportReportDetailacDTO> unfinishedSuicide = behospitalInfoFacade.getUnfinishedSuicideExport_HZQY(filterTimelinessVO);
|
|
|
+ List<ExportReportDetailbDTO> unfinishedThree = behospitalInfoFacade.getUnfinishedThreeExport_HZQY(filterTimelinessVO);
|
|
|
+ List<ExportReportDetailbDTO> unfinishedSix = behospitalInfoFacade.getUnfinishedSixExport_HZQY(filterTimelinessVO);
|
|
|
|
|
|
Map<String, Object> map1 = new HashMap<>();
|
|
|
ExportParams empExportParams1 = new ExportParams();
|
|
@@ -2875,14 +2875,14 @@ public class ConsoleFacade {
|
|
|
ExportParams empExportParams2 = new ExportParams();
|
|
|
empExportParams2.setSheetName("入院记录未在患者入院24小时内完成");
|
|
|
map2.put("title", empExportParams2);
|
|
|
- map2.put("entity", ExportReportDetailaDTO.class);
|
|
|
+ map2.put("entity", ExportReportDetailabDTO.class);
|
|
|
map2.put("data", unfinishedIn);
|
|
|
|
|
|
Map<String, Object> map3 = new HashMap<>();
|
|
|
ExportParams empExportParams3 = new ExportParams();
|
|
|
empExportParams3.setSheetName("自杀、冲动、猝死病历入院记录未在患者入院24小时内完成");
|
|
|
map3.put("title", empExportParams3);
|
|
|
- map3.put("entity", ExportReportDetailaDTO.class);
|
|
|
+ map3.put("entity", ExportReportDetailacDTO.class);
|
|
|
map3.put("data", unfinishedSuicide);
|
|
|
|
|
|
Map<String, Object> map4 = new HashMap<>();
|
|
@@ -3145,9 +3145,215 @@ public class ConsoleFacade {
|
|
|
* @param filterTimelinessVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public UnModifyMRDTO TimelinessReportA(FilterTimelinessVO filterTimelinessVO) {
|
|
|
- UnModifyMRDTO unModifyMRDTO = new UnModifyMRDTO();
|
|
|
- List<Object> retList = Lists.newLinkedList();
|
|
|
+ public TimelinessReportDTO TimelinessReport(FilterTimelinessVO filterTimelinessVO) {
|
|
|
+ TimelinessReportDTO timelinessReportDTO = new TimelinessReportDTO();
|
|
|
+ IPage<?> retList = new Page<>();
|
|
|
+ List<ColumnDTO> columns = Lists.newLinkedList();
|
|
|
+
|
|
|
+ Integer orderNo = 1;
|
|
|
+ ColumnDTO columnHospitalCode = new ColumnDTO();
|
|
|
+ if (filterTimelinessVO.getCasesEntryId().equals("3241") || filterTimelinessVO.getCasesEntryId().equals("3242") || filterTimelinessVO.getCasesEntryId().equals("3243")) {
|
|
|
+ columnHospitalCode.setOrderNo(orderNo);
|
|
|
+ columnHospitalCode.setFieldName("hospitalCode");
|
|
|
+ columnHospitalCode.setColumnName("病人住院序号");
|
|
|
+ columnHospitalCode.setIsShow(1);
|
|
|
+ columns.add(columnHospitalCode);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnName = new ColumnDTO();
|
|
|
+ columnName.setOrderNo(orderNo);
|
|
|
+ columnName.setFieldName("name");
|
|
|
+ columnName.setColumnName("病人姓名");
|
|
|
+ columnName.setIsShow(1);
|
|
|
+ columns.add(columnName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnSex = new ColumnDTO();
|
|
|
+ columnSex.setOrderNo(orderNo);
|
|
|
+ columnSex.setFieldName("sex");
|
|
|
+ columnSex.setColumnName("性别");
|
|
|
+ columnSex.setIsShow(1);
|
|
|
+ columns.add(columnSex);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnFileCode = new ColumnDTO();
|
|
|
+ columnFileCode.setOrderNo(orderNo);
|
|
|
+ columnFileCode.setFieldName("fileCode");
|
|
|
+ columnFileCode.setColumnName("病案号");
|
|
|
+ columnFileCode.setIsShow(1);
|
|
|
+ columns.add(columnFileCode);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnDoctorName = new ColumnDTO();
|
|
|
+ columnDoctorName.setOrderNo(orderNo);
|
|
|
+ columnDoctorName.setFieldName("doctorName");
|
|
|
+ columnDoctorName.setColumnName("主管医生");
|
|
|
+ columnDoctorName.setIsShow(1);
|
|
|
+ columns.add(columnDoctorName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnDeptName = new ColumnDTO();
|
|
|
+ columnDeptName.setOrderNo(orderNo);
|
|
|
+ columnDeptName.setFieldName("behDeptName");
|
|
|
+ columnDeptName.setColumnName("住院科室");
|
|
|
+ columnDeptName.setIsShow(1);
|
|
|
+ columns.add(columnDeptName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnRuleName = new ColumnDTO();
|
|
|
+ columnRuleName.setOrderNo(orderNo);
|
|
|
+ columnRuleName.setFieldName("ruleName");
|
|
|
+ columnRuleName.setColumnName("规则名称");
|
|
|
+ columnRuleName.setIsShow(1);
|
|
|
+ columns.add(columnRuleName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnBehospitalDate = new ColumnDTO();
|
|
|
+ columnBehospitalDate.setOrderNo(orderNo);
|
|
|
+ columnBehospitalDate.setFieldName("behospitalDate");
|
|
|
+ columnBehospitalDate.setColumnName("入院日期");
|
|
|
+ columnBehospitalDate.setIsShow(1);
|
|
|
+ columns.add(columnBehospitalDate);
|
|
|
+ orderNo++;
|
|
|
+ } else {
|
|
|
+ columnHospitalCode.setOrderNo(orderNo);
|
|
|
+ columnHospitalCode.setFieldName("hospitalCode");
|
|
|
+ columnHospitalCode.setColumnName("病人住院序号");
|
|
|
+ columnHospitalCode.setIsShow(1);
|
|
|
+ columns.add(columnHospitalCode);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnName = new ColumnDTO();
|
|
|
+ columnName.setOrderNo(orderNo);
|
|
|
+ columnName.setFieldName("name");
|
|
|
+ columnName.setColumnName("病人姓名");
|
|
|
+ columnName.setIsShow(1);
|
|
|
+ columns.add(columnName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnSex = new ColumnDTO();
|
|
|
+ columnSex.setOrderNo(orderNo);
|
|
|
+ columnSex.setFieldName("sex");
|
|
|
+ columnSex.setColumnName("性别");
|
|
|
+ columnSex.setIsShow(1);
|
|
|
+ columns.add(columnSex);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnFileCode = new ColumnDTO();
|
|
|
+ columnFileCode.setOrderNo(orderNo);
|
|
|
+ columnFileCode.setFieldName("fileCode");
|
|
|
+ columnFileCode.setColumnName("病案号");
|
|
|
+ columnFileCode.setIsShow(1);
|
|
|
+ columns.add(columnFileCode);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnDoctorName = new ColumnDTO();
|
|
|
+ columnDoctorName.setOrderNo(orderNo);
|
|
|
+ columnDoctorName.setFieldName("doctorName");
|
|
|
+ columnDoctorName.setColumnName("主管医生");
|
|
|
+ columnDoctorName.setIsShow(1);
|
|
|
+ columns.add(columnDoctorName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnDeptName = new ColumnDTO();
|
|
|
+ columnDeptName.setOrderNo(orderNo);
|
|
|
+ columnDeptName.setFieldName("behDeptName");
|
|
|
+ columnDeptName.setColumnName("住院科室");
|
|
|
+ columnDeptName.setIsShow(1);
|
|
|
+ columns.add(columnDeptName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnRuleName = new ColumnDTO();
|
|
|
+ columnRuleName.setOrderNo(orderNo);
|
|
|
+ columnRuleName.setFieldName("ruleName");
|
|
|
+ columnRuleName.setColumnName("规则名称");
|
|
|
+ columnRuleName.setIsShow(1);
|
|
|
+ columns.add(columnRuleName);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnRemark = new ColumnDTO();
|
|
|
+ columnRemark.setOrderNo(orderNo);
|
|
|
+ columnRemark.setFieldName("remark");
|
|
|
+ columnRemark.setColumnName("备注");
|
|
|
+ columnRemark.setIsShow(1);
|
|
|
+ columns.add(columnRemark);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnBehospitalDate = new ColumnDTO();
|
|
|
+ columnBehospitalDate.setOrderNo(orderNo);
|
|
|
+ columnBehospitalDate.setFieldName("behospitalDate");
|
|
|
+ columnBehospitalDate.setColumnName("入院日期");
|
|
|
+ columnBehospitalDate.setIsShow(1);
|
|
|
+ columns.add(columnBehospitalDate);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnIsPlacefile = new ColumnDTO();
|
|
|
+ columnIsPlacefile.setOrderNo(orderNo);
|
|
|
+ columnIsPlacefile.setFieldName("isPlacefile");
|
|
|
+ columnIsPlacefile.setColumnName("是否归档");
|
|
|
+ columnIsPlacefile.setIsShow(1);
|
|
|
+ columns.add(columnIsPlacefile);
|
|
|
+ orderNo++;
|
|
|
+ }
|
|
|
+
|
|
|
+ ColumnDTO columnBehospitalGmtCreate = new ColumnDTO();
|
|
|
+ columnBehospitalGmtCreate.setOrderNo(orderNo);
|
|
|
+ columnBehospitalGmtCreate.setFieldName("behospitalGmtCreate");
|
|
|
+ if (filterTimelinessVO.getCasesEntryId().equals("3241")) {
|
|
|
+ // 首次病程未在患者入院8小时内完成
|
|
|
+ columnBehospitalGmtCreate.setColumnName("首次病程创建时间");
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3242")) {
|
|
|
+ // 入院记录未在患者入院24小时内完成
|
|
|
+ columnBehospitalGmtCreate.setColumnName("入院记录创建时间");
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3243")) {
|
|
|
+ // 自杀、冲动、猝死病历入院记录未在患者入院24小时内完成
|
|
|
+ columnBehospitalGmtCreate.setColumnName("自杀等记录创建时间");
|
|
|
+ }
|
|
|
+// columnBehospitalGmtCreate.setColumnName("入院记录创建时间");
|
|
|
+ columnBehospitalGmtCreate.setIsShow(1);
|
|
|
+ columns.add(columnBehospitalGmtCreate);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ ColumnDTO columnIsPlacefile = new ColumnDTO();
|
|
|
+ columnIsPlacefile.setOrderNo(orderNo);
|
|
|
+ columnIsPlacefile.setFieldName("isPlacefile");
|
|
|
+ columnIsPlacefile.setColumnName("是否归档");
|
|
|
+ columnIsPlacefile.setIsShow(1);
|
|
|
+ columns.add(columnIsPlacefile);
|
|
|
+ orderNo++;
|
|
|
+
|
|
|
+ if (filterTimelinessVO.getCasesEntryId().equals("3241")) {
|
|
|
+ IPage<ExportReportDetailaaDTO> unfinishedFirst = behospitalInfoFacade.getUnfinishedFirst_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedFirst;
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3242")) {
|
|
|
+ IPage<ExportReportDetailabDTO> unfinishedIn = behospitalInfoFacade.getUnfinishedIn_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedIn;
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3243")) {
|
|
|
+ IPage<ExportReportDetailacDTO> unfinishedSuicide = behospitalInfoFacade.getUnfinishedSuicide_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedSuicide;
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3240")) {
|
|
|
+ IPage<ExportReportDetailbDTO> unfinishedThree = behospitalInfoFacade.getUnfinishedThree_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedThree;
|
|
|
+ } else if (filterTimelinessVO.getCasesEntryId().equals("3244")) {
|
|
|
+ IPage<ExportReportDetailbDTO> unfinishedSix = behospitalInfoFacade.getUnfinishedSix_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedSix;
|
|
|
+ }
|
|
|
+
|
|
|
+ timelinessReportDTO.setColumns(columns);
|
|
|
+ timelinessReportDTO.setData(retList);
|
|
|
+ return timelinessReportDTO;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 未整改病历统计
|
|
|
+ *
|
|
|
+ * @param filterTimelinessVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public TimelinessReportDTO TimelinessReportA(FilterTimelinessVO filterTimelinessVO) {
|
|
|
+ TimelinessReportDTO timelinessReportDTO = new TimelinessReportDTO();
|
|
|
+ IPage<?> retList = new Page<>();
|
|
|
List<ColumnDTO> columns = Lists.newLinkedList();
|
|
|
|
|
|
Integer orderNo = 1;
|
|
@@ -3241,43 +3447,35 @@ public class ConsoleFacade {
|
|
|
columns.add(columnIsPlacefile);
|
|
|
orderNo++;
|
|
|
|
|
|
- Date startDate = filterTimelinessVO.getStartDate();
|
|
|
- Date endDate = filterTimelinessVO.getEndDate();
|
|
|
-
|
|
|
- if (endDate.getTime() < startDate.getTime()) {
|
|
|
- throw new CommonException(CommonErrorCode.PARAM_ERROR, "截止时间不能小于起始时间");
|
|
|
- }
|
|
|
-
|
|
|
- QcResultShortPageVO qcResultShortPageVO = new QcResultShortPageVO();
|
|
|
- qcResultShortPageVO.setStartDate(startDate);
|
|
|
- qcResultShortPageVO.setEndDate(endDate);
|
|
|
-
|
|
|
if (filterTimelinessVO.getCasesEntryId().equals("3241")) {
|
|
|
- List<ExportReportDetailaaDTO> unfinishedFirst = behospitalInfoFacade.getUnfinishedFirst_HZQY(qcResultShortPageVO);
|
|
|
- retList.addAll(unfinishedFirst);
|
|
|
+ IPage<ExportReportDetailaaDTO> unfinishedFirst = behospitalInfoFacade.getUnfinishedFirst_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedFirst;
|
|
|
} else if (filterTimelinessVO.getCasesEntryId().equals("3242")) {
|
|
|
- List<ExportReportDetailabDTO> unfinishedIn = behospitalInfoFacade.getUnfinishedIn_HZQY(qcResultShortPageVO);
|
|
|
- retList.addAll(unfinishedIn);
|
|
|
+ IPage<ExportReportDetailabDTO> unfinishedIn = behospitalInfoFacade.getUnfinishedIn_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedIn;
|
|
|
} else if (filterTimelinessVO.getCasesEntryId().equals("3243")) {
|
|
|
- List<ExportReportDetailacDTO> unfinishedSuicide = behospitalInfoFacade.getUnfinishedSuicide_HZQY(qcResultShortPageVO);
|
|
|
- retList.addAll(unfinishedSuicide);
|
|
|
+ IPage<ExportReportDetailacDTO> unfinishedSuicide = behospitalInfoFacade.getUnfinishedSuicide_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedSuicide;
|
|
|
}
|
|
|
|
|
|
- unModifyMRDTO.setColumns(columns);
|
|
|
- unModifyMRDTO.setData(retList);
|
|
|
- return unModifyMRDTO;
|
|
|
+ timelinessReportDTO.setColumns(columns);
|
|
|
+ timelinessReportDTO.setData(retList);
|
|
|
+ return timelinessReportDTO;
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 未整改病历统计
|
|
|
*
|
|
|
* @param filterTimelinessVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public UnModifyMRDTO TimelinessReportB(FilterTimelinessVO filterTimelinessVO) {
|
|
|
- UnModifyMRDTO unModifyMRDTO = new UnModifyMRDTO();
|
|
|
- List<Object> retList = Lists.newLinkedList();
|
|
|
+ public TimelinessReportDTO TimelinessReportB(FilterTimelinessVO filterTimelinessVO) {
|
|
|
+ TimelinessReportDTO timelinessReportDTO = new TimelinessReportDTO();
|
|
|
+ IPage<?> retList = new Page<>();
|
|
|
List<ColumnDTO> columns = Lists.newLinkedList();
|
|
|
|
|
|
Integer orderNo = 1;
|
|
@@ -3361,28 +3559,16 @@ public class ConsoleFacade {
|
|
|
columns.add(columnIsPlacefile);
|
|
|
orderNo++;
|
|
|
|
|
|
- Date startDate = filterTimelinessVO.getStartDate();
|
|
|
- Date endDate = filterTimelinessVO.getEndDate();
|
|
|
-
|
|
|
- if (endDate.getTime() < startDate.getTime()) {
|
|
|
- throw new CommonException(CommonErrorCode.PARAM_ERROR, "截止时间不能小于起始时间");
|
|
|
- }
|
|
|
-
|
|
|
- QcResultShortPageVO qcResultShortPageVO = new QcResultShortPageVO();
|
|
|
- qcResultShortPageVO.setStartDate(startDate);
|
|
|
- qcResultShortPageVO.setEndDate(endDate);
|
|
|
-
|
|
|
if (filterTimelinessVO.getCasesEntryId().equals("3240")) {
|
|
|
- List<ExportReportDetailbDTO> unfinishedThree = behospitalInfoFacade.getUnfinishedThree_HZQY(qcResultShortPageVO);
|
|
|
- retList.addAll(unfinishedThree);
|
|
|
+ IPage<ExportReportDetailbDTO> unfinishedThree = behospitalInfoFacade.getUnfinishedThree_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedThree;
|
|
|
} else if (filterTimelinessVO.getCasesEntryId().equals("3244")) {
|
|
|
- List<ExportReportDetailbDTO> unfinishedSix = behospitalInfoFacade.getUnfinishedSix_HZQY(qcResultShortPageVO);
|
|
|
- retList.addAll(unfinishedSix);
|
|
|
+ IPage<ExportReportDetailbDTO> unfinishedSix = behospitalInfoFacade.getUnfinishedSix_HZQY(filterTimelinessVO);
|
|
|
+ retList = unfinishedSix;
|
|
|
}
|
|
|
-
|
|
|
- unModifyMRDTO.setColumns(columns);
|
|
|
- unModifyMRDTO.setData(retList);
|
|
|
- return unModifyMRDTO;
|
|
|
+ timelinessReportDTO.setColumns(columns);
|
|
|
+ timelinessReportDTO.setData(retList);
|
|
|
+ return timelinessReportDTO;
|
|
|
}
|
|
|
|
|
|
|