|
@@ -4,8 +4,7 @@ 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.Clinical;
|
|
|
-import com.lantone.qc.pub.model.entity.Lis;
|
|
|
-import com.lantone.qc.pub.model.entity.Negative;
|
|
|
+import com.lantone.qc.pub.model.label.PresentLabel;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -25,8 +24,16 @@ public class BEH0013 extends QCCatalogue {
|
|
|
if(inputInfo.getBeHospitalizedDoc() == null){
|
|
|
return;
|
|
|
}
|
|
|
+ PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();
|
|
|
+ if (presentLabel == null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String text = presentLabel.getText();
|
|
|
+ if (text.contains("无")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
List<Clinical> clinicalNegative = new ArrayList<>();
|
|
|
- List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();
|
|
|
+ List<Clinical> clinicals = presentLabel.getClinicals();
|
|
|
if(clinicals.size()>0){
|
|
|
for (Clinical clinical:clinicals) {
|
|
|
if(clinical.getNegative() != null){
|