|
@@ -20,21 +20,20 @@ import java.util.Map;
|
|
@Component
|
|
@Component
|
|
public class FIRP0179 extends QCCatalogue {
|
|
public class FIRP0179 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
- if (inputInfo.getFirstPageRecordDoc() == null){
|
|
|
|
- status.set("0");
|
|
|
|
|
|
+ status.set("0");
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
|
- Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
|
- List<Map<String, String>> outpatientEmergencyDiags = (List) firstpageStructureMap.get(Content.outpatientEmergencyDiag);
|
|
|
|
- if (ListUtil.isNotEmpty(outpatientEmergencyDiags)) {
|
|
|
|
- for (Map<String, String> outpatientEmergencyDiag:outpatientEmergencyDiags) {
|
|
|
|
- if (!CatalogueUtil.isEmpty(outpatientEmergencyDiag.get(Content.inStatus))){
|
|
|
|
- status.set("0");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
|
+ List<Map<String, String>> outpatientEmergencyDiags = (List) firstpageStructureMap.get(Content.dischargeDiag);
|
|
|
|
+ if (ListUtil.isEmpty(outpatientEmergencyDiags)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ for (Map<String, String> outpatientEmergencyDiag : outpatientEmergencyDiags) {
|
|
|
|
+ if (CatalogueUtil.isEmpty(outpatientEmergencyDiag.get(Content.inStatus))) {
|
|
|
|
+ status.set("-1");
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|