فهرست منبع

自定义病程提取内容修改

huj 4 سال پیش
والد
کامیت
c2ec20df18
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      trans/src/main/java/com/lantone/qc/trans/beilun/util/CommonAnalysisUtil.java

+ 2 - 1
trans/src/main/java/com/lantone/qc/trans/beilun/util/CommonAnalysisUtil.java

@@ -330,7 +330,8 @@ public class CommonAnalysisUtil {
      */
     public static void extractWardInfo(String htmlText, Map<String, String> structureMap) {
         if (StringUtil.isNotBlank(htmlText)) {
-            htmlText = htmlText.replaceAll("[   \n]", " ").replace("第1页", "");
+            htmlText = htmlText.replaceAll("[   \n]", " ").replace("第1页", "")
+                    .replace("\n", " ");
             String date = extractDate(htmlText);
             if (date != null) {
                 structureMap.put("病历日期", date);