|
@@ -6,13 +6,18 @@ import com.diagbot.dto.BillMsg;
|
|
import com.diagbot.dto.BillNeoDTO;
|
|
import com.diagbot.dto.BillNeoDTO;
|
|
import com.diagbot.dto.BillNeoMaxDTO;
|
|
import com.diagbot.dto.BillNeoMaxDTO;
|
|
import com.diagbot.dto.IndicationDTO;
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
|
+import com.diagbot.dto.NodeNeoDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.model.entity.Clinical;
|
|
import com.diagbot.model.entity.Clinical;
|
|
import com.diagbot.model.entity.Diag;
|
|
import com.diagbot.model.entity.Diag;
|
|
import com.diagbot.model.label.ChiefLabel;
|
|
import com.diagbot.model.label.ChiefLabel;
|
|
import com.diagbot.model.label.DiagLabel;
|
|
import com.diagbot.model.label.DiagLabel;
|
|
import com.diagbot.model.label.PresentLabel;
|
|
import com.diagbot.model.label.PresentLabel;
|
|
-import com.diagbot.rule.*;
|
|
|
|
|
|
+import com.diagbot.rule.AgeRule;
|
|
|
|
+import com.diagbot.rule.DiagRule;
|
|
|
|
+import com.diagbot.rule.LisRule;
|
|
|
|
+import com.diagbot.rule.PacsRule;
|
|
|
|
+import com.diagbot.rule.SexRule;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -44,9 +49,9 @@ public class BillProcess {
|
|
billNeoMaxDTO.setOrderName(billNeoDTO.getName()); // 开单名称
|
|
billNeoMaxDTO.setOrderName(billNeoDTO.getName()); // 开单名称
|
|
billNeoMaxDTO.setOrderStandName(billNeoDTO.getStandname()); // 开单标准名称
|
|
billNeoMaxDTO.setOrderStandName(billNeoDTO.getStandname()); // 开单标准名称
|
|
// 测试数据开始
|
|
// 测试数据开始
|
|
- // billNeoMaxDTO.setGender("男");
|
|
|
|
- // billNeoMaxDTO.getAgeNeoDTO().setMax(new BigDecimal(30));
|
|
|
|
- // billNeoMaxDTO.getAgeNeoDTO().setMin(new BigDecimal(25));
|
|
|
|
|
|
+ NodeNeoDTO sexNeo = new NodeNeoDTO();
|
|
|
|
+ sexNeo.setName("男");
|
|
|
|
+ billNeoMaxDTO.setGender(sexNeo);
|
|
// 测试数据结束
|
|
// 测试数据结束
|
|
|
|
|
|
System.out.println(billNeoMaxDTO);
|
|
System.out.println(billNeoMaxDTO);
|
|
@@ -78,7 +83,7 @@ public class BillProcess {
|
|
List<BillMsg> billMsgList = new ArrayList<>();
|
|
List<BillMsg> billMsgList = new ArrayList<>();
|
|
for (BillNeoMaxDTO bill : billNeoMaxDTOList) {
|
|
for (BillNeoMaxDTO bill : billNeoMaxDTOList) {
|
|
// 性别
|
|
// 性别
|
|
- BillMsg sexMsg = SexRule.compareSexWithBill(bill.getGender(), wordCrfDTO, bill);
|
|
|
|
|
|
+ BillMsg sexMsg = SexRule.compareSexWithBill(wordCrfDTO, bill);
|
|
CoreUtil.addBeanToList(billMsgList, sexMsg);
|
|
CoreUtil.addBeanToList(billMsgList, sexMsg);
|
|
|
|
|
|
// 诊断
|
|
// 诊断
|
|
@@ -86,7 +91,7 @@ public class BillProcess {
|
|
CoreUtil.addBeanToList(billMsgList, billMsg_disease);
|
|
CoreUtil.addBeanToList(billMsgList, billMsg_disease);
|
|
|
|
|
|
//化验
|
|
//化验
|
|
- BillMsg lisMsg = LisRule.compareLisWithBill(bill.getLis(), lis, bill);
|
|
|
|
|
|
+ BillMsg lisMsg = LisRule.compareLisWithBill(lis, bill);
|
|
CoreUtil.addBeanToList(billMsgList, lisMsg);
|
|
CoreUtil.addBeanToList(billMsgList, lisMsg);
|
|
|
|
|
|
//辅检
|
|
//辅检
|
|
@@ -98,7 +103,7 @@ public class BillProcess {
|
|
CoreUtil.addBeanToList(billMsgList, clinicalMsg);
|
|
CoreUtil.addBeanToList(billMsgList, clinicalMsg);
|
|
|
|
|
|
// 年龄
|
|
// 年龄
|
|
- BillMsg ageMsg = AgeRule.compareAgeWithBill(bill.getAgeNeoDTO(), wordCrfDTO, bill);
|
|
|
|
|
|
+ BillMsg ageMsg = AgeRule.compareAgeWithBill(wordCrfDTO, bill);
|
|
CoreUtil.addBeanToList(billMsgList, ageMsg);
|
|
CoreUtil.addBeanToList(billMsgList, ageMsg);
|
|
|
|
|
|
}
|
|
}
|