|
@@ -4,7 +4,6 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.entity.Allergy;
|
|
|
-import com.lantone.qc.pub.model.entity.AllergyFood;
|
|
|
import com.lantone.qc.pub.model.label.PastLabel;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
@@ -40,7 +39,8 @@ public class BEH0026 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
String pastText = pastLabel.getText();
|
|
|
- if (pastText.contains("食物过敏") || pastText.contains("详见原病历") || pastText.contains("芒果过敏") || pastText.contains("食物、药物过敏")) {
|
|
|
+ if (pastText.contains("食物过敏") || pastText.contains("详见原病历") || pastText.contains("芒果过敏") || pastText.contains("食物、药物过敏")
|
|
|
+ || pastText.contains("食物及药物")) {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
@@ -52,18 +52,6 @@ public class BEH0026 extends QCCatalogue {
|
|
|
// && i.getAllergyFood() != null
|
|
|
// && StringUtil.isNotBlank(i.getAllergyFood().getName())
|
|
|
).count();
|
|
|
- if (count > 0) {
|
|
|
- status.set("0");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- List<AllergyFood> allergyFoods = pastLabel.getAllergyFoods();
|
|
|
- if (ListUtil.isNotEmpty(allergyFoods)) {
|
|
|
- long count = allergyFoods.stream().filter(
|
|
|
- i -> i != null
|
|
|
- && StringUtil.isNotBlank(i.getName())
|
|
|
- ).count();
|
|
|
if (count > 0) {
|
|
|
status.set("0");
|
|
|
}
|