|
@@ -1,5 +1,6 @@
|
|
|
package org.diagbot.common.push.filter.rule;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.diagbot.common.push.bean.SearchData;
|
|
|
import org.diagbot.nlp.rule.module.PreResult;
|
|
|
|
|
@@ -18,7 +19,7 @@ public class CalcFormula {
|
|
|
String units = "";
|
|
|
boolean hasCr = false;
|
|
|
for (PreResult preResult : lis) {
|
|
|
- if ("肌酐(Cr)".equals(preResult.getDetailName())) {
|
|
|
+ if ("肌酐(Cr)".equals(preResult.getDetailName()) && StringUtils.isNotEmpty(preResult.getValue())) {
|
|
|
crValue = preResult.getValue();
|
|
|
units = preResult.getUnits();
|
|
|
hasCr = true;
|