|
@@ -0,0 +1,43 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.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.util.ListUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : FIRP03216
|
|
|
+ * @Description : 出院主证入院病情填写错误
|
|
|
+ * @Author : cy
|
|
|
+ * @Date: 2022-03-06 17:28
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03216 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
+ Map<String, Object> firstpageStructureMapExt = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
+ List<Map<String, String>> dischargeDiag = (List) firstpageStructureMapExt.get(Content.dischargeDiag);
|
|
|
+ if (ListUtil.isEmpty(dischargeDiag)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (Map<String, String> stringStringMap : dischargeDiag) {
|
|
|
+ if ("中医".equals(stringStringMap.get(Content.chinese_western_type))) {
|
|
|
+ if ("主症".equals(stringStringMap.get(Content.diagnose_type)) && !CatalogueUtil.isEmpty(stringStringMap.get(Content.diagnose_name))
|
|
|
+ && !CatalogueUtil.isEmpty(stringStringMap.get(Content.inStatus))) {
|
|
|
+ String inStatus = stringStringMap.get(Content.inStatus);
|
|
|
+ if(!Content.ADMISSIONCONDITION.stream().anyMatch(obj->inStatus.equals(obj))){
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|