|
@@ -1,14 +1,17 @@
|
|
|
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: 手术患者缺术前讨论或术前小结
|
|
@@ -20,19 +23,32 @@ public class OPE0370 extends QCCatalogue {
|
|
|
@Override
|
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
|
status.set("0");
|
|
|
+ //医嘱
|
|
|
+ // List<DoctorAdviceDoc> doctorAdviceDocs = inputInfo.getDoctorAdviceDocs();
|
|
|
+ // if (ListUtil.isEmpty(doctorAdviceDocs)) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // boolean isOperativePatient = CatalogueUtil.isOperativePatients(doctorAdviceDocs);
|
|
|
boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
if (isOperativePatient) {
|
|
|
List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
if (ListUtil.isEmpty(operationDocs)) {
|
|
|
- status.set("-1");
|
|
|
- } else {
|
|
|
- for (OperationDoc operationDoc : operationDocs) {
|
|
|
- if (operationDoc.getPreoperativeDiscussionDoc() == null) {
|
|
|
- status.set("-1");
|
|
|
- return;
|
|
|
- }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ 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;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|