|
@@ -35,11 +35,11 @@ public class BEH02966 extends QCCatalogue {
|
|
|
if (gender.contains("男")) {
|
|
|
/* 男性不合理词 */
|
|
|
noMatchWords = Lists.newArrayList("阴道", "宫颈", "子宫", "宫底", "胎位", "胎数", "胎心",
|
|
|
- "宫缩", "宫口", "输卵管", "卵巢", "输卵管", "阴唇", "阴蒂", "阴道前庭", "前庭大腺", "处女膜");
|
|
|
+ "宫缩", "宫口", "输卵管", "卵巢", "输卵管", "阴唇", "阴蒂", "阴道前庭", "前庭大腺", "处女膜", "女");
|
|
|
} else if (gender.contains("女")) {
|
|
|
/* 女性不合理词 */
|
|
|
noMatchWords = Lists.newArrayList("睾丸", "阴茎", "精索", "包皮", "输精管",
|
|
|
- "射精管", "尿道海绵体", "冠状沟", "精阜", "精囊腺", "阴囊");
|
|
|
+ "射精管", "尿道海绵体", "冠状沟", "精阜", "精囊腺", "阴囊", "男");
|
|
|
}
|
|
|
if (noMatchWords == null || noMatchWords.size() == 0) {
|
|
|
return;
|
|
@@ -48,11 +48,11 @@ public class BEH02966 extends QCCatalogue {
|
|
|
List<String> keys = Lists.newArrayList("主诉", "现病史", "既往史", "体格检查", "一般情况"
|
|
|
, "初步诊断", "专科体格检查", "神经系统检查", "实验室检查", "影像学检查");
|
|
|
String text = CatalogueUtil.structureMapJoin(beHospitalStructureMap, keys);
|
|
|
- String rex="(?<!((母孕期|母亲|妈妈|分娩期|分娩|出生时|母亲怀孕|怀孕时|孕期)[^。,;。、,;]{0,15}))(阴道|宫颈|子宫|宫底|胎位|胎数|胎心|宫缩|宫口|卵巢|输卵管|阴唇|阴蒂|阴道前庭|前庭大腺|处女膜)";
|
|
|
+ String rex = "(?<!((母孕期|母亲|妈妈|分娩期|分娩|出生时|母亲怀孕|怀孕时|孕期)[^。,;。、,;]{0,15}))(阴道|宫颈|子宫|宫底|胎位|胎数|胎心|宫缩|宫口|卵巢|输卵管|阴唇|阴蒂|阴道前庭|前庭大腺|处女膜)";
|
|
|
for (String noMatchWord : noMatchWords) {
|
|
|
if (text.contains(noMatchWord)) {
|
|
|
- if(gender.contains("男")){
|
|
|
- if(!text.matches(rex)){
|
|
|
+ if (gender.contains("男")) {
|
|
|
+ if (!text.matches(rex)) {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|