|
@@ -3,10 +3,15 @@ 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.entity.AllergyMedicine;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
- * @Description:
|
|
|
+ * @Description: 药物过敏史未填写
|
|
|
* @author: rengb
|
|
|
* @time: 2020/3/10 14:02
|
|
|
*/
|
|
@@ -15,6 +20,13 @@ public class BEH0027 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
-
|
|
|
+ List<AllergyMedicine> allergyMedicines = inputInfo.getBeHospitalizedDoc().getPastLabel().getAllergyMedicines();
|
|
|
+ if (ListUtil.isNotEmpty(allergyMedicines)) {
|
|
|
+ if (allergyMedicines.stream().map(i -> i.getName()).filter(i -> StringUtil.isNotBlank(i)).count() > 0) {
|
|
|
+ status = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ resultDetail.put("status", status);
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+}
|