|
@@ -4,8 +4,10 @@ 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.model.label.ChiefLabel;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -31,6 +33,25 @@ public class BEH0006 extends QCCatalogue {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
+ List<Clinical> clinicalList = chiefLabel.getClinicals();
|
|
|
+ boolean flag = true;
|
|
|
+ // 主诉症状不超过1年就不报错,单位不包含“年”
|
|
|
+ for (Clinical c : clinicalList) {
|
|
|
+ List<PD> pds = c.getTimestamp();
|
|
|
+ if (ListUtil.isNotEmpty(pds)) {
|
|
|
+ for (PD pd : pds) {
|
|
|
+ if (StringUtil.isNotBlank(pd.getName()) &&
|
|
|
+ pd.getName().contains("年") && !"半年".equals(pd.getName())) {
|
|
|
+ flag = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (flag) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
String chiefText = chiefLabel.getText();
|
|
|
if (StringUtil.isNotBlank(chiefText) && chiefText.contains("半年")) {
|
|
|
status.set("0");
|