|
@@ -1,5 +1,7 @@
|
|
package com.diagbot.util;
|
|
package com.diagbot.util;
|
|
|
|
+
|
|
import com.diagbot.dto.BillMsg;
|
|
import com.diagbot.dto.BillMsg;
|
|
|
|
+import com.diagbot.dto.OtherTipNeoDTO;
|
|
import com.diagbot.enums.NeoEnum;
|
|
import com.diagbot.enums.NeoEnum;
|
|
import com.diagbot.enums.TypeEnum;
|
|
import com.diagbot.enums.TypeEnum;
|
|
|
|
|
|
@@ -73,6 +75,26 @@ public class MsgUtil {
|
|
return billMsg;
|
|
return billMsg;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 开单合理性通用提示信息
|
|
|
|
+ *
|
|
|
|
+ * @param orderName 原开单项
|
|
|
|
+ * @param orderStandName 标准开单项
|
|
|
|
+ * @param content 匹配内容
|
|
|
|
+ * @param type 类型
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public static BillMsg getBillLisOrderMsg(String orderName, String orderStandName, String content, String type) {
|
|
|
|
+ BillMsg billMsg = new BillMsg();
|
|
|
|
+ String msg = String.format("该患者可能正在用药%s,会影响%s结果,请留意", content, orderName);
|
|
|
|
+ billMsg.setMsg(msg);
|
|
|
|
+ billMsg.setOrderName(orderName);
|
|
|
|
+ billMsg.setOrderStandName(orderStandName);
|
|
|
|
+ billMsg.setContent(content);
|
|
|
|
+ billMsg.setType(type);
|
|
|
|
+ return billMsg;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 开单合理性——互斥提示信息
|
|
* 开单合理性——互斥提示信息
|
|
*
|
|
*
|
|
@@ -115,9 +137,10 @@ public class MsgUtil {
|
|
* @param content
|
|
* @param content
|
|
* @param name
|
|
* @param name
|
|
* @param type
|
|
* @param type
|
|
|
|
+ * @param otherTipNeoDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static BillMsg getCommonOtherTipLisMsg(String content, String name, String type) {
|
|
|
|
|
|
+ public static BillMsg getCommonOtherTipLisMsg(String content, String name, String type, OtherTipNeoDTO otherTipNeoDTO) {
|
|
BillMsg billMsg = new BillMsg();
|
|
BillMsg billMsg = new BillMsg();
|
|
String msg = "";
|
|
String msg = "";
|
|
if (TypeEnum.disease.getName().equals(type)) {
|
|
if (TypeEnum.disease.getName().equals(type)) {
|
|
@@ -130,6 +153,8 @@ public class MsgUtil {
|
|
billMsg.setMsg(msg);
|
|
billMsg.setMsg(msg);
|
|
billMsg.setContent(content);
|
|
billMsg.setContent(content);
|
|
billMsg.setType(type);
|
|
billMsg.setType(type);
|
|
|
|
+ billMsg.setOrderName(otherTipNeoDTO.getName());
|
|
|
|
+ billMsg.setOrderDetailName(otherTipNeoDTO.getDetailName());
|
|
return billMsg;
|
|
return billMsg;
|
|
}
|
|
}
|
|
|
|
|