|
@@ -3,7 +3,9 @@ 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.doc.BeHospitalizedDoc;
|
|
|
import com.lantone.qc.pub.model.entity.Clinical;
|
|
|
+import com.lantone.qc.pub.model.label.PastLabel;
|
|
|
import com.lantone.qc.pub.model.label.PresentLabel;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -25,13 +27,20 @@ public class BEH0013 extends QCCatalogue {
|
|
|
if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
|
return;
|
|
|
}
|
|
|
- PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();
|
|
|
- if (presentLabel == null) {
|
|
|
+ BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
+ //现病史
|
|
|
+ PresentLabel presentLabel = beHospitalizedDoc.getPresentLabel();
|
|
|
+ //既往史
|
|
|
+ PastLabel pastLabel = beHospitalizedDoc.getPastLabel();
|
|
|
+ if ((presentLabel == null || StringUtil.isBlank(presentLabel.getText())) && StringUtil.isBlank(pastLabel.getText())) {
|
|
|
return;
|
|
|
}
|
|
|
String text = presentLabel.getText();
|
|
|
+ if ("。".equals(text)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (StringUtil.isNotBlank(text)) {
|
|
|
- if (text.contains("无") || text.contains("否认") || text.contains("内固定")) {
|
|
|
+ if ((text.contains("无") || text.contains("否认") || text.contains("内固定")) && !text.contains("诱因")) {
|
|
|
return;
|
|
|
}
|
|
|
}
|