Selaa lähdekoodia

Merge remote-tracking branch 'origin/hb/beilun' into hb/beilun

chengyao 3 vuotta sitten
vanhempi
commit
07c605c1ad

+ 7 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH02966.java

@@ -48,9 +48,15 @@ public class BEH02966 extends QCCatalogue {
         List<String> keys = Lists.newArrayList("主诉", "现病史", "既往史", "体格检查", "一般情况"
                 , "初步诊断", "专科体格检查", "神经系统检查", "实验室检查", "影像学检查");
         String text = CatalogueUtil.structureMapJoin(beHospitalStructureMap, keys);
-
+        String rex="(?<!((母孕期|母亲|妈妈|分娩期|分娩|出生时|母亲怀孕|怀孕时|孕期)[^。,;。、,;]{0,15}))(阴道|宫颈|子宫|宫底|胎位|胎数|胎心|宫缩|宫口|卵巢|输卵管|阴唇|阴蒂|阴道前庭|前庭大腺|处女膜)";
         for (String noMatchWord : noMatchWords) {
             if (text.contains(noMatchWord)) {
+                if(gender.contains("男")){
+                    if(!text.matches(rex)){
+                        status.set("0");
+                        return;
+                    }
+                }
                 status.set("-1");
                 info.set(noMatchWord);
                 return;