|
@@ -4,6 +4,7 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -25,11 +26,8 @@ public class BEH0458 extends QCCatalogue {
|
|
|
Map<String, String> bhMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
if (bhMap != null) {
|
|
|
String birthDate = bhMap.get("长期用药情况\\(包括可能成瘾的药物\\)");
|
|
|
- if (birthDate != null) {
|
|
|
- if (CatalogueUtil.isEmpty(birthDate)) {
|
|
|
- status.set("-1");
|
|
|
- }
|
|
|
- } else {
|
|
|
+ String addictiveDrugs = bhMap.get("成瘾药物");
|
|
|
+ if (StringUtil.isBlank(birthDate) && StringUtil.isBlank(addictiveDrugs)) {
|
|
|
status.set("-1");
|
|
|
}
|
|
|
}
|