Browse Source

辅检结构调整

zhoutg 4 years ago
parent
commit
c6434ce10d

+ 5 - 0
src/main/java/com/diagbot/facade/OtherTipFacade.java

@@ -149,6 +149,11 @@ public class OtherTipFacade {
 
         // 其他提示——辅检
         List<OtherTipPacsNeoDTO> otherTipPacsNeoDTOList = new ArrayList<>();
+        // TODO 测试数据开始
+        // OtherTipPacsNeoDTO otherTipPacsNeoDTO = new OtherTipPacsNeoDTO();
+        // otherTipPacsNeoDTO.setMsg("该患者年龄在18-60岁,主胰管内径≥3mm,可考虑主胰管扩张");
+        // otherTipPacsNeoDTOList.add(otherTipPacsNeoDTO);
+        // TODO 测试数据结束
         otherTipProcess.processPacs(otherTipPacsNeoDTOList, res);
     }
 

+ 9 - 1
src/main/java/com/diagbot/process/OtherTipProcess.java

@@ -17,6 +17,7 @@ import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
+import java.util.Set;
 import java.util.stream.Collectors;
 
 /**
@@ -69,7 +70,14 @@ public class OtherTipProcess {
      * @param res
      */
     public void processPacs(List<OtherTipPacsNeoDTO> otherTipTransfusionNeoDTOList, IndicationDTO res) {
-
+        if (ListUtil.isNotEmpty(otherTipTransfusionNeoDTOList)) {
+            // 去重
+            Set<String> msgList = otherTipTransfusionNeoDTOList.stream().map(r -> r.getMsg()).collect(Collectors.toSet());
+            for (String s : msgList) {
+                BillMsg billMsg = MsgUtil.getCommonOtherTipPacsMsg(s);
+                res.getOtherList().add(billMsg);
+            }
+        }
     }
 
     /**

+ 13 - 0
src/main/java/com/diagbot/util/MsgUtil.java

@@ -109,6 +109,19 @@ public class MsgUtil {
         return billMsg;
     }
 
+    /**
+     * 其他提醒——辅检
+     *
+     * @param content
+     * @return
+     */
+    public static BillMsg getCommonOtherTipPacsMsg(String content) {
+        BillMsg billMsg = new BillMsg();
+        billMsg.setMsg(content);
+        billMsg.setContent(content);
+        return billMsg;
+    }
+
     /**
      * 其他提醒——输血
      *