|
@@ -0,0 +1,37 @@
|
|
|
+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 : FIRP03264
|
|
|
+ * @Description : 婚姻状况填写错误
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-22 11:33
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03264 extends QCCatalogue {
|
|
|
+ public List<String> marry_list = Arrays.asList("未婚","已婚","丧偶","离婚","其他");
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo){
|
|
|
+ status.set("0");
|
|
|
+ if (inputInfo.getFirstPageRecordDoc()!=null && inputInfo.getFirstPageRecordDoc().getStructureMap()!=null){
|
|
|
+ Map<String, String> structureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ String marry = structureMap.get(Content.marry);
|
|
|
+ if (StringUtil.isNotBlank(marry)){
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+ if (!marry.equals("-") || marry_list.size()>0 && marry_list.contains(marry)) {
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|