|
@@ -3,10 +3,9 @@ package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
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.Diag;
|
|
|
import com.lantone.qc.pub.model.entity.Family;
|
|
|
import com.lantone.qc.pub.model.label.FamilyLabel;
|
|
|
-import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -25,17 +24,19 @@ public class BEH0074 extends QCCatalogue {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
- if (inputInfo.getBeHospitalizedDoc().getFamilyLabel() != null) {
|
|
|
- FamilyLabel familyLabel = inputInfo.getBeHospitalizedDoc().getFamilyLabel();
|
|
|
- if (familyLabel == null){
|
|
|
+ FamilyLabel familyLabel = inputInfo.getBeHospitalizedDoc().getFamilyLabel();
|
|
|
+ if (familyLabel == null) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<Family> families = familyLabel.getFamilies();
|
|
|
+ if (ListUtil.isEmpty(families)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (Family family : families) {
|
|
|
+ if (family.getTumour() != null) {
|
|
|
status.set("0");
|
|
|
- return;
|
|
|
- }
|
|
|
- List<Family> families = familyLabel.getFamilies();
|
|
|
- for (Family family : families) {
|
|
|
- if (family.getTumour() != null) {
|
|
|
- status.set("0");
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|