|
@@ -136,7 +136,7 @@ public class YiZhuLuRuServer {
|
|
|
QueryWrapper<?> qw = new QueryWrapper<>();
|
|
|
qw.eq("a.inpatient_no", param.getPatNo()).eq("a.admiss_times", param.getTimes());
|
|
|
qw.orderByAsc("a.order_time");
|
|
|
- List<XinZhenYzActOrder> yiZhuList = dao.huoQuYiZhuShuJu(qw);
|
|
|
+ List<XinZhenYzActOrder> yiZhuList = dao.selectOrderNo(qw);
|
|
|
// 还有那些没有被匹配的子级医嘱
|
|
|
Map<BigDecimal, XinZhenYzActOrder> wuFuJiYiZhu = yiZhuList.stream().collect(Collectors.toMap(XinZhenYzActOrder::getActOrderNo, a -> a, (k1, k2) -> k1));
|
|
|
|
|
@@ -279,7 +279,7 @@ public class YiZhuLuRuServer {
|
|
|
// 排除出院带药的医嘱
|
|
|
.ne("isnull(a.self_buy,'0')", "4")
|
|
|
.orderByAsc("a.act_order_no");
|
|
|
- param.setList(dao.huoQuYiZhuShuJu(qw));
|
|
|
+ param.setList(dao.selectOrderNo(qw));
|
|
|
List<XinZhenYzActOrder> yiZhuList = param.getList();
|
|
|
if (ListUtil.isBlank(yiZhuList)) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有需要确认的医嘱.");
|
|
@@ -302,7 +302,7 @@ public class YiZhuLuRuServer {
|
|
|
String userCode = TokenUtil.getTokenUserId();
|
|
|
// 获取医生开药品的权限
|
|
|
Integer doctorLevel = dao.huoQuYiShenDengJi(userCode);
|
|
|
- XinZhenYiZhu patInfo = dao.huoQuHuanZheXinXi(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
+ XinZhenYiZhu patInfo = dao.queryPatientInfo(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
Map<String, XinZhenYzActOrder> drug = getDrugInformation(yaoPingCode, patInfo.getZkWard());
|
|
|
Map<String, List<XinZhenYzActOrder>> project = getProjectInformation(xiangMuCode);
|
|
|
|
|
@@ -437,7 +437,7 @@ public class YiZhuLuRuServer {
|
|
|
}
|
|
|
// 获取医生开药品的权限
|
|
|
Integer doctorLevel = dao.huoQuYiShenDengJi(userCode);
|
|
|
- XinZhenYiZhu huanZheXinXi = dao.huoQuHuanZheXinXi(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
+ XinZhenYiZhu huanZheXinXi = dao.queryPatientInfo(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
XinZhenYzActOrder data = param.getData();
|
|
|
if (ITEM.equals(data.getSerial().trim())) {
|
|
|
data.setGroupNo("00");
|
|
@@ -520,7 +520,7 @@ public class YiZhuLuRuServer {
|
|
|
fatherAndSonDoctorSAdvice.put(item.getId(), item);
|
|
|
item.setActOrderNo(publicServer.getActOrderNo());
|
|
|
});
|
|
|
- XinZhenYiZhu huanZheXinXi = dao.huoQuHuanZheXinXi(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
+ XinZhenYiZhu huanZheXinXi = dao.queryPatientInfo(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
// 把模板的数据插入到医嘱
|
|
|
getThis().templateInsertToOrder(param, fatherAndSonDoctorSAdvice, huanZheXinXi);
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION, "插入模板数据成功。");
|
|
@@ -1527,8 +1527,8 @@ public class YiZhuLuRuServer {
|
|
|
.eq("a.status_flag", "1")
|
|
|
.eq("a.enter_oper", TokenUtil.getTokenUserId())
|
|
|
.eq("isnull(a.self_buy,'0')", "4");
|
|
|
- XinZhenYiZhu patInfo = dao.huoQuHuanZheXinXi(patNo, times);
|
|
|
- patInfo.setList(dao.huoQuYiZhuShuJu(qw));
|
|
|
+ XinZhenYiZhu patInfo = dao.queryPatientInfo(patNo, times);
|
|
|
+ patInfo.setList(dao.selectOrderNo(qw));
|
|
|
if (dao.obtainTheNumberOfDischargedDrugs(patNo, times) > 出院带药限制数量) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "出院带药医嘱不得超过 4 种,且不得超过 15 天。");
|
|
|
}
|
|
@@ -1587,7 +1587,7 @@ public class YiZhuLuRuServer {
|
|
|
for (int i = 0; i < takeTheMedicineList.size(); i++) {
|
|
|
pageNoList.add(publicServer.getTheDrugListNo());
|
|
|
}
|
|
|
- sendAMessageToTheNurse(patInfo, userCode, dao.huoQuHuanZheXinXi(patNo, times), "出院带药");
|
|
|
+ sendAMessageToTheNurse(patInfo, userCode, dao.queryPatientInfo(patNo, times), "出院带药");
|
|
|
return getThis().getMapResultVo(patInfo, userCode, takeTheMedicineList, pageNoList);
|
|
|
} else {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.ERROR_MESSAGE, "请修改有错误的医嘱。", check);
|