|
@@ -0,0 +1,43 @@
|
|
|
+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 : FIRP03282
|
|
|
+ * @Description : 病理号未填写
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-29 14:37
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03282 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo){
|
|
|
+ status.set("0");
|
|
|
+ if (inputInfo.getFirstPageRecordDoc()==null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (inputInfo.getFirstPageRecordDoc().getStructureMap()!=null){
|
|
|
+ Map<String, String> structureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ Map<String, String> structureMap1 = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ if (structureMap != null){
|
|
|
+ String diagnosisFee = structureMap.get("病理诊断费");
|
|
|
+ if (StringUtil.isEmpty(diagnosisFee) || diagnosisFee.equals(Integer.valueOf(0))){
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (structureMap1!=null){
|
|
|
+ String diagnosis = structureMap1.get("病理诊断");
|
|
|
+ if (StringUtil.isEmpty(diagnosis) || diagnosis.equals("-")){
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|