|
@@ -2,8 +2,6 @@ package com.diagbot.repository;
|
|
|
|
|
|
|
|
|
import com.diagbot.biz.push.entity.Item;
|
|
|
-import com.diagbot.biz.push.entity.Lis;
|
|
|
-import com.diagbot.biz.push.entity.Pacs;
|
|
|
import com.diagbot.dto.OtherTipPacsNeoDTO;
|
|
|
import com.diagbot.dto.OtherTipTransfusionNeoDTO;
|
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
@@ -11,6 +9,8 @@ import com.diagbot.entity.node.PacsRemind;
|
|
|
import com.diagbot.entity.node.TransfusionSuggest;
|
|
|
import com.diagbot.entity.node.YiBaoDiseaseName;
|
|
|
import com.diagbot.entity.node.YiBaoOperationName;
|
|
|
+import com.diagbot.model.entity.PacsNew;
|
|
|
+import com.diagbot.model.entity.Pacs;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
|
|
@@ -30,6 +30,7 @@ public class PacsRemindNode {
|
|
|
Item item;
|
|
|
List<String> pacsdiseases = new ArrayList<>();
|
|
|
List<String> pacsresult = new ArrayList<>();
|
|
|
+ List<String> pacsresultdisease = new ArrayList<>();
|
|
|
String pacsgender = "";
|
|
|
String disname, gender, psresult, posres, negres, msg;
|
|
|
Integer age, agerange;
|
|
@@ -41,8 +42,14 @@ public class PacsRemindNode {
|
|
|
pacsdiseases.add(dg.getUniqueName());
|
|
|
}
|
|
|
|
|
|
- for (Pacs pacs : wordCrfDTO.getPacs()) {
|
|
|
- pacsresult.add(pacs.getResult());
|
|
|
+ for (PacsNew pacsNew : wordCrfDTO.getPacsLabel().getPacsNewList()) {
|
|
|
+ for (Pacs pacs : pacsNew.getPacsResults()) {
|
|
|
+ pacsresult.add(pacs.getStandName());
|
|
|
+ }
|
|
|
+
|
|
|
+ for (Pacs pacs : pacsNew.getDisease()) {
|
|
|
+ pacsresultdisease.add(pacs.getStandName());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (wordCrfDTO.getSex()==1) {
|
|
@@ -148,7 +155,7 @@ public class PacsRemindNode {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (pacsresult.get(0).contains(psresult)) {
|
|
|
+ if (pacsresult.contains(psresult) || pacsresultdisease.contains(psresult)) {
|
|
|
|
|
|
}
|
|
|
else {
|
|
@@ -156,7 +163,7 @@ public class PacsRemindNode {
|
|
|
}
|
|
|
|
|
|
if (StringUtil.isNotBlank(posres)) {
|
|
|
- if (pacsresult.get(0).contains(posres)) {
|
|
|
+ if (pacsresult.contains(posres) || pacsresultdisease.contains(posres)) {
|
|
|
|
|
|
} else {
|
|
|
proceed = false;
|
|
@@ -164,7 +171,7 @@ public class PacsRemindNode {
|
|
|
}
|
|
|
|
|
|
if (StringUtil.isNotBlank(negres)) {
|
|
|
- if (!pacsresult.get(0).contains(negres)) {
|
|
|
+ if (!pacsresult.get(0).contains(negres) && !pacsresultdisease.contains(negres)) {
|
|
|
|
|
|
} else {
|
|
|
proceed = false;
|