|
@@ -1,17 +1,13 @@
|
|
|
package com.lantone.qc.kernel.catalogue.operationdiscussion;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
-import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationDoc;
|
|
|
-import com.lantone.qc.pub.model.doc.operation.OperationRecordDoc;
|
|
|
-import com.lantone.qc.pub.util.ListUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.text.ParseException;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description: 手术患者缺术前讨论或术前小结
|
|
@@ -31,26 +27,24 @@ public class OPE0370 extends QCCatalogue {
|
|
|
// boolean isOperativePatient = CatalogueUtil.isOperativePatients(doctorAdviceDocs);
|
|
|
boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
- if(operationDocs == null || operationDocs.size() < 1){
|
|
|
+ if (operationDocs == null || operationDocs.size() < 1) {
|
|
|
return;
|
|
|
}
|
|
|
- if ( operationDocs.size()>0) {
|
|
|
-
|
|
|
- for (OperationDoc operationDoc : operationDocs) {
|
|
|
- OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
|
|
|
- if (operationRecordDoc == null) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- Map<String, String> operationRecordStructureMap = operationRecordDoc.getStructureMap();
|
|
|
- String preoperativeDiscussion = operationRecordStructureMap.get("术前讨论");
|
|
|
- if (CatalogueUtil.isEmpty(preoperativeDiscussion)) {
|
|
|
- status.set("-1");
|
|
|
- return;
|
|
|
- }
|
|
|
+ for (OperationDoc operationDoc : operationDocs) {
|
|
|
+ if (operationDoc.getPreoperativeDiscussionDoc() == null) {
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
+ // OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
|
|
|
+ // if (operationRecordDoc == null) {
|
|
|
+ // continue;
|
|
|
+ // }
|
|
|
+ // Map<String, String> operationRecordStructureMap = operationRecordDoc.getStructureMap();
|
|
|
+ // String preoperativeDiscussion = operationRecordStructureMap.get("术前讨论");
|
|
|
+ // if (CatalogueUtil.isEmpty(preoperativeDiscussion)) {
|
|
|
+ // status.set("-1");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
}
|
|
|
-
|
|
|
}
|