|
@@ -5,9 +5,11 @@ import com.diagbot.dto.BillMsg;
|
|
|
import com.diagbot.dto.BillNeoDTO;
|
|
|
import com.diagbot.dto.BillNeoMaxDTO;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
+import com.diagbot.dto.NodeNeoDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
|
import com.diagbot.enums.NeoEnum;
|
|
|
import com.diagbot.facade.NeoFacade;
|
|
|
+import com.diagbot.model.entity.AllergyMedicine;
|
|
|
import com.diagbot.model.entity.Clinical;
|
|
|
import com.diagbot.model.entity.Operation;
|
|
|
import com.diagbot.model.label.ChiefLabel;
|
|
@@ -25,6 +27,7 @@ import com.diagbot.rule.SexRule;
|
|
|
import com.diagbot.rule.VitalRule;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
+import com.diagbot.vo.Drug;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -143,7 +146,14 @@ public class BillProcess {
|
|
|
ChiefLabel chiefLabel = wordCrfDTO.getChiefLabel();
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
PastLabel pastLabel = wordCrfDTO.getPastLabel();
|
|
|
-
|
|
|
+ List<AllergyMedicine> allergyMedicines = pastLabel.getAllergyMedicines();
|
|
|
+ List<Drug> drug = wordCrfDTO.getDrug();
|
|
|
+ for(Item item:drug){
|
|
|
+ AllergyMedicine operaData = new AllergyMedicine();
|
|
|
+ operaData.setName(item.getName());
|
|
|
+ operaData.setStandName(item.getUniqueName());
|
|
|
+ allergyMedicines.add(operaData);
|
|
|
+ }
|
|
|
// 诊断数据
|
|
|
List<Item> diags = wordCrfDTO.getDiag();
|
|
|
|
|
@@ -167,7 +177,16 @@ public class BillProcess {
|
|
|
// 手术数据
|
|
|
List<Operation> operations_present = presentLabel.getOperations();
|
|
|
List<Operation> operations_past = pastLabel.getOperations();
|
|
|
+ List<Item> operation = wordCrfDTO.getOperation();
|
|
|
+ List<Operation> operationsItem = new ArrayList<>();
|
|
|
+ for(Item item:operation){
|
|
|
+ Operation operaData = new Operation();
|
|
|
+ operaData.setName(item.getName());
|
|
|
+ operaData.setStandName(item.getUniqueName());
|
|
|
+ operationsItem.add(operaData);
|
|
|
+ }
|
|
|
operations_present.addAll(operations_past);
|
|
|
+ operations_present.addAll(operationsItem);
|
|
|
|
|
|
// 临床表现数据
|
|
|
List<Clinical> clinicals = new ArrayList<>();
|
|
@@ -206,7 +225,7 @@ public class BillProcess {
|
|
|
commonRule.compareNameWithBill(bill.getOperations(), operations_present, bill, billMsgList, NeoEnum.operations.getName());
|
|
|
|
|
|
// 禁忌过敏药品(既往史)
|
|
|
- drugRule.compareDrugWithBill(bill.getAllergicmeds(), pastLabel.getAllergyMedicines(), bill, billMsgList, NeoEnum.allergicmeds.getName());
|
|
|
+ drugRule.compareDrugWithBill(bill.getAllergicmeds(), allergyMedicines, bill, billMsgList, NeoEnum.allergicmeds.getName());
|
|
|
|
|
|
// 服用药品(现病史一般情况后的药品)
|
|
|
drugRule.compareDrugWithBill(bill.getOralmeds(), presentLabel.getTakeMedicine(), bill, billMsgList, NeoEnum.oralmeds.getName());
|