|
@@ -0,0 +1,33 @@
|
|
|
+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.Wound;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 外伤史未填写
|
|
|
+ * @author: rengb
|
|
|
+ * @time: 2020/3/10 13:53
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class BEH0024 extends QCCatalogue {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ List<Wound> wounds = inputInfo.getBeHospitalizedDoc().getPastLabel().getWounds();
|
|
|
+ String status = "-1";
|
|
|
+ if (ListUtil.isNotEmpty(wounds)) {
|
|
|
+ if (wounds.stream().map(i -> i.getName()).filter(i -> StringUtil.isNotBlank(i)).count() > 0) {
|
|
|
+ status = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ resultDetail.put("status", status);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|