|
@@ -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.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:
|
|
|
+ * @Description: 外伤史描述不完整
|
|
|
* @author: rengb
|
|
|
* @time: 2020/3/10 14:02
|
|
|
*/
|
|
@@ -15,6 +20,26 @@ public class BEH0037 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
-
|
|
|
+ status = "0";
|
|
|
+ List<Wound> wounds = inputInfo.getBeHospitalizedDoc().getPastLabel().getWounds();
|
|
|
+ if (ListUtil.isEmpty(wounds)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (Wound wound : wounds) {
|
|
|
+ if (wound == null || StringUtil.isBlank(wound.getName())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if ((wound.getPd() == null || StringUtil.isBlank(wound.getPd().getName()))
|
|
|
+ && (wound.getBodyPart() == null || StringUtil.isBlank(wound.getBodyPart().getName()))
|
|
|
+ && (wound.getDegree() == null || StringUtil.isBlank(wound.getDegree().getName()))
|
|
|
+ && (wound.getTreat() == null || StringUtil.isBlank(wound.getTreat().getName()))
|
|
|
+ && (wound.getOperation() == null || StringUtil.isBlank(wound.getOperation().getName()))) {
|
|
|
+ info += wound.getName() + " ";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (StringUtil.isNotBlank(info)) {
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+}
|