|
@@ -0,0 +1,38 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.hospital.ningbozhongyi.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.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : FIRP0190
|
|
|
+ * @Description :Rh填写错误
|
|
|
+ * @Author : 贺聪聪
|
|
|
+ * @Date: 2022-08-02 12:08
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP0190 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() == null || inputInfo.getFirstPageRecordDoc().getStructureMap() == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ String rhFactor = firstpageStructureMap.get(Content.rhFactor);
|
|
|
+ if (CatalogueUtil.isEmpty(rhFactor)) {
|
|
|
+ return;
|
|
|
+ }else {
|
|
|
+ if (rhFactor.contains("阳") || rhFactor.contains("阴") || rhFactor.contains("阳性") || rhFactor.contains("阴性")
|
|
|
+ || rhFactor.contains("不详") || rhFactor.contains("未查") ) {
|
|
|
+ return;
|
|
|
+ }else {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|