|
@@ -2,9 +2,7 @@ package com.diagbot.util;
|
|
|
|
|
|
import com.diagbot.biz.push.entity.Item;
|
|
|
import com.diagbot.biz.push.entity.Lis;
|
|
|
-import com.diagbot.dto.BillMsg;
|
|
|
import com.diagbot.dto.NodeNeoDTO;
|
|
|
-import com.diagbot.enums.TypeEnum;
|
|
|
import com.diagbot.model.entity.Clinical;
|
|
|
import com.diagbot.model.entity.Usual;
|
|
|
import com.diagbot.model.entity.Vital;
|
|
@@ -243,119 +241,6 @@ public class CoreUtil {
|
|
|
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 危急值通用提示信息
|
|
|
- *
|
|
|
- * @param content 匹配内容
|
|
|
- * @param type 类型
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getCommonCriticalMsg(String content, String type) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- String msg = String.format("该患者%s,请留意", content);
|
|
|
- billMsg.setMsg(msg);
|
|
|
- billMsg.setType(type);
|
|
|
- billMsg.setContent(content);
|
|
|
- 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;
|
|
|
- }
|
|
|
- /**
|
|
|
- * 开单合理性手术提示信息
|
|
|
- *
|
|
|
- * @param orderName 原开单项
|
|
|
- * @param orderStandName 标准开单项
|
|
|
- * @param content 匹配内容
|
|
|
- * @param type 类型
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getCommonSurgeryMsg(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;
|
|
|
- }
|
|
|
- /**
|
|
|
- * 复杂情况高危手术提示
|
|
|
- *
|
|
|
- * @param content
|
|
|
- * @param name
|
|
|
- * @param type
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getComplexOperationMsg(String name, String content, String type) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- String msg = String.format("%s:%s,请留意", name, content);
|
|
|
- billMsg.setMsg(msg);
|
|
|
- billMsg.setContent(content);
|
|
|
- billMsg.setType(type);
|
|
|
- return billMsg;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 其他提醒化验提醒
|
|
|
- *
|
|
|
- * @param content
|
|
|
- * @param name
|
|
|
- * @param type
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getCommonOtherTipLisMsg(String content, String name, String type) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- String msg = "";
|
|
|
- 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);
|
|
|
- }
|
|
|
- billMsg.setMsg(msg);
|
|
|
- billMsg.setContent(content);
|
|
|
- billMsg.setType(type);
|
|
|
- return billMsg;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 开单合理性24小时重复开通用提示信息
|
|
|
- *
|
|
|
- * @param orderName 原开单项
|
|
|
- * @param orderStandName 标准开单项
|
|
|
- * @param content 匹配内容
|
|
|
- * @param type 类型
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getBillMsg24Repeat(String orderName, String orderStandName, String content, String type) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- String msg = String.format("%s重复开立", orderName);
|
|
|
- billMsg.setMsg(msg);
|
|
|
- billMsg.setOrderName(orderName);
|
|
|
- billMsg.setOrderStandName(orderStandName);
|
|
|
- billMsg.setContent(content);
|
|
|
- billMsg.setType(type);
|
|
|
- return billMsg;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 将对象添加到列表中
|
|
|
*
|
|
@@ -738,10 +623,4 @@ public class CoreUtil {
|
|
|
public static void getDebugStr(String msg, String error, Map<String, Object> debugMap) {
|
|
|
debugMap.put(msg, error);
|
|
|
}
|
|
|
-
|
|
|
- public static void main(String[] args) {
|
|
|
- String msg = String.format("该患者%s%s%s,请留意", "套餐","明细项","值");
|
|
|
- System.out.println(msg);
|
|
|
-
|
|
|
- }
|
|
|
}
|