|
@@ -25,6 +25,26 @@ public class MsgUtil {
|
|
|
return billMsg;
|
|
|
}
|
|
|
|
|
|
+ // /**
|
|
|
+ // * 开单合理性通用提示信息
|
|
|
+ // *
|
|
|
+ // * @param orderName 原开单项
|
|
|
+ // * @param orderStandName 标准开单项
|
|
|
+ // * @param content 匹配内容
|
|
|
+ // * @param type 类型
|
|
|
+ // * @return
|
|
|
+ // */
|
|
|
+ // public static BillMsg getCommonBillMsg(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;
|
|
|
+ // }
|
|
|
+
|
|
|
/**
|
|
|
* 开单合理性通用提示信息
|
|
|
*
|
|
@@ -32,11 +52,16 @@ public class MsgUtil {
|
|
|
* @param orderStandName 标准开单项
|
|
|
* @param content 匹配内容
|
|
|
* @param type 类型
|
|
|
+ * @param type 开单项类型
|
|
|
* @return
|
|
|
*/
|
|
|
- public static BillMsg getCommonBillMsg(String orderName, String orderStandName, String content, String type) {
|
|
|
+ public static BillMsg getCommonBillMsg(String orderName, String orderStandName, String content, String type, String orderType) {
|
|
|
BillMsg billMsg = new BillMsg();
|
|
|
String msg = String.format("该患者%s,不宜开%s", content, orderName);
|
|
|
+ // 输血提示语是另一种写法
|
|
|
+ if (TypeEnum.transfusion.getName().equals(orderType)) {
|
|
|
+ msg = String.format("该患者%s,谨慎输注%s", content, orderName);
|
|
|
+ }
|
|
|
billMsg.setMsg(msg);
|
|
|
billMsg.setOrderName(orderName);
|
|
|
billMsg.setOrderStandName(orderStandName);
|
|
@@ -128,9 +153,13 @@ public class MsgUtil {
|
|
|
* @param type 类型
|
|
|
* @return
|
|
|
*/
|
|
|
- public static BillMsg getCommonSurgeryMsg(String orderName, String orderStandName, String content, String type) {
|
|
|
+ public static BillMsg getCommonSurgeryMsg(String orderName, String orderStandName, String content, String type, String orderType) {
|
|
|
BillMsg billMsg = new BillMsg();
|
|
|
String msg = String.format("该患者有%s史,不宜开%s", content, orderName);
|
|
|
+ // 输血提示语是另一种写法
|
|
|
+ if (TypeEnum.transfusion.getName().equals(orderType)) {
|
|
|
+ msg = String.format("该患者有%s史,谨慎输注%s", content, orderName);
|
|
|
+ }
|
|
|
billMsg.setMsg(msg);
|
|
|
billMsg.setOrderName(orderName);
|
|
|
billMsg.setOrderStandName(orderStandName);
|