|
@@ -0,0 +1,48 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.operationdiscussion;
|
|
|
+
|
|
|
+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.doc.operation.OperationDoc;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.text.ParseException;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 可能变更的术式未填写
|
|
|
+ * @author: 胡敬
|
|
|
+ * @time: 2020/6/15 16:41
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class OPE02929 extends QCCatalogue {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
|
+ status.set("0");
|
|
|
+// boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
+// if (isOperativePatient) {
|
|
|
+ List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
+ if(operationDocs == null || operationDocs.size() == 0){
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
+ long count = operationDocs.stream().filter(operationDoc -> {
|
|
|
+ boolean flag = false;
|
|
|
+ if (operationDoc.getPreoperativeDiscussionDoc() != null
|
|
|
+ && StringUtil.isBlank(operationDoc.getPreoperativeDiscussionDoc().getStructureMap().get("可能的变更"))) {
|
|
|
+ flag = true;
|
|
|
+ }
|
|
|
+ return flag;
|
|
|
+ }).count();
|
|
|
+ if (count > 0) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+// }
|
|
|
+
|
|
|
+}
|