|
@@ -0,0 +1,48 @@
|
|
|
+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.Cause;
|
|
|
+import com.lantone.qc.pub.model.entity.Clinical;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : BEH0014
|
|
|
+ * @Description : 现病史症状缺少诱因
|
|
|
+ * @Author : 楼辉荣
|
|
|
+ * @Date: 2020-03-06 17:28
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class BEH0014 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ String status = "0";
|
|
|
+ String infos = "";
|
|
|
+
|
|
|
+ List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();
|
|
|
+ if(clinicals.size()>0){
|
|
|
+ for (Clinical clinical:clinicals) {
|
|
|
+ String clinicalName = clinical.getName();
|
|
|
+ Cause cause = clinical.getCause();
|
|
|
+ if(cause == null){
|
|
|
+ if(StringUtils.isEmpty(infos)){
|
|
|
+ infos = clinicalName;
|
|
|
+ }else {
|
|
|
+ infos = infos+","+clinicalName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(infos)){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+
|
|
|
+ resultDetail.put("status",status);
|
|
|
+ resultDetail.put("info",infos);
|
|
|
+ }
|
|
|
+}
|