|
@@ -112,13 +112,11 @@ public class CaseFrontSheetService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<SheetOverview>> getPatientOverview(String ward) {
|
|
|
- log.info("病案首页获取在院病人>>> {}", ward);
|
|
|
return ResultVoUtil.success(dao.getPatientOverview(ward));
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<SheetOverview>> getOutPatient(GetOutSheet param) {
|
|
|
param.setEnd(param.getEnd() + " 23:59:59");
|
|
|
- log.info("获取出院病人>>> {}", param);
|
|
|
if (StringUtil.isBlank(param.getWard())) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请选择科室!");
|
|
|
}
|
|
@@ -141,7 +139,6 @@ public class CaseFrontSheetService {
|
|
|
} else {
|
|
|
ret.setCdPercentage(DecimalUtil.getPercent(cd, all));
|
|
|
}
|
|
|
- log.info("科室【{}】CD型病例比例:{}", param.getWard(), ret.getCdPercentage());
|
|
|
}
|
|
|
if (StringUtil.notBlank(param.getStart())) {
|
|
|
param.setStart(param.getStart() + " 00:00:00");
|
|
@@ -149,7 +146,6 @@ public class CaseFrontSheetService {
|
|
|
if (StringUtil.notBlank(param.getEnd())) {
|
|
|
param.setEnd(param.getEnd() + " 23:59:59");
|
|
|
}
|
|
|
- log.info("病案室获取病人列表>>> {}", param);
|
|
|
List<SheetOverview> list;
|
|
|
if (StringUtil.notBlank(param.getBah())) {
|
|
|
if (param.getFileStatus() == 0) {
|
|
@@ -195,13 +191,14 @@ public class CaseFrontSheetService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<CaseFrontsheetMain> getPatientInfo(String bah, Integer times, Integer flag) {
|
|
|
- log.info("病案首页获取病人信息>>> 住院号:{},住院次数:{},在院状态:{}", bah, times, flag);
|
|
|
CaseFrontsheetMain sheet = dao.getAPatientMi(bah);
|
|
|
sheet.setAge(DateUtil.calculateAge(sheet.getBirthDate()));
|
|
|
CaseFrontsheetMain sheet1 = dao.getZyLedgerFile(bah, times);
|
|
|
- CaseFrontsheetMain sheet2 = flag == 1 ? dao.getZyActPatient(bah, times) : dao.getZyInActPatient(bah, times);
|
|
|
+ CaseFrontsheetMain sheet2 = flag == 1 ? dao.getZyActPatient("zy_actpatient", bah, times) :
|
|
|
+ dao.getZyActPatient("zy_inactpatient", bah, times);
|
|
|
if (null == sheet2) {
|
|
|
- sheet2 = flag == 1 ? dao.getZyInActPatient(bah, times) : dao.getZyActPatient(bah, times);
|
|
|
+ sheet2 = flag == 1 ? dao.getZyActPatient("zy_inactpatient", bah, times) :
|
|
|
+ dao.getZyActPatient("zy_actpatient", bah, times);
|
|
|
}
|
|
|
if (StringUtil.isBlank(sheet2.getMedType())) {
|
|
|
String injurySerialNo = dao.selectInjurySerialNo(bah, times);
|
|
@@ -209,7 +206,6 @@ public class CaseFrontSheetService {
|
|
|
sheet2.setMedType("42");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
final int hasInfant = dao.getInfant(bah, times);
|
|
|
sheet2.setHasInfant(String.valueOf(hasInfant));
|
|
|
if (null == sheet2.getDismissDate()) {
|
|
@@ -218,7 +214,6 @@ public class CaseFrontSheetService {
|
|
|
: dao.getDismissDateFromYzActOrder(bah, times);
|
|
|
sheet2.setDismissDate(dismissDate);
|
|
|
}
|
|
|
-
|
|
|
CaseFrontsheetMain sheet3 = dao.getBatjBa1(bah, times);
|
|
|
if (sheet3 == null) {
|
|
|
if (dao.isBatjBa1Exist(bah, times) == 0) {
|
|
@@ -510,7 +505,6 @@ public class CaseFrontSheetService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- log.info("打印前病案逻辑校验, 操作员:{} >>> {}", param.getStaffId(), force);
|
|
|
if (force.isEmpty() && advice.isEmpty()) {
|
|
|
return ResultVoUtil.success();
|
|
|
}
|
|
@@ -550,8 +544,6 @@ public class CaseFrontSheetService {
|
|
|
param.setOpType(4);
|
|
|
dao.updateZyFileStatus(2, sheet.getBah(), sheet.getAdmissTimes());
|
|
|
dao.updateZyInFileStatus(2, sheet.getBah(), sheet.getAdmissTimes());
|
|
|
- log.info("打印病案首页,操作员:{} >>> 住院号:{},住院次数:{}",
|
|
|
- param.getStaffId(), sheet.getBah(), sheet.getAdmissTimes());
|
|
|
dao.writeBaOpLog(param.getOpType(), param.getStaffId(), sheet.getBah(), sheet.getAdmissTimes());
|
|
|
log.info("写入病案操作日志, 操作员:{} >>> 住院号:{}, 住院次数:{}, 操作编码:{}", param.getStaffId(),
|
|
|
sheet.getBah(), sheet.getAdmissTimes(), param.getOpType());
|
|
@@ -560,7 +552,6 @@ public class CaseFrontSheetService {
|
|
|
|
|
|
public ResultVo<List<YiBaoDisdiag>> getYbDiags(String bah, int times) {
|
|
|
List<YiBaoDisdiag> diags = dao.getYbDiags(bah, times);
|
|
|
- log.info("获取医保诊断>>> 住院号:{},住院次数:{}:结果:{}", bah, times, diags);
|
|
|
return ResultVoUtil.success(diags);
|
|
|
}
|
|
|
|
|
@@ -590,7 +581,6 @@ public class CaseFrontSheetService {
|
|
|
diag.setBah(param.getBah());
|
|
|
diag.setTimes(param.getTimes());
|
|
|
dao.insertNewYbDiag(diag);
|
|
|
- log.info("保存医保诊断>>> {}", diag);
|
|
|
}
|
|
|
return ResultVoUtil.success();
|
|
|
}
|
|
@@ -633,7 +623,6 @@ public class CaseFrontSheetService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<SheetOverview>> advanceSearch(AdvanceSearchParam param) {
|
|
|
- log.info("高级条件检索:{}", param);
|
|
|
param.setDoctorCode(param.getDoctorCode() + "%");
|
|
|
param.setSex(param.getSex() + "%");
|
|
|
if ("".equals(param.getIcdCode()) && "".equals(param.getSurgeryCode())) {
|