|
@@ -0,0 +1,60 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.hospital.changshaxy.firstpagerecord;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.doc.operation.OperationDiscussionDoc;
|
|
|
+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.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : FIRP03192
|
|
|
+ * @Description : 麻醉方式填写错误
|
|
|
+ * @Author : wsy
|
|
|
+ * @Date: 2021-11-18 14:11
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03192 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
+ List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
+ String operationsAnesthesia = "";
|
|
|
+ String operationsFirstAnesthesia = "";
|
|
|
+ if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
+ OperationDiscussionDoc operationDiscussionDoc = operationDocs.get(0).getOperationDiscussionDoc();
|
|
|
+ if (operationDiscussionDoc == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ operationsAnesthesia = operationDiscussionDoc.getStructureMap().get("麻醉方法");
|
|
|
+ }
|
|
|
+ if (StringUtil.isBlank(operationsAnesthesia)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
+ Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
+ List<Map<String, String>> operative_information = (List<Map<String, String>>) firstpageStructureMap.get(Content.operative_information);
|
|
|
+ if (operative_information != null && operative_information.size() > 0) {
|
|
|
+ operationsFirstAnesthesia = operative_information.get(0).get(Content.anesthesia_mode);
|
|
|
+ if (!CatalogueUtil.isEmpty(operative_information.get(0).get(Content.operative_name)) || CatalogueUtil.isEmpty(operationsFirstAnesthesia)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (StringUtil.isBlank(operationsFirstAnesthesia)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!operationsAnesthesia.contains(operationsFirstAnesthesia)) {
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|