|
@@ -23,6 +23,8 @@ import org.springframework.stereotype.Component;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
+// import java.math.BigDecimal;
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 开单总入口
|
|
|
* @author: zhoutg
|
|
@@ -32,6 +34,7 @@ import java.util.List;
|
|
|
public class BillProcess {
|
|
|
|
|
|
public void process(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO res) {
|
|
|
+ // 合并图谱数据到同一个对象中
|
|
|
List<BillNeoMaxDTO> billNeoMaxDTOList = new ArrayList<>();
|
|
|
for (BillNeoDTO billNeoDTO : billNeoDTOList) {
|
|
|
BillNeoMaxDTO billNeoMaxDTO = new BillNeoMaxDTO();
|
|
@@ -43,6 +46,12 @@ public class BillProcess {
|
|
|
BeanUtil.copyProperties(billNeoDTO.getPacsBillNeoDTO(), billNeoMaxDTO);
|
|
|
}
|
|
|
billNeoMaxDTO.setName(billNeoDTO.getName());
|
|
|
+ // 测试数据开始
|
|
|
+ // billNeoMaxDTO.setGender("男");
|
|
|
+ // billNeoMaxDTO.getAgeNeoDTO().setMax(new BigDecimal(30));
|
|
|
+ // billNeoMaxDTO.getAgeNeoDTO().setMin(new BigDecimal(25));
|
|
|
+ // 测试数据结束
|
|
|
+
|
|
|
billNeoMaxDTOList.add(billNeoMaxDTO);
|
|
|
}
|
|
|
processRule(billNeoMaxDTOList, wordCrfDTO, res);
|
|
@@ -68,15 +77,15 @@ public class BillProcess {
|
|
|
List<Lis> lis = wordCrfDTO.getLis();
|
|
|
List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
|
|
|
|
- List<BillMsg> drugBill = new ArrayList<>();
|
|
|
+ List<BillMsg> billMsgList = new ArrayList<>();
|
|
|
for (BillNeoMaxDTO bill : billNeoMaxDTOList) {
|
|
|
// 性别
|
|
|
BillMsg sexMsg = SexRule.compareSexWithBill(bill.getGender(), wordCrfDTO, bill.getName());
|
|
|
- CoreUtil.addBeanToList(drugBill, sexMsg);
|
|
|
+ CoreUtil.addBeanToList(billMsgList, sexMsg);
|
|
|
|
|
|
// 诊断
|
|
|
BillMsg billMsg_disease = DiagRule.compareDiseaseWithBill(bill.getDisease(), diags, bill.getName());
|
|
|
- CoreUtil.addBeanToList(drugBill, billMsg_disease);
|
|
|
+ CoreUtil.addBeanToList(billMsgList, billMsg_disease);
|
|
|
|
|
|
// //化验
|
|
|
// BillMsg lisMsg = LisPacsRule.compareLisPacsWithBill(drug.getLis(), lis, bill.getName());
|
|
@@ -92,10 +101,10 @@ public class BillProcess {
|
|
|
|
|
|
// 年龄
|
|
|
BillMsg ageMsg = AgeRule.compareAgeWithBill(bill.getAgeNeoDTO(), wordCrfDTO, bill.getName());
|
|
|
- CoreUtil.addBeanToList(drugBill, ageMsg);
|
|
|
+ CoreUtil.addBeanToList(billMsgList, ageMsg);
|
|
|
|
|
|
}
|
|
|
- indicationDTO.setDrugBill(drugBill);
|
|
|
+ indicationDTO.setBillMsgList(billMsgList);
|
|
|
}
|
|
|
//
|
|
|
// /**
|