|
@@ -3,12 +3,9 @@ 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.entity.Clinical;
|
|
|
|
import com.lantone.qc.pub.model.entity.PD;
|
|
import com.lantone.qc.pub.model.entity.PD;
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
-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.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -23,17 +20,17 @@ import java.util.List;
|
|
@Component
|
|
@Component
|
|
public class BEH0001 extends QCCatalogue {
|
|
public class BEH0001 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
-
|
|
|
|
- status.set("0");
|
|
|
|
if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
|
|
ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
|
|
if (chiefLabel == null) {
|
|
if (chiefLabel == null) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
String chiefText = chiefLabel.getText();
|
|
String chiefText = chiefLabel.getText();
|
|
- if(StringUtil.isBlank(chiefText)){
|
|
|
|
|
|
+ if (StringUtil.isBlank(chiefText)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -75,6 +72,7 @@ public class BEH0001 extends QCCatalogue {
|
|
status.set("-1");
|
|
status.set("-1");
|
|
}*/
|
|
}*/
|
|
}
|
|
}
|
|
|
|
+
|
|
private boolean isDate(String pdName) {
|
|
private boolean isDate(String pdName) {
|
|
String regex = "[0-9]{4}.?[0-9]{2}.?[0-9]{2}";
|
|
String regex = "[0-9]{4}.?[0-9]{2}.?[0-9]{2}";
|
|
return pdName.matches(regex);
|
|
return pdName.matches(regex);
|