|
@@ -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,8 +27,12 @@ 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();
|
|
@@ -34,8 +40,6 @@ public class BEH0013 extends QCCatalogue {
|
|
|
if ((text.contains("无") || text.contains("否认")) && !text.contains("诱因")) {
|
|
|
return;
|
|
|
}
|
|
|
- } else {
|
|
|
- return;
|
|
|
}
|
|
|
List<Clinical> clinicalNegative = new ArrayList<>();
|
|
|
List<Clinical> clinicals = presentLabel.getClinicals();
|