|
@@ -12,9 +12,7 @@ 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.AgeRule;
|
|
|
|
-import com.diagbot.rule.DiagRule;
|
|
|
|
-import com.diagbot.rule.SexRule;
|
|
|
|
|
|
+import com.diagbot.rule.*;
|
|
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;
|
|
@@ -23,8 +21,6 @@ import org.springframework.stereotype.Component;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-// import java.math.BigDecimal;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* @Description: 开单总入口
|
|
* @Description: 开单总入口
|
|
* @author: zhoutg
|
|
* @author: zhoutg
|
|
@@ -45,13 +41,15 @@ public class BillProcess {
|
|
} else if (billNeoDTO.getPacsBillNeoDTO() != null) {
|
|
} else if (billNeoDTO.getPacsBillNeoDTO() != null) {
|
|
BeanUtil.copyProperties(billNeoDTO.getPacsBillNeoDTO(), billNeoMaxDTO);
|
|
BeanUtil.copyProperties(billNeoDTO.getPacsBillNeoDTO(), billNeoMaxDTO);
|
|
}
|
|
}
|
|
- billNeoMaxDTO.setName(billNeoDTO.getName());
|
|
|
|
|
|
+ billNeoMaxDTO.setOrderName(billNeoDTO.getName()); // 开单名称
|
|
|
|
+ billNeoMaxDTO.setOrderStandName(billNeoDTO.getStandname()); // 开单标准名称
|
|
// 测试数据开始
|
|
// 测试数据开始
|
|
// billNeoMaxDTO.setGender("男");
|
|
// billNeoMaxDTO.setGender("男");
|
|
// billNeoMaxDTO.getAgeNeoDTO().setMax(new BigDecimal(30));
|
|
// billNeoMaxDTO.getAgeNeoDTO().setMax(new BigDecimal(30));
|
|
// billNeoMaxDTO.getAgeNeoDTO().setMin(new BigDecimal(25));
|
|
// billNeoMaxDTO.getAgeNeoDTO().setMin(new BigDecimal(25));
|
|
// 测试数据结束
|
|
// 测试数据结束
|
|
|
|
|
|
|
|
+ System.out.println(billNeoMaxDTO);
|
|
billNeoMaxDTOList.add(billNeoMaxDTO);
|
|
billNeoMaxDTOList.add(billNeoMaxDTO);
|
|
}
|
|
}
|
|
processRule(billNeoMaxDTOList, wordCrfDTO, res);
|
|
processRule(billNeoMaxDTOList, wordCrfDTO, res);
|
|
@@ -80,27 +78,27 @@ 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.getName());
|
|
|
|
|
|
+ BillMsg sexMsg = SexRule.compareSexWithBill(bill.getGender(), wordCrfDTO, bill);
|
|
CoreUtil.addBeanToList(billMsgList, sexMsg);
|
|
CoreUtil.addBeanToList(billMsgList, sexMsg);
|
|
|
|
|
|
// 诊断
|
|
// 诊断
|
|
- BillMsg billMsg_disease = DiagRule.compareDiseaseWithBill(bill.getDisease(), diags, bill.getName());
|
|
|
|
|
|
+ BillMsg billMsg_disease = DiagRule.compareDiseaseWithBill(bill.getDisease(), diags, bill);
|
|
CoreUtil.addBeanToList(billMsgList, billMsg_disease);
|
|
CoreUtil.addBeanToList(billMsgList, billMsg_disease);
|
|
|
|
|
|
- // //化验
|
|
|
|
- // BillMsg lisMsg = LisPacsRule.compareLisPacsWithBill(drug.getLis(), lis, bill.getName());
|
|
|
|
- // CoreUtil.addBeanToList(drugBill, lisMsg);
|
|
|
|
- //
|
|
|
|
- // //辅检
|
|
|
|
- // BillMsg pacsMsg = LisPacsRule.compareLisPacsWithBill(drug.getPacs(), pacs, bill.getName());
|
|
|
|
- // CoreUtil.addBeanToList(drugBill, pacsMsg);
|
|
|
|
- //
|
|
|
|
- // //临床表现
|
|
|
|
- // BillMsg clinicalMsg = DiagRule.compareDiseaseWithBill(drug.getClinicfindings(), clinicals, bill.getName());
|
|
|
|
- // CoreUtil.addBeanToList(drugBill, clinicalMsg);
|
|
|
|
|
|
+ //化验
|
|
|
|
+ BillMsg lisMsg = LisRule.compareLisWithBill(bill.getLis(), lis, bill);
|
|
|
|
+ CoreUtil.addBeanToList(billMsgList, lisMsg);
|
|
|
|
+
|
|
|
|
+ //辅检
|
|
|
|
+ BillMsg pacsMsg = PacsRule.comparePacsWithBill(bill.getPacs(), pacs, bill);
|
|
|
|
+ CoreUtil.addBeanToList(billMsgList, pacsMsg);
|
|
|
|
+
|
|
|
|
+ //临床表现
|
|
|
|
+ BillMsg clinicalMsg = DiagRule.compareDiseaseWithBill(bill.getClinicfindings(), clinicals, bill);
|
|
|
|
+ CoreUtil.addBeanToList(billMsgList, clinicalMsg);
|
|
|
|
|
|
// 年龄
|
|
// 年龄
|
|
- BillMsg ageMsg = AgeRule.compareAgeWithBill(bill.getAgeNeoDTO(), wordCrfDTO, bill.getName());
|
|
|
|
|
|
+ BillMsg ageMsg = AgeRule.compareAgeWithBill(bill.getAgeNeoDTO(), wordCrfDTO, bill);
|
|
CoreUtil.addBeanToList(billMsgList, ageMsg);
|
|
CoreUtil.addBeanToList(billMsgList, ageMsg);
|
|
|
|
|
|
}
|
|
}
|