|
@@ -4,6 +4,7 @@ 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.Clinical;
|
|
|
+import com.lantone.qc.pub.model.entity.General;
|
|
|
import com.lantone.qc.pub.model.entity.GeneralDesc;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -20,10 +21,15 @@ import java.util.List;
|
|
|
@Component
|
|
|
public class BEH0022 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- status.set("0");
|
|
|
List<GeneralDesc> generals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGenerals();
|
|
|
- if(generals.size() == 0 || generals == null){
|
|
|
- status.set("-1");
|
|
|
+ if(generals.size() > 0 && generals != null){
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<General> gens = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGens();
|
|
|
+ if(gens.size() > 0 && gens != null){
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
}
|