|
@@ -8,11 +8,16 @@ 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.util.CoreUtil;
|
|
|
+import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.MsgUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -47,9 +52,12 @@ public class HighRiskProcess {
|
|
|
billMsg.setType(type);
|
|
|
res.getHighRiskList().add(billMsg);
|
|
|
} else {
|
|
|
+
|
|
|
List<Item> diag = wordCrfDTO.getDiag();
|
|
|
List<Lis> lisList = wordCrfDTO.getLis();
|
|
|
PacsLabel pacsLabel = wordCrfDTO.getPacsLabel();
|
|
|
+ VitalLabel vitalLabel = wordCrfDTO.getVitalLabel();
|
|
|
+ Integer age1 = wordCrfDTO.getAge();
|
|
|
// 复杂情况高危手术
|
|
|
if (TypeEnum.operation.getName().equals(type)) {
|
|
|
List<NodeNeoDTO> factor = highRiskNeoDTO.getFactor();
|
|
@@ -81,6 +89,24 @@ public class HighRiskProcess {
|
|
|
res.getHighRiskList().add(billMsg);
|
|
|
}
|
|
|
}
|
|
|
+ } else if (TypeEnum.vital.getName().equals(nodeNeoDTO.getTermtype())){
|
|
|
+ Map<String, Object> map = CoreUtil.compareVital(nodeNeoDTO, vitalLabel);
|
|
|
+ if ((Boolean) map.get("flag") == true) {
|
|
|
+ BillMsg commonBillMsg = MsgUtil.getComplexOperationMsg((String)map.get("msg"),highRiskNeoDTO.getName(), nodeNeoDTO.getTermtype());
|
|
|
+ res.getHighRiskList().add(commonBillMsg);
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(TypeEnum.age.getName().equals(nodeNeoDTO.getTermtype())){
|
|
|
+ Boolean flag = false;
|
|
|
+ if(nodeNeoDTO != null && wordCrfDTO.getAge() != null) {
|
|
|
+ Integer age = wordCrfDTO.getAge();
|
|
|
+ flag = CoreUtil.compareNum(nodeNeoDTO, age);
|
|
|
+ }
|
|
|
+ if (flag) {
|
|
|
+ String message = "年龄" + wordCrfDTO.getAge();
|
|
|
+ BillMsg billMsg = MsgUtil.getComplexOperationMsg(message, highRiskNeoDTO.getName(), nodeNeoDTO.getTermtype());
|
|
|
+ res.getHighRiskList().add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|