Parcourir la source

医疗付费方式填写错误

daiyi il y a 3 ans
Parent
commit
3730eab8fb

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

@@ -0,0 +1,38 @@
+package com.lantone.qc.kernel.catalogue.hospital.changshaxy.firstpagerecord;
+
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
+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 : FIRP03276
+ * @Description : 医疗付费方式填写错误
+ * @Author : dy
+ * @Date: 2021-11-24 16:33
+ */
+@Component
+public class FIRP03276 extends QCCatalogue {
+    private List<String> payment_Method = 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();
+            if (structureMap!=null && structureMap.size() > 0){
+                String medicalPaymentMethod = structureMap.get("医疗付费方式");
+                if (StringUtil.isNotBlank(medicalPaymentMethod)){
+                    status.set("0");
+                }
+                if (payment_Method.contains(medicalPaymentMethod) || !"-".equals(medicalPaymentMethod)){
+                    status.set("-1");
+                    return;
+                }
+            }
+        }
+    }
+}