|
@@ -22,23 +22,25 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class FIRP0192 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- status.set("0");
|
|
|
FirstPageRecordDoc firstPageRecordDoc = inputInfo.getFirstPageRecordDoc();
|
|
|
List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
- if (operationDocs != null && operationDocs.size() > 0) {
|
|
|
- OperationDoc operationDoc = operationDocs.get(0);
|
|
|
- OperationDiscussionDoc operationDiscussionDoc = operationDoc.getOperationDiscussionDoc();
|
|
|
- if (operationDiscussionDoc != null) {
|
|
|
- Map<String, String> docStructureMap = operationDiscussionDoc.getStructureMap();
|
|
|
- Map<String, Object> firstPageRecordDocStructureMap = firstPageRecordDoc.getStructureExtMap();
|
|
|
- String opertaion = docStructureMap.get("手术方式");
|
|
|
- List<Map<String, String>> mapList = (List<Map<String, String>>) firstPageRecordDocStructureMap.get(Content.operative_information);
|
|
|
- if (mapList != null && mapList.size() > 0) {
|
|
|
- Map<String, String> op = mapList.get(0);
|
|
|
- String oName = op.get(Content.operative_name);
|
|
|
- if (StringUtils.isNotEmpty(opertaion) && !opertaion.equals(oName)) {
|
|
|
- status.set("-1");
|
|
|
- }
|
|
|
+ if (firstPageRecordDoc == null || operationDocs.size() == 0) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Map<String, Object> firstPageRecordDocStructureMap = firstPageRecordDoc.getStructureExtMap();
|
|
|
+ List<Map<String, String>> mapList = (List<Map<String, String>>) firstPageRecordDocStructureMap.get(Content.operative_information);
|
|
|
+ if (mapList != null && mapList.size() > 0) {
|
|
|
+ Map<String, String> op = mapList.get(0);
|
|
|
+ String oName = op.get(Content.operative_name);
|
|
|
+ for (OperationDoc operationDoc : operationDocs) {
|
|
|
+ if (operationDoc.getOperationRecordDoc() == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ String operationName = operationDoc.getOperationRecordDoc().getStructureMap().get("手术名称");
|
|
|
+ if (operationName.contains(oName)){
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
}
|