|
@@ -16,6 +16,8 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.regex.Matcher;
|
|
|
+import java.util.regex.Pattern;
|
|
|
|
|
|
/**
|
|
|
* @Description: 查房记录文档生成
|
|
@@ -49,7 +51,11 @@ public class ChangxThreeLevelWardDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
cutWordMap = Preproc.getCutWordMap(true, sourceTitles, text);
|
|
|
if (StringUtil.isBlank(structureMap.get("记录医师"))) {
|
|
|
- structureMap.put("记录医师", cutWordMap.get("医师签名"));
|
|
|
+ Pattern p = Pattern.compile("^[^\\u4e00-\\u9fa5]+$");
|
|
|
+ Matcher m = p.matcher(cutWordMap.get("医师签名"));
|
|
|
+ if (!m.matches()) {
|
|
|
+ structureMap.put("记录医师", cutWordMap.get("医师签名"));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|