|
@@ -1,8 +1,8 @@
|
|
|
package com.diagbot.util;
|
|
|
+
|
|
|
import com.diagbot.biz.push.entity.Lis;
|
|
|
import com.diagbot.dto.BillMsg;
|
|
|
import com.diagbot.enums.ConEnum;
|
|
|
-import com.diagbot.enums.NeoEnum;
|
|
|
import com.diagbot.enums.TypeEnum;
|
|
|
|
|
|
/**
|
|
@@ -75,12 +75,20 @@ public class MsgUtil {
|
|
|
String msg = "";
|
|
|
switch (TypeEnum.getEnum(otherType)) {
|
|
|
case lis: // 其他值提醒——化验
|
|
|
- if (TypeEnum.disease.getName().equals(type)) {
|
|
|
- msg = String.format("该患者%s,患有%s,请留意", content, name);
|
|
|
- } else if (TypeEnum.drug.getName().equals(type)) {
|
|
|
- msg = String.format("该患者%s,可能正在服用%s,请留意", content, name);
|
|
|
- } else if (ConEnum.group.getName().equals(type)) {
|
|
|
- msg = String.format("该患者%s,%s,请留意", content, name);
|
|
|
+ switch (TypeEnum.getEnum(type)) {
|
|
|
+ case disease: // 诊断
|
|
|
+ msg = String.format("该患者%s,患有%s,请留意", content, name);
|
|
|
+ break;
|
|
|
+ case drug: // 药品
|
|
|
+ msg = String.format("该患者%s,可能正在服用%s,请留意", content, name);
|
|
|
+ break;
|
|
|
+ case group: // 人群
|
|
|
+ case lis: // 化验
|
|
|
+ msg = String.format("该患者%s,%s,请留意", content, name);
|
|
|
+ break;
|
|
|
+ case lisSelf: // 就化验本身一个条件
|
|
|
+ msg = String.format("该患者%s,请留意", content);
|
|
|
+ break;
|
|
|
}
|
|
|
billMsg.setType(type);
|
|
|
billMsg.setOrderName(lis.getName());
|
|
@@ -118,6 +126,7 @@ public class MsgUtil {
|
|
|
content = "可能正在用药" + content;
|
|
|
break;
|
|
|
case allergicmeds: // 禁忌药品
|
|
|
+ case otherAllergy: // 禁忌其他过敏原
|
|
|
content = content + "过敏";
|
|
|
break;
|
|
|
case operations: // 手术
|