|
@@ -0,0 +1,47 @@
|
|
|
|
+package com.lantone.qc.kernel.catalogue.firstpagerecord;
|
|
|
|
+
|
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
|
+import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
+
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @ClassName : FIRP03224
|
|
|
|
+ * @Description : 使用中医诊疗技术填写错误
|
|
|
|
+ * @Author : cy
|
|
|
|
+ * @Date: 2022-03-06 17:28
|
|
|
|
+ */
|
|
|
|
+@Component
|
|
|
|
+public class FIRP03224 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();
|
|
|
|
+ if(!CatalogueUtil.isEmpty(structureMap.get(Content.is_chinese_diagnose_technology))){
|
|
|
|
+ String str = structureMap.get(Content.is_chinese_diagnose_technology);
|
|
|
|
+ if(! Content.MARK.stream().anyMatch(obj->str.equals(obj))){
|
|
|
|
+ status.set("-1");
|
|
|
|
+ }
|
|
|
|
+ String feeStr = structureMap.get(Content.chn_med_fee);
|
|
|
|
+ String feeSec = structureMap.get(Content.chn_herb_fee);
|
|
|
|
+ Double feeStrDou = 0D;
|
|
|
|
+ Double feeSecDou = 0D;
|
|
|
|
+ if( !CatalogueUtil.isEmpty(feeStr)){
|
|
|
|
+ feeStrDou = Double.valueOf(feeStr);
|
|
|
|
+ }
|
|
|
|
+ if( !CatalogueUtil.isEmpty(feeSec)){
|
|
|
|
+ feeSecDou = Double.valueOf(feeSec);
|
|
|
|
+ }
|
|
|
|
+ if((feeStrDou+feeSecDou)>0 && "否".equals(str)){
|
|
|
|
+ status.set("-1");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|