主业务添加代码
This commit is contained in:
parent
ed9b3f8eb1
commit
b1fdb0f795
@ -294,7 +294,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
if ("1".equals(limit_brpatno) && (brdh == null || "".equals(brdh))) {
|
if ("1".equals(limit_brpatno) && (brdh == null || "".equals(brdh))) {
|
||||||
if ("1".equals(brly) || "3".equals(brly)) return new Result("-1", "门诊住院的病历号不能为空,禁止审核!");
|
if ("1".equals(brly) || "3".equals(brly)) return new Result("-1", "门诊住院的病历号不能为空,禁止审核!");
|
||||||
}
|
}
|
||||||
|
String yqdl = commonUtil.getYqdl(yq);
|
||||||
List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh);
|
List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh);
|
||||||
if (labResultList == null || labResultList.size() == 0) return new Result("-1", "结果为空禁止审核!");
|
if (labResultList == null || labResultList.size() == 0) return new Result("-1", "结果为空禁止审核!");
|
||||||
for (LabResult labResult : labResultList) {
|
for (LabResult labResult : labResultList) {
|
||||||
@ -313,7 +313,6 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
//多做结果判断
|
//多做结果判断
|
||||||
String otherresultmsg = commonUtil.getComOptValue(yq, "otherresultmsg");
|
String otherresultmsg = commonUtil.getComOptValue(yq, "otherresultmsg");
|
||||||
if ("1".equals(otherresultmsg)) {
|
if ("1".equals(otherresultmsg)) {
|
||||||
String yqdl = commonUtil.getYqdl(yq);
|
|
||||||
if (!"细菌仪".equals(yqdl)) {
|
if (!"细菌仪".equals(yqdl)) {
|
||||||
int nullcount = lisWorkOperMapper.checkresultsqxmdh(jyrq, yq, ybh, labPat.getSqh());
|
int nullcount = lisWorkOperMapper.checkresultsqxmdh(jyrq, yq, ybh, labPat.getSqh());
|
||||||
if (nullcount > 0) return new Result("5", "结果有多做的项目,是否审核?", 2);
|
if (nullcount > 0) return new Result("5", "结果有多做的项目,是否审核?", 2);
|
||||||
@ -355,9 +354,32 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
SetReport setReport = new SetReport();
|
SetReport setReport = new SetReport();
|
||||||
setReport.setIp(IpUtils.getIpAddr());
|
setReport.setIp(IpUtils.getIpAddr());
|
||||||
setReport.setJyrq(DateFormatUtils.format(jyrq, "yyyy-MM-dd"));
|
setReport.setJyrq(DateFormatUtils.format(jyrq, "yyyy-MM-dd"));
|
||||||
setReport.setYq(yq.trim());
|
|
||||||
setReport.setYbh(ybh);
|
setReport.setYbh(ybh);
|
||||||
setReport.setUserid(Userid);
|
setReport.setUserid(Userid);
|
||||||
|
setReport.setYq(yq.trim());
|
||||||
|
setReport.setStatus(LisinterfaceNameConstants.REPORTSTART);
|
||||||
|
if (!"细菌仪".equals(yqdl)) {
|
||||||
|
if (!"1".equals(commonUtil.getHISOPT("wswcbbgbl"))) {
|
||||||
|
String ls_cbbgyq = commonUtil.getComOptValue(yq, "cbbgyq");
|
||||||
|
if (ls_cbbgyq != null && !"".equals(ls_cbbgyq)) {
|
||||||
|
String ls_ejbgyq = "EJBG" + ls_cbbgyq;
|
||||||
|
ls_cbbgyq = "CBBG" + ls_cbbgyq;
|
||||||
|
int count = commonUtil.getCountByKey(jyrq, ls_cbbgyq, ybh);
|
||||||
|
if (count > 0) {
|
||||||
|
setReport.setYq(ls_cbbgyq);
|
||||||
|
setReport.setStatus(LisinterfaceNameConstants.REPORTCANCAL);
|
||||||
|
Result result = lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.SETREPORT, setReport);
|
||||||
|
}
|
||||||
|
count = commonUtil.getCountByKey(jyrq, ls_ejbgyq, ybh);
|
||||||
|
if (count > 0) {
|
||||||
|
setReport.setYq(ls_ejbgyq);
|
||||||
|
setReport.setStatus(LisinterfaceNameConstants.REPORTCANCAL);
|
||||||
|
Result result = lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.SETREPORT, setReport);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setReport.setYq(yq.trim());
|
||||||
setReport.setStatus(LisinterfaceNameConstants.REPORTSTART);
|
setReport.setStatus(LisinterfaceNameConstants.REPORTSTART);
|
||||||
Result result = lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.SETREPORT, setReport);
|
Result result = lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.SETREPORT, setReport);
|
||||||
if (result.getCode().equals("5")) {
|
if (result.getCode().equals("5")) {
|
||||||
@ -367,6 +389,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
return new Result("0", "保存成功!");
|
return new Result("0", "保存成功!");
|
||||||
}
|
}
|
||||||
if (!result.getCode().equals("0")) return result;
|
if (!result.getCode().equals("0")) return result;
|
||||||
|
checkxpywrgjz(labPat);
|
||||||
return new Result("0", "保存成功!");
|
return new Result("0", "保存成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -585,6 +608,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
return new Result("0", "保存成功!");
|
return new Result("0", "保存成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
//内部使用
|
//内部使用
|
||||||
private int saveallresult(LabPat labPat) {
|
private int saveallresult(LabPat labPat) {
|
||||||
Date jyrq = labPat.getJyrq();
|
Date jyrq = labPat.getJyrq();
|
||||||
@ -610,6 +634,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
if (sqh != null && !"".equals(sqh)) setItemSqxmdh(jyrq, yq, ybh, sqh);
|
if (sqh != null && !"".equals(sqh)) setItemSqxmdh(jyrq, yq, ybh, sqh);
|
||||||
return wjz;
|
return wjz;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 结果表补充申请单项目代码
|
* 结果表补充申请单项目代码
|
||||||
*
|
*
|
||||||
@ -625,6 +650,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
setItemSqxmdh(jyrq, yq, ybh, sqh);
|
setItemSqxmdh(jyrq, yq, ybh, sqh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//内部使用
|
//内部使用
|
||||||
private void setItemSqxmdh(Date jyrq, String yq, String ybh, String sqh) {
|
private void setItemSqxmdh(Date jyrq, String yq, String ybh, String sqh) {
|
||||||
if (sqh != null && !"".equals(sqh)) {
|
if (sqh != null && !"".equals(sqh)) {
|
||||||
@ -637,6 +663,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算项目增加及重新计算
|
* 计算项目增加及重新计算
|
||||||
*
|
*
|
||||||
@ -650,6 +677,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
calcsample(labPat);
|
calcsample(labPat);
|
||||||
return new Result("0", "保存成功!");
|
return new Result("0", "保存成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
//内部使用
|
//内部使用
|
||||||
private void calcsample(LabPat labPat) {
|
private void calcsample(LabPat labPat) {
|
||||||
Date jyrq = labPat.getJyrq();
|
Date jyrq = labPat.getJyrq();
|
||||||
@ -706,6 +734,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算项目参考值结果异常标志
|
* 计算项目参考值结果异常标志
|
||||||
*
|
*
|
||||||
@ -729,6 +758,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
return new Result("0", "保存成功!");
|
return new Result("0", "保存成功!");
|
||||||
}
|
}
|
||||||
//内部使用
|
//内部使用
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算项目参考值结果异常标志(内部使用)
|
* 计算项目参考值结果异常标志(内部使用)
|
||||||
*
|
*
|
||||||
@ -784,7 +814,8 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
//危急值标识去除原则
|
//危急值标识去除原则
|
||||||
String brxm = labPat.getBrxm();
|
String brxm = labPat.getBrxm();
|
||||||
if(brxm !=null)if (brxm.contains("质控") || brxm.contains("复查") || brxm.contains("QC") || brxm.contains("qc") || brxm.contains("软化水") || brxm.contains("锅炉水")) {
|
if (brxm != null)
|
||||||
|
if (brxm.contains("质控") || brxm.contains("复查") || brxm.contains("QC") || brxm.contains("qc") || brxm.contains("软化水") || brxm.contains("锅炉水")) {
|
||||||
lb_wjz = false;
|
lb_wjz = false;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
@ -799,6 +830,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 明细结果计算参考值异常标志危急值标志并更新
|
* 明细结果计算参考值异常标志危急值标志并更新
|
||||||
*
|
*
|
||||||
@ -843,7 +875,9 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
String zd = null;
|
String zd = null;
|
||||||
if ("Y".equals(ygzd)) {
|
if ("Y".equals(ygzd)) {
|
||||||
zd = labPat.getZd();
|
zd = labPat.getZd();
|
||||||
if (zd == null) {zd="";}
|
if (zd == null) {
|
||||||
|
zd = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String slzq = null;
|
String slzq = null;
|
||||||
if ("Y".equals(ygzq)) {
|
if ("Y".equals(ygzq)) {
|
||||||
@ -914,6 +948,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
if (!"".equals(wjzflag)) wjz = 1;
|
if (!"".equals(wjzflag)) wjz = 1;
|
||||||
return wjz;
|
return wjz;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 特定条件危急值判断
|
* 特定条件危急值判断
|
||||||
*
|
*
|
||||||
@ -987,6 +1022,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
if (lb_hasval) return 0;
|
if (lb_hasval) return 0;
|
||||||
else return -1;
|
else return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取常用取值结果标志
|
* 获取常用取值结果标志
|
||||||
*
|
*
|
||||||
@ -1018,6 +1054,7 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 工作时间校验检验者审核者不允许相同 上班时间上午8点-12点下午2点到5点,周末不算
|
* 工作时间校验检验者审核者不允许相同 上班时间上午8点-12点下午2点到5点,周末不算
|
||||||
|
*
|
||||||
* @param labPat
|
* @param labPat
|
||||||
* @return 返回0通过, 返回1不允许相同
|
* @return 返回0通过, 返回1不允许相同
|
||||||
*/
|
*/
|
||||||
@ -1031,7 +1068,8 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
String sb2 = commonUtil.getHISOPT("SHTIME2");
|
String sb2 = commonUtil.getHISOPT("SHTIME2");
|
||||||
String sb3 = commonUtil.getHISOPT("SHTIME3");
|
String sb3 = commonUtil.getHISOPT("SHTIME3");
|
||||||
String sb4 = commonUtil.getHISOPT("SHTIME4");
|
String sb4 = commonUtil.getHISOPT("SHTIME4");
|
||||||
if((sb1==null || sb1.isEmpty()) && (sb2==null || sb2.isEmpty()) && (sb3==null || sb3.isEmpty()) && (sb4==null || sb4.isEmpty())) return 0;
|
if ((sb1 == null || sb1.isEmpty()) && (sb2 == null || sb2.isEmpty()) && (sb3 == null || sb3.isEmpty()) && (sb4 == null || sb4.isEmpty()))
|
||||||
|
return 0;
|
||||||
Date currenttime = DateUtils.getNowDate();
|
Date currenttime = DateUtils.getNowDate();
|
||||||
int weekDay = DateUtils.getWeekDay(currenttime);
|
int weekDay = DateUtils.getWeekDay(currenttime);
|
||||||
//周末不算
|
//周末不算
|
||||||
@ -1054,6 +1092,13 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注自动登记血培养污染记录
|
||||||
|
*
|
||||||
|
* @param labPat
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
private int checkxpywrgjz(LabPat labPat) {
|
private int checkxpywrgjz(LabPat labPat) {
|
||||||
String ls_bz = labPat.getBz();
|
String ls_bz = labPat.getBz();
|
||||||
String ls_sqh = labPat.getSqh();
|
String ls_sqh = labPat.getSqh();
|
||||||
@ -1072,7 +1117,17 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
|||||||
if (ls_xpywrdh == null || ls_xpywrdh.isEmpty()) return 0;
|
if (ls_xpywrdh == null || ls_xpywrdh.isEmpty()) return 0;
|
||||||
String ls_hdys = labPat.getHdys();
|
String ls_hdys = labPat.getHdys();
|
||||||
if (ls_hdys == null || ls_hdys.isEmpty()) ls_hdys = labPat.getYhdh();
|
if (ls_hdys == null || ls_hdys.isEmpty()) ls_hdys = labPat.getYhdh();
|
||||||
|
LabRefused labRefused = new LabRefused();
|
||||||
|
labRefused.setSqh(ls_sqh);
|
||||||
|
labRefused.setRefusetext(ls_xpywrdh);
|
||||||
|
List<LabRefused> labRefusedList = commonUtil.getLabRefusedList(labRefused);
|
||||||
|
if (labRefusedList.size() == 0) {
|
||||||
|
labRefused.setRefusedtime(new Date());
|
||||||
|
labRefused.setKsdh(labPat.getKsdh());
|
||||||
|
labRefused.setBz("0");
|
||||||
|
labRefused.setRefuseder(ls_hdys);
|
||||||
|
commonUtil.insertLabRefused(labRefused);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user