Ver código fonte

规则修改

hujing 5 anos atrás
pai
commit
1a868544da

+ 7 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0082.java

@@ -19,8 +19,11 @@ public class BEH0082 extends QCCatalogue {
     @Override
     protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
         if (inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getPacsLabel() != null) {
+            int outerCourtyardObjNum = 0;
             for (Pacs pacs : inputInfo.getBeHospitalizedDoc().getPacsLabel().getPacses()) {
-                if (pacs.getOuterCourtyard() != null) {
+                if (pacs.getOuterCourtyard() == null) {
+                    outerCourtyardObjNum++;
+                } else {
                     OuterCourtyard outerCourtyard = pacs.getOuterCourtyard();
                     if (outerCourtyard.getPd().size() > 0 && StringUtil.isNotBlank(outerCourtyard.getPacsValue().getName())) {
                         status = "0";
@@ -28,6 +31,9 @@ public class BEH0082 extends QCCatalogue {
                     }
                 }
             }
+            if (outerCourtyardObjNum == inputInfo.getBeHospitalizedDoc().getPacsLabel().getPacses().size()) {
+                status = "0";
+            }
         }
     }
 }