|
@@ -1,15 +1,11 @@
|
|
|
package com.diagbot.process;
|
|
|
|
|
|
-import com.diagbot.biz.push.entity.Item;
|
|
|
-import com.diagbot.biz.push.entity.Lis;
|
|
|
import com.diagbot.dto.BillMsg;
|
|
|
import com.diagbot.dto.HighRiskNeoDTO;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
import com.diagbot.dto.NodeNeoDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
import com.diagbot.enums.TypeEnum;
|
|
|
-import com.diagbot.model.label.PacsLabel;
|
|
|
-import com.diagbot.model.label.VitalLabel;
|
|
|
import com.diagbot.rule.CommonRule;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -47,16 +43,14 @@ public class HighRiskProcess {
|
|
|
if (TypeEnum.operation.getName().equals(type)) {
|
|
|
List<NodeNeoDTO> factor = highRiskNeoDTO.getFactor();
|
|
|
for (NodeNeoDTO nodeNeoDTO : factor) {
|
|
|
- if (TypeEnum.disease.getName().equals(nodeNeoDTO.getTermtype())) {
|
|
|
- commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
- } else if (TypeEnum.lis.getName().equals(nodeNeoDTO.getTermtype())) {
|
|
|
- commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
- } else if (TypeEnum.pacs.getName().equals(nodeNeoDTO.getTermtype())) {
|
|
|
- commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
- } else if (TypeEnum.vital.getName().equals(nodeNeoDTO.getTermtype())) {
|
|
|
- commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
- } else if (TypeEnum.age.getName().equals(nodeNeoDTO.getTermtype())) {
|
|
|
- commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
+ switch (TypeEnum.getEnum(nodeNeoDTO.getTermtype())) {
|
|
|
+ case disease:
|
|
|
+ case lis:
|
|
|
+ case pacs:
|
|
|
+ case vital:
|
|
|
+ case age:
|
|
|
+ commonRule.highRiskComplex(nodeNeoDTO, highRiskList, highRiskNeoDTO);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|