|
@@ -2,7 +2,7 @@ package com.diagbot.process;
|
|
|
|
|
|
import com.diagbot.biz.push.entity.Lis;
|
|
|
import com.diagbot.biz.push.entity.Pacs;
|
|
|
-import com.diagbot.dto.BillDTO;
|
|
|
+import com.diagbot.dto.IndicationDTO;
|
|
|
import com.diagbot.dto.BillMsg;
|
|
|
import com.diagbot.dto.BillNeoDTO;
|
|
|
import com.diagbot.dto.DrugBillNeoDTO;
|
|
@@ -14,7 +14,6 @@ import com.diagbot.model.label.DiagLabel;
|
|
|
import com.diagbot.model.label.PresentLabel;
|
|
|
import com.diagbot.rule.AgeRule;
|
|
|
import com.diagbot.rule.DiagRule;
|
|
|
-import com.diagbot.rule.LisPacsRule;
|
|
|
import com.diagbot.rule.SexRule;
|
|
|
import com.diagbot.util.CoreUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -31,15 +30,13 @@ import java.util.List;
|
|
|
@Component
|
|
|
public class BillProcess {
|
|
|
|
|
|
- public BillDTO process(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO) {
|
|
|
- BillDTO billDTO = new BillDTO();
|
|
|
+ public void process(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO res) {
|
|
|
// 化验规则处理
|
|
|
- processBillWithLis(billNeoDTOList, wordCrfDTO, billDTO);
|
|
|
+ processBillWithLis(billNeoDTOList, wordCrfDTO, res);
|
|
|
// 辅检规则处理
|
|
|
- processBillWithPacs(billNeoDTOList, wordCrfDTO, billDTO);
|
|
|
+ processBillWithPacs(billNeoDTOList, wordCrfDTO, res);
|
|
|
// 药品规则处理
|
|
|
- processBillWithDrug(billNeoDTOList, wordCrfDTO, billDTO);
|
|
|
- return billDTO;
|
|
|
+ processBillWithDrug(billNeoDTOList, wordCrfDTO, res);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -47,9 +44,9 @@ public class BillProcess {
|
|
|
*
|
|
|
* @param billNeoDTOList
|
|
|
* @param wordCrfDTO
|
|
|
- * @param billDTO
|
|
|
+ * @param indicationDTO
|
|
|
*/
|
|
|
- public void processBillWithLis(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, BillDTO billDTO) {
|
|
|
+ public void processBillWithLis(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO indicationDTO) {
|
|
|
|
|
|
}
|
|
|
|
|
@@ -58,9 +55,9 @@ public class BillProcess {
|
|
|
*
|
|
|
* @param billNeoDTOList
|
|
|
* @param wordCrfDTO
|
|
|
- * @param billDTO
|
|
|
+ * @param indicationDTO
|
|
|
*/
|
|
|
- public void processBillWithPacs(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, BillDTO billDTO) {
|
|
|
+ public void processBillWithPacs(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO indicationDTO) {
|
|
|
|
|
|
}
|
|
|
|
|
@@ -69,9 +66,9 @@ public class BillProcess {
|
|
|
*
|
|
|
* @param billNeoDTOList
|
|
|
* @param wordCrfDTO
|
|
|
- * @param billDTO
|
|
|
+ * @param indicationDTO
|
|
|
*/
|
|
|
- public void processBillWithDrug(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, BillDTO billDTO) {
|
|
|
+ public void processBillWithDrug(List<BillNeoDTO> billNeoDTOList, WordCrfDTO wordCrfDTO, IndicationDTO indicationDTO) {
|
|
|
DiagLabel diagLabel = wordCrfDTO.getDiagLabel();
|
|
|
ChiefLabel chiefLabel = wordCrfDTO.getChiefLabel();
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
@@ -101,24 +98,24 @@ public class BillProcess {
|
|
|
BillMsg billMsg_disease = DiagRule.compareDiseaseWithBill(drug.getDisease(), diags, bill.getName());
|
|
|
CoreUtil.addBeanToList(drugBill, 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 = 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 ageMsg = AgeRule.compareAgeWithBill(drug.getAgeNeoDTO(), wordCrfDTO, bill.getName());
|
|
|
CoreUtil.addBeanToList(drugBill, ageMsg);
|
|
|
|
|
|
}
|
|
|
- billDTO.setDrugBill(drugBill);
|
|
|
+ indicationDTO.setDrugBill(drugBill);
|
|
|
}
|
|
|
|
|
|
}
|