Browse Source

主要手术及操作名称与病程记录不一致提示消息

wangsy 4 years ago
parent
commit
7638b9e469

+ 7 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP0192.java

@@ -50,9 +50,9 @@ public class FIRP0192 extends QCCatalogue {
                     operationName = operationDoc.getOperationDiscussionDoc().getStructureMap().get("手术名称");
                 }
                 if (StringUtil.isNotBlank(operationName)) {
-                    operationName = operationName.replaceAll("[\\p{Punct}\\pP]", "").replaceAll("\\s*","");
-                    oName = oName.replaceAll("[\\p{Punct}\\pP]", "").replaceAll("\\s*","");
-                    if(operationName.contains(oName)){
+                    operationName = operationName.replaceAll("[\\p{Punct}\\pP]", "").replaceAll("\\s*", "");
+                    oName = oName.replaceAll("[\\p{Punct}\\pP]", "").replaceAll("\\s*", "");
+                    if (operationName.contains(oName)) {
                         return;
                     }
                     String[] operationNames = operationName.split("\\+");
@@ -66,9 +66,12 @@ public class FIRP0192 extends QCCatalogue {
                         if (likeRate < 0.85) {
                             status.set("-1");
                             return;
-                        }else {
+                        } else {
                             return;
                         }
+                    } else {
+                        status.set("-1");
+                        return;
                     }
                 }
             }