Browse Source

特殊提醒改为其他提醒,加入假数据

gaodm 4 năm trước cách đây
mục cha
commit
7cf5e8c318

+ 2 - 2
src/main/java/com/diagbot/dto/IndicationDTO.java

@@ -20,8 +20,8 @@ public class IndicationDTO {
     private List<BillMsg> billMsgList = new ArrayList<>();
     // 高危药品、手术
     private List<BillMsg> highRiskList = new ArrayList<>();
-    // 特殊指标提醒
-    private List<BillMsg> specialList = new ArrayList<>();
+    // 其他提醒
+    private List<BillMsg> otherList = new ArrayList<>();
     // 记录调试信息
     private Map<String, Object> debug = new LinkedHashMap<>();
 }

+ 13 - 0
src/main/java/com/diagbot/facade/PushFacade.java

@@ -1,6 +1,7 @@
 package com.diagbot.facade;
 
 import com.diagbot.client.CdssCoreClient;
+import com.diagbot.dto.BillMsg;
 import com.diagbot.dto.IndicationDTO;
 import com.diagbot.dto.PushBaseDTO;
 import com.diagbot.dto.PushDTO;
@@ -185,6 +186,18 @@ public class PushFacade {
         RespDTO<IndicationDTO> resp = cdssCoreClient.indication(indicationPushVO);
         RespDTOUtil.respNGDeal(resp, "远程调用推理接口失败");
         IndicationDTO indicationDTO = resp.data;
+        //加入其他提醒假数据
+        if (ListUtil.isEmpty(indicationDTO.getOtherList())){
+            List<BillMsg> otherList = new ArrayList<>();
+            BillMsg other = new BillMsg();
+            other.setMsg("该患者血小板计数<10×10^9/L,建议输注血小板。(假数据)");
+            other.setOrderName("血小板");
+            other.setOrderStandName("血小板");
+            other.setContent("");
+            other.setType("输血");
+            otherList.add(other);
+            indicationDTO.setOtherList(otherList);
+        }
         return indicationDTO;
     }
 

+ 1 - 1
src/main/java/com/diagbot/vo/IndicationPushVO.java

@@ -14,7 +14,7 @@ import javax.validation.constraints.NotBlank;
 @Setter
 public class IndicationPushVO extends SearchData {
     /**
-     * 规则类型(1:危急值提醒,2:开单合理项,3:高危药品、手术,4:特殊指标提醒)
+     * 规则类型(1:危急值提醒,2:开单合理项,3:高危药品、手术,4:其他提醒)
      */
     @NotBlank(message = "ruleType不能为空")
     private String ruleType = "";

+ 1 - 1
src/main/java/com/diagbot/web/PushController.java

@@ -55,7 +55,7 @@ public class PushController {
         return RespDTO.onSuc(data);
     }
 
-    @ApiOperation(value = "开单合理项推理[by:zhaops]", notes = "ruleType(1:危急值提醒,2:开单合理项,3:高危药品、手术,4:特殊指标提醒)")
+    @ApiOperation(value = "开单合理项推理[by:zhaops]", notes = "ruleType(1:危急值提醒,2:开单合理项,3:高危药品、手术,4:其他提醒)")
     @PostMapping("/indicationPush")
     @SysLogger("indicationPush")
     @TokenAuth