|
@@ -5,6 +5,7 @@ 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 com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -18,12 +19,17 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class FIRP0273 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
- String newbornAge = firstpageStructureMap.get(Content.newbornAge);
|
|
|
- if (!CatalogueUtil.isEmpty(newbornAge) && Integer.parseInt(newbornAge) <= 28){
|
|
|
+ String infantAgeMonths = firstpageStructureMap.get(Content.infantAgeMonths);
|
|
|
+ String infantAgeDays = firstpageStructureMap.get(Content.infantAgeDays);
|
|
|
+ if (StringUtil.isNotBlank(infantAgeMonths) && Integer.parseInt(infantAgeMonths) > 0) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ if (StringUtil.isNotBlank(infantAgeDays) && Integer.parseInt(infantAgeDays) > 28) {
|
|
|
//新生儿年龄单位为天,小于28天算通过
|
|
|
- status.set("0");
|
|
|
+ status.set("-1");
|
|
|
}
|
|
|
}
|
|
|
}
|