|
@@ -4,6 +4,7 @@ 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.entity.BloodTransfusion;
|
|
import com.lantone.qc.pub.model.entity.BloodTransfusion;
|
|
|
|
+import com.lantone.qc.pub.model.label.PastLabel;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -22,11 +23,21 @@ public class BEH0028 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
- if(inputInfo.getBeHospitalizedDoc() == null){
|
|
|
|
|
|
+ if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- List<BloodTransfusion> bloodTransfusions = inputInfo.getBeHospitalizedDoc().getPastLabel().getBloodTransfusions();
|
|
|
|
|
|
+ PastLabel pastLabel = inputInfo.getBeHospitalizedDoc().getPastLabel();
|
|
|
|
+ if (pastLabel == null) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ String pastText = pastLabel.getText();
|
|
|
|
+ if (StringUtil.isNotBlank(pastText) && pastText.contains("输血")) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ List<BloodTransfusion> bloodTransfusions = pastLabel.getBloodTransfusions();
|
|
if (ListUtil.isNotEmpty(bloodTransfusions)) {
|
|
if (ListUtil.isNotEmpty(bloodTransfusions)) {
|
|
if (bloodTransfusions.stream().map(i -> i.getName()).filter(i -> StringUtil.isNotBlank(i)).count() > 0) {
|
|
if (bloodTransfusions.stream().map(i -> i.getName()).filter(i -> StringUtil.isNotBlank(i)).count() > 0) {
|
|
status.set("0");
|
|
status.set("0");
|
|
@@ -34,9 +45,8 @@ public class BEH0028 extends QCCatalogue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Map<String, String> structureMap_beh = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
Map<String, String> structureMap_beh = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
- if(StringUtils.isNotEmpty(structureMap_beh.get("输血史"))){
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(structureMap_beh.get("输血史"))) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- return;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|