|
@@ -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.Content;
|
|
|
+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 : FIRP03245
|
|
|
+ * @Description : 药物过敏填写错误
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-15 16:13
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03245 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 medicine = firstpageStructureMap.get(Content.drugAllergy);
|
|
|
+ if (StringUtil.isNotBlank(medicine)) {
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+
|
|
|
+ //有或无,取值不能为“-”
|
|
|
+ if(medicine.equals("有") || medicine.equals("无")|| !medicine.equals("-")){
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|