Jelajahi Sumber

出生地填写错误

daiyi 3 tahun lalu
induk
melakukan
e58d695338

+ 41 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hospital/changshaxy/firstpagerecord/FIRP03267.java

@@ -0,0 +1,41 @@
+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.model.doc.FirstPageRecordDoc;
+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 : FIRP03267
+ * @Description : 出生地填写错误
+ * @Author : dy
+ * @Date: 2021-11-22 14:38
+ */
+@Component
+public class FIRP03267 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo){
+        status.set("0");
+        if (inputInfo.getFirstPageRecordDoc()==null) {
+            return;
+        }
+        FirstPageRecordDoc firstPageRecordDoc=new FirstPageRecordDoc();
+        if (firstPageRecordDoc.getStructureMap()!=null){
+            FirstPageRecordDoc pageRecordDoc = inputInfo.getFirstPageRecordDoc();
+            Map<String, String> structureMap = pageRecordDoc.getStructureMap();
+            if (structureMap != null) {
+                String birthPlace = structureMap.get("出生地");
+                if (StringUtil.isNotEmpty(birthPlace) || !birthPlace.equals("-")){
+                    status.set("-1");
+                    return;
+                }
+            }
+        }
+    }
+}