|
@@ -3,6 +3,7 @@ package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
|
+import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
import com.lantone.qc.pub.model.entity.General;
|
|
import com.lantone.qc.pub.model.entity.General;
|
|
import com.lantone.qc.pub.model.entity.GeneralDesc;
|
|
import com.lantone.qc.pub.model.entity.GeneralDesc;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
@@ -20,6 +21,11 @@ import java.util.List;
|
|
@Component
|
|
@Component
|
|
public class BEH0445 extends QCCatalogue {
|
|
public class BEH0445 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
|
+ BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
|
+ if (beHospitalizedDoc == null) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
List<GeneralDesc> generals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGenerals();
|
|
List<GeneralDesc> generals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGenerals();
|
|
if (ListUtil.isNotEmpty(generals)) {
|
|
if (ListUtil.isNotEmpty(generals)) {
|
|
for (GeneralDesc general : generals) {
|
|
for (GeneralDesc general : generals) {
|