|
@@ -1,11 +1,8 @@
|
|
|
package com.diagbot.process;
|
|
|
|
|
|
import com.diagbot.dto.BillMsg;
|
|
|
-import com.diagbot.dto.BillNeoDTO;
|
|
|
+import com.diagbot.dto.HighRiskNeoDTO;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
-import com.diagbot.dto.WordCrfDTO;
|
|
|
-import com.diagbot.facade.NeoFacade;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -18,35 +15,19 @@ import java.util.List;
|
|
|
@Component
|
|
|
public class HighRiskProcess {
|
|
|
|
|
|
- @Autowired
|
|
|
- NeoFacade neoFacade;
|
|
|
-
|
|
|
- public void process(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO res) {
|
|
|
- for (BillNeoDTO billNeoDTO : billNeoDTOList) {
|
|
|
- if (billNeoDTO.getDrugBillNeoDTO() != null) {
|
|
|
- // TODO
|
|
|
- if (true) {
|
|
|
- getHighRiskMsg(billNeoDTO, "药品", res);
|
|
|
- }
|
|
|
- } else if (billNeoDTO.getLisBillNeoDTO() != null) {
|
|
|
- // TODO
|
|
|
- getHighRiskMsg(billNeoDTO, "手术", res);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
- *
|
|
|
- * @param billNeoDTO
|
|
|
- * @param type
|
|
|
+ * 处理业务
|
|
|
+ * @param highRiskNeoDTOList
|
|
|
* @param res
|
|
|
*/
|
|
|
- public void getHighRiskMsg(BillNeoDTO billNeoDTO, String type, IndicationDTO res) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- billMsg.setMsg(billNeoDTO.getName() + "为高风险要" + type + ",请留意");
|
|
|
- billMsg.setOrderName(billNeoDTO.getName());
|
|
|
- billMsg.setOrderStandName(billNeoDTO.getStandname());
|
|
|
- billMsg.setType(type);
|
|
|
- res.getHighRiskList().add(billMsg);
|
|
|
+ public void process(List<HighRiskNeoDTO> highRiskNeoDTOList, IndicationDTO res) {
|
|
|
+ for (HighRiskNeoDTO highRiskNeoDTO : highRiskNeoDTOList) {
|
|
|
+ BillMsg billMsg = new BillMsg();
|
|
|
+ billMsg.setMsg(highRiskNeoDTO.getName() + "为高风险" + highRiskNeoDTO.getType() + ",请留意");
|
|
|
+ billMsg.setOrderName(highRiskNeoDTO.getName());
|
|
|
+ billMsg.setOrderStandName(highRiskNeoDTO.getStandname());
|
|
|
+ billMsg.setType(highRiskNeoDTO.getType());
|
|
|
+ res.getHighRiskList().add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
}
|