|
@@ -17,6 +17,7 @@ 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;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -74,15 +75,16 @@ public class BillProcess {
|
|
|
DiagLabel diagLabel = wordCrfDTO.getDiagLabel();
|
|
|
ChiefLabel chiefLabel = wordCrfDTO.getChiefLabel();
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
- List<Diag> diags =null;
|
|
|
- List<Clinical> clinicals =null;
|
|
|
+ List<Diag> diags = new ArrayList<>();
|
|
|
+ List<Clinical> clinicals = new ArrayList<>();
|
|
|
if(diagLabel != null){
|
|
|
diags = diagLabel.getDiags();
|
|
|
}
|
|
|
- if(chiefLabel != null){
|
|
|
+ if(chiefLabel != null && ListUtil.isNotEmpty(chiefLabel.getClinicals())){
|
|
|
clinicals.addAll(chiefLabel.getClinicals());
|
|
|
}
|
|
|
- if(presentLabel != null){
|
|
|
+ // 现病史临床表现数据先不用
|
|
|
+ if(presentLabel != null && ListUtil.isNotEmpty(presentLabel.getClinicals())){
|
|
|
clinicals.addAll(presentLabel.getClinicals());
|
|
|
}
|
|
|
List<Lis> lis = wordCrfDTO.getLis();
|
|
@@ -104,7 +106,7 @@ public class BillProcess {
|
|
|
CoreUtil.addBeanToList(drugBill, lisMsg);
|
|
|
|
|
|
//辅检
|
|
|
- BillMsg pacsMsg = LisPacsRule.compareLisPacsWithBill(drug.getPACS(), pacs, bill.getName());
|
|
|
+ BillMsg pacsMsg = LisPacsRule.compareLisPacsWithBill(drug.getPacs(), pacs, bill.getName());
|
|
|
CoreUtil.addBeanToList(drugBill, pacsMsg);
|
|
|
|
|
|
//临床表现
|