Prechádzať zdrojové kódy

医疗付费方式未填写

daiyi 3 rokov pred
rodič
commit
0196f20235

+ 10 - 15
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hospital/changshaxy/firstpagerecord/FIRP03264.java

@@ -1,7 +1,6 @@
 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;
@@ -10,28 +9,24 @@ import org.springframework.stereotype.Component;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
-
 /**
- * @ClassName : FIRP03264
- * @Description : 婚姻状况填写错误
+ * @ClassName : FIRP03275
+ * @Description : 医疗付费方式未填写
  * @Author : dy
- * @Date: 2021-11-22 11:33
+ * @Date: 2021-11-24 16:20
  */
 @Component
-public class FIRP03264 extends QCCatalogue {
-    public  List<String> marry_list = Arrays.asList("未婚","已婚","丧偶","离婚","其他");
+public class FIRP03275 extends QCCatalogue {
     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;
+            if (structureMap!=null && structureMap.size() > 0){
+                String medicalPaymentMethod = structureMap.get("医疗付费方式");
+                if (StringUtil.isBlank(medicalPaymentMethod)){
+                    status.set("-1");
+                }
             }
         }
     }
-}
+}