|
@@ -1,17 +1,11 @@
|
|
|
package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
-import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
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.PD;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* @ClassName : BEH0003
|
|
@@ -27,6 +21,10 @@ public class BEH0003 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
String chiefText = inputInfo.getBeHospitalizedDoc().getChiefLabel().getText();
|
|
|
+ if (StringUtil.isBlank(chiefText)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (StringUtil.isNotBlank(chiefText)) {
|
|
|
int chiefTextLength = chiefText.replaceAll("[\\p{Punct}\\pP]", "").length();
|
|
|
if (chiefTextLength <= 20) {
|