|
@@ -26,29 +26,31 @@ public class OPE0352 extends QCCatalogue {
|
|
|
// return;
|
|
|
// }
|
|
|
// boolean isOperativePatient = CatalogueUtil.isOperativePatients(doctorAdviceDocs);
|
|
|
-// boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
-// if (isOperativePatient) {
|
|
|
- List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
- if(operationDocs == null || operationDocs.size() == 0){
|
|
|
+ // boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
+ // if (isOperativePatient) {
|
|
|
+ List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
+ if (operationDocs == null || operationDocs.size() == 0) {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
- if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
- long count = operationDocs.stream().filter(operationDoc -> {
|
|
|
- boolean flag = false;
|
|
|
- if (operationDoc.getOperationDiscussionDoc() != null
|
|
|
- && operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel() != null
|
|
|
- && (StringUtil.isBlank(operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel().getRiskAfterOp())
|
|
|
- || operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel().getRiskAfterOp().length() < 10)) {
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- return flag;
|
|
|
- }).count();
|
|
|
- if (count > 0) {
|
|
|
- status.set("-1");
|
|
|
+ if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
+ long count = operationDocs.stream().filter(operationDoc -> {
|
|
|
+ boolean flag = false;
|
|
|
+ if (operationDoc.getOperationDiscussionDoc() != null
|
|
|
+ && operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel() != null
|
|
|
+ && (StringUtil.isBlank(operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel().getRiskAfterOp())
|
|
|
+ || operationDoc.getOperationDiscussionDoc().getOperationDiscussionLabel().getRiskAfterOp().length() < 10
|
|
|
+ || StringUtil.isBlank(operationDoc.getOperationDiscussionDoc().getStructureMap().get("术后可能出现的并发症及预防措施"))
|
|
|
+ || operationDoc.getOperationDiscussionDoc().getStructureMap().get("术后可能出现的并发症及预防措施").length() < 10)) {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
+ return flag;
|
|
|
+ }).count();
|
|
|
+ if (count > 0) {
|
|
|
+ status.set("-1");
|
|
|
}
|
|
|
-// }
|
|
|
+ }
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
}
|