|
@@ -8,16 +8,15 @@ import com.diagbot.dto.IndicationDTO;
|
|
|
import com.diagbot.dto.NodeNeoDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
import com.diagbot.enums.TypeEnum;
|
|
|
-import com.diagbot.model.entity.Vital;
|
|
|
import com.diagbot.model.label.PacsLabel;
|
|
|
import com.diagbot.model.label.VitalLabel;
|
|
|
-import com.diagbot.rule.AgeRule;
|
|
|
+import com.diagbot.rule.CommonRule;
|
|
|
import com.diagbot.util.CoreUtil;
|
|
|
-import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.MsgUtil;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -29,6 +28,9 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class HighRiskProcess {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ CommonRule commonRule;
|
|
|
+
|
|
|
/**
|
|
|
* 处理业务
|
|
|
*
|
|
@@ -36,21 +38,12 @@ public class HighRiskProcess {
|
|
|
* @param res
|
|
|
*/
|
|
|
public void process(List<HighRiskNeoDTO> highRiskNeoDTOList, IndicationDTO res, WordCrfDTO wordCrfDTO) {
|
|
|
+ List<BillMsg> highRiskList = new ArrayList<>();
|
|
|
for (HighRiskNeoDTO highRiskNeoDTO : highRiskNeoDTOList) {
|
|
|
System.out.println(highRiskNeoDTO);
|
|
|
String type = highRiskNeoDTO.getType();
|
|
|
if (highRiskNeoDTO.getIsHighrisk()) {
|
|
|
- BillMsg billMsg = new BillMsg();
|
|
|
- if (TypeEnum.operation.getName().equals(type)) {
|
|
|
- billMsg.setMsg(highRiskNeoDTO.getName() + "为高风险手术,请留意");
|
|
|
- } else if (TypeEnum.drug.getName().equals(type)) {
|
|
|
- billMsg.setMsg(highRiskNeoDTO.getName() + "为" + highRiskNeoDTO.getHighLevel() + "药品,请留意");
|
|
|
- }
|
|
|
-
|
|
|
- billMsg.setOrderName(highRiskNeoDTO.getName());
|
|
|
- billMsg.setOrderStandName(highRiskNeoDTO.getStandname());
|
|
|
- billMsg.setType(type);
|
|
|
- res.getHighRiskList().add(billMsg);
|
|
|
+ commonRule.highRisk(highRiskNeoDTO, highRiskList);
|
|
|
} else {
|
|
|
|
|
|
List<Item> diag = wordCrfDTO.getDiag();
|
|
@@ -112,5 +105,6 @@ public class HighRiskProcess {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ res.setHighRiskList(highRiskList);
|
|
|
}
|
|
|
}
|