|
@@ -0,0 +1,39 @@
|
|
|
|
+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.Map;
|
|
|
|
+/**
|
|
|
|
+ * @ClassName : FIRP03280
|
|
|
|
+ * @Description : 联系人姓名填写错误
|
|
|
|
+ * @Author : dy
|
|
|
|
+ * @Date: 2021-11-29 10:52
|
|
|
|
+ */
|
|
|
|
+@Component
|
|
|
|
+public class FIRP03280 extends QCCatalogue {
|
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
|
+ Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
|
+ String contactName = firstpageStructureMap.get("联系人姓名");
|
|
|
|
+ String relationship = firstpageStructureMap.get("联系人关系");
|
|
|
|
+ String name = firstpageStructureMap.get("姓名");
|
|
|
|
+ if (StringUtil.isNotBlank(name) &&StringUtil.isNotBlank(contactName)){
|
|
|
|
+ status.set("0");
|
|
|
|
+ }
|
|
|
|
+ if (relationship.contains("本人或户主") && StringUtil.isNotBlank(relationship) || !relationship.equals("-")){
|
|
|
|
+ status.set("-1");
|
|
|
|
+ }
|
|
|
|
+ if (!contactName.equals(name)){
|
|
|
|
+ status.set("-1");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|