|
@@ -1,10 +1,10 @@
|
|
package com.lantone.qc.kernel.catalogue.yiwu.firstpagerecord;
|
|
package com.lantone.qc.kernel.catalogue.yiwu.firstpagerecord;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
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.Content;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -19,8 +19,8 @@ import java.util.Map;
|
|
public class FIRP0201 extends QCCatalogue {
|
|
public class FIRP0201 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
|
- Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureExtMap() != null) {
|
|
|
|
+ Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
/*
|
|
/*
|
|
String infantAgeMonths = firstpageStructureMap.get(Content.newbornAgeMonths);
|
|
String infantAgeMonths = firstpageStructureMap.get(Content.newbornAgeMonths);
|
|
String infantAgeDays = firstpageStructureMap.get(Content.newbornAgeDays);
|
|
String infantAgeDays = firstpageStructureMap.get(Content.newbornAgeDays);
|
|
@@ -29,8 +29,8 @@ public class FIRP0201 extends QCCatalogue {
|
|
}
|
|
}
|
|
|
|
|
|
*/
|
|
*/
|
|
- String newbornAdmisWeight = firstpageStructureMap.get(Content.newbornAdmisWeight);
|
|
|
|
- if (CatalogueUtil.isEmpty(newbornAdmisWeight)){
|
|
|
|
|
|
+ Object newbornAdmisWeight = firstpageStructureMap.get(Content.newbornAdmisWeight);
|
|
|
|
+ if (newbornAdmisWeight != null && StringUtil.isBlank(newbornAdmisWeight.toString())) {
|
|
status.set("-1");
|
|
status.set("-1");
|
|
}
|
|
}
|
|
}
|
|
}
|