|
@@ -0,0 +1,36 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.hospital.changshaxy.firstpagerecord;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+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.StringUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+/**
|
|
|
+ * @ClassName : FIRP03240
|
|
|
+ * @Description : 是否有31天再住院计划填写错误
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-15 10:54
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03240 extends QCCatalogue {
|
|
|
+ public List<String> codeTables = Arrays.asList("有","无");
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
+ Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ String days = firstpageStructureMap.get("三十一天内再住院计划");
|
|
|
+ if (StringUtil.isNotBlank(days) || !days.equals("-") || codeTables.contains(days)){
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|