Browse Source

术前主刀查房记录无主刀医师查房意见增加正则

chengyao 3 năm trước cách đây
mục cha
commit
658611dbd2

+ 3 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR03139.java

@@ -72,6 +72,8 @@ public class THR03139 extends QCCatalogue {
                 }
                 List<String> cfButcherOpinionList = Content.cfButcherOpinionList;
                 String rex1 = "[\\s\\S]*(?=拟)[^,;,;。]*(?=行)[^,;,;。]*(?=术)[\\s\\S]*";
+                String rex2 = "[\\s\\S]*[(?=考虑)|(?=行)][^,;,;。]*(?=术)[\\s\\S]*";
+                String rex3 = "[\\s\\S]*(?=拟)[^,;,;。]*(?=行)[\\s\\S]*";
                 for (String cfButcherOpinion : cfButcherOpinionList) {
                     if (illnessRecords.contains(cfButcherOpinion)) {
                         opinionNum++;
@@ -79,7 +81,7 @@ public class THR03139 extends QCCatalogue {
                     }
                 }
                 String str = Str(illnessRecords);
-                if(str.matches(rex1)){
+                if(str.matches(rex1) || str.matches(rex2) || str.matches(rex3)){
                     opinionNum++;
                     continue ac;
                 }