jianghaodi %!s(int64=2) %!d(string=hai) anos
pai
achega
b5fefac3df

+ 28 - 0
trans/src/main/java/com/lantone/qc/trans/comsis/CommonAnalysisUtil.java

@@ -295,6 +295,34 @@ public class CommonAnalysisUtil {
         return null;
     }
 
+
+    /*杭州妇幼抽取时间*/
+    /**
+     * 抽取文本中的第一个时间
+     *
+     * @param top
+     * @return
+     */
+    public static String extractDateHangzhou(String top) {
+        Pattern pattern = Pattern.compile("[0-9]{4}[-][0-9]{1,2}[-][0-9]{1,2}");
+        Matcher matcher = pattern.matcher(top);
+        String need = null;
+        if (matcher.find()) {
+
+
+            return matcher.group(0);
+        }
+        return null;
+    }
+
+    public static void main(String[] args) {
+        String a = "2022-07-0812:12";
+        String s = extractDateHangzhou(a);
+        String replace = a.replace(s, "");
+        System.out.println(s + " " + replace);
+        System.out.println(s);
+    }
+
     /**
      * 宁波中医院抽取文本中的第一个时间
      *

+ 1 - 0
trans/src/main/java/com/lantone/qc/trans/hangzhoufubao/util/BeHospitalizedHtmlAnalysis.java

@@ -85,6 +85,7 @@ public class BeHospitalizedHtmlAnalysis implements HtmlAnalysis {
 
 
 
+
     }
 
     //24小时出入院记录、24小时出入院记录(全院)、24小时入出院记录(全院通用)、24小时内入院死亡记录(全院通用)