|
@@ -0,0 +1,40 @@
|
|
|
+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 : FIRP03266
|
|
|
+ * @Description : 籍贯填写错误
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-22 14:38
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03266 extends QCCatalogue {
|
|
|
+ public List<String> place_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 nativePlace = structureMap.get(Content.native_place);
|
|
|
+ if (StringUtil.isNotBlank(nativePlace)){
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+ if (place_list.size()>0 && place_list.contains(nativePlace)) {
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|