浏览代码

医生药品限制使用提醒

yuchengwei 6 月之前
父节点
当前提交
a93dda056b
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/main/java/com/diagbot/process/OtherTipProcess.java

+ 6 - 3
src/main/java/com/diagbot/process/OtherTipProcess.java

@@ -366,10 +366,13 @@ public class OtherTipProcess {
                 List<Long> specialConceptIds = drugGradeListMap.get(2).stream().map(KlDrug::getConceptId).collect(Collectors.toList());
                 List<String> specialUniqueNames = specialConceptIds.stream().map(drugConceptIdNameMap::get).collect(Collectors.toList());
                 String specialName = specialUniqueNames.stream().map(drugNameMap::get).collect(Collectors.joining("、"));
-                String msg = "1、" +limitName + "为限制使用级药品,仅主治医师及以上级别可使用\n";
-                msg += "2、" + specialName + "为特殊使用级药品,仅副主任及以上级别可使用";
-                BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.other.getName(), msg, null, null, null);
+                String msg1 = limitName + "为限制使用级药品,仅主治医师及以上级别可使用";
+                BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.other.getName(), msg1, null, null, null);
                 CoreUtil.addBeanToList(otherList, billMsg);
+
+                String msg2 = specialName + "为特殊使用级药品,仅副主任及以上级别可使用";
+                BillMsg billMsg2 = MsgUtil.getCommonOtherMsg(TypeEnum.other.getName(), msg2, null, null, null);
+                CoreUtil.addBeanToList(otherList, billMsg2);
             }else if (drugGradeListMap.containsKey(1)){
                 List<Long> limitConceptIds = drugGradeListMap.get(1).stream().map(KlDrug::getConceptId).collect(Collectors.toList());
                 List<String> limitUniqueNames = limitConceptIds.stream().map(drugConceptIdNameMap::get).collect(Collectors.toList());