|
@@ -3,11 +3,13 @@ package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.entity.Diag;
|
|
|
import com.lantone.qc.pub.model.label.PastLabel;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@@ -39,5 +41,13 @@ public class BEH0454 extends QCCatalogue {
|
|
|
|| pastLabel.getText().contains("详见原病历")) {
|
|
|
status.set("0");
|
|
|
}
|
|
|
+ //既往有任一阳性疾病名称,则认为有健康状况
|
|
|
+ List<Diag> diags = pastLabel.getDiags();
|
|
|
+ for (Diag diag : diags) {
|
|
|
+ if (diag.getNegative() == null) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|