|
@@ -217,19 +217,16 @@ public class CoreUtil {
|
|
|
/**
|
|
|
* 危急值通用提示信息
|
|
|
*
|
|
|
- * @param compareName 匹配名称
|
|
|
- * @param compareStandName 匹配标准名称
|
|
|
+ * @param content 匹配内容
|
|
|
* @param type 类型
|
|
|
* @return
|
|
|
*/
|
|
|
- public static BillMsg getCommonCriticalMsg(String compareName,
|
|
|
- String compareStandName, String message, String type) {
|
|
|
+ public static BillMsg getCommonCriticalMsg(String content, String type) {
|
|
|
BillMsg billMsg = new BillMsg();
|
|
|
- String msg = String.format("该患者%s,请留意", message);
|
|
|
+ String msg = String.format("该患者%s,请留意", content);
|
|
|
billMsg.setMsg(msg);
|
|
|
- billMsg.setCompareName(compareName);
|
|
|
- billMsg.setCompareStandName(compareStandName);
|
|
|
billMsg.setType(type);
|
|
|
+ billMsg.setContent(content);
|
|
|
return billMsg;
|
|
|
}
|
|
|
|
|
@@ -238,37 +235,21 @@ public class CoreUtil {
|
|
|
*
|
|
|
* @param orderName 原开单项
|
|
|
* @param orderStandName 标准开单项
|
|
|
- * @param compareName 匹配名称
|
|
|
- * @param compareStandName 匹配标准名称
|
|
|
+ * @param content 匹配内容
|
|
|
* @param type 类型
|
|
|
* @return
|
|
|
*/
|
|
|
- public static BillMsg getCommonBillMsg(String orderName, String orderStandName, String compareName,
|
|
|
- String compareStandName, String type) {
|
|
|
+ public static BillMsg getCommonBillMsg(String orderName, String orderStandName, String content, String type) {
|
|
|
BillMsg billMsg = new BillMsg();
|
|
|
- String msg = String.format("该患者" + compareName + ",不宜开%s", orderName);
|
|
|
+ String msg = String.format("该患者%s,不宜开%s", content, orderName);
|
|
|
billMsg.setMsg(msg);
|
|
|
- billMsg.setCompareName(compareName);
|
|
|
- billMsg.setCompareStandName(compareStandName);
|
|
|
billMsg.setOrderName(orderName);
|
|
|
billMsg.setOrderStandName(orderStandName);
|
|
|
+ billMsg.setContent(content);
|
|
|
billMsg.setType(type);
|
|
|
return billMsg;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 开单合理性固定提示信息
|
|
|
- *
|
|
|
- * @param msg
|
|
|
- * @param msg
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BillMsg getBillMsgWithConst(String msg) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- billMsg.setMsg(msg);
|
|
|
- return billMsg;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 将对象添加到列表中
|
|
|
*
|
|
@@ -306,51 +287,15 @@ public class CoreUtil {
|
|
|
}
|
|
|
} else if (lis.getValue() != null) {
|
|
|
double value = lis.getValue();
|
|
|
- BigDecimal min = nodeNeoDTO.getMin();
|
|
|
- BigDecimal max = nodeNeoDTO.getMax();
|
|
|
-
|
|
|
- if (min != null && max != null) {
|
|
|
- int minAge = min.intValue();
|
|
|
- int maxAge = max.intValue();
|
|
|
- if (minAge <= value && value <= maxAge) {
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- } else if (min != null && max == null) {
|
|
|
- int minAge = min.intValue();
|
|
|
- if (minAge <= value) {
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- } else if (min == null && max != null) {
|
|
|
- int maxAge = max.intValue();
|
|
|
- if (value <= maxAge) {
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- }
|
|
|
+ flag = compareNum(nodeNeoDTO, value);
|
|
|
if (flag) {
|
|
|
- map.put("msg", lis.getName() + lis.getDetailName() + lis.getValue());
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
}
|
|
|
}
|
|
|
map.put("flag", flag);
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 比较字符串是否相等
|
|
|
- *
|
|
|
- * @param nodeNeoDTO
|
|
|
- * @param value
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static boolean compareStr(NodeNeoDTO nodeNeoDTO, String value) {
|
|
|
- boolean flag = false;
|
|
|
- if (StringUtil.isNotBlank(value)) {
|
|
|
- if (value.equals(nodeNeoDTO.getVal())) {
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- }
|
|
|
- return flag;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 比较数值大小(int)
|
|
|
*
|