|
@@ -18,7 +18,14 @@ public class BEH0056 extends QCCatalogue {
|
|
@Override
|
|
@Override
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
ConjugalRelation conjugalRelation = inputInfo.getBeHospitalizedDoc().getMaritalLabel().getConjugalRelation();
|
|
ConjugalRelation conjugalRelation = inputInfo.getBeHospitalizedDoc().getMaritalLabel().getConjugalRelation();
|
|
- if (conjugalRelation != null && StringUtil.isNotBlank(conjugalRelation.getName())) {
|
|
|
|
|
|
+ long cont = inputInfo.getBeHospitalizedDoc().getMaritalLabel()
|
|
|
|
+ .getFamily().stream()
|
|
|
|
+ .filter(family -> family.getName().contains("配偶") && family.getDead()!=null).count();
|
|
|
|
+ if (conjugalRelation != null) {
|
|
|
|
+ if(StringUtil.isNotBlank(conjugalRelation.getName()) || cont > 0){
|
|
|
|
+ status.set("0");
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
status.set("0");
|
|
status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|