Bläddra i källkod

死亡病历解析调整

liuqq 3 år sedan
förälder
incheckning
21bfea3e73

+ 1 - 1
dbanaly/src/main/resources/application-debug.yml

@@ -41,7 +41,7 @@ spring:
         min-idle: 0 # 连接池中的最小空闲连接
     timeout: 20000 # 连接超时时间(毫秒)
 
-xml-is-encryped: true
+xml-is-encryped: false
 
 CRF:
   url: http://192.168.2.234:3456/api/mr_info_ex/entity_predict

+ 3 - 1
trans/src/main/java/com/lantone/qc/trans/xszyy/util/BeiLunDeathCaseDiscussHtmlAnalysis.java

@@ -38,10 +38,12 @@ public class BeiLunDeathCaseDiscussHtmlAnalysis implements BeiLunHtmlAnalysis {
             String htmlContent = XszyyCommonAnalysisUtil.html2String(doc.toString());
 
             if (StringUtil.isNotBlank(htmlContent)) {
+                XszyyCommonAnalysisUtil.html2StructureMap(titles,htmlContent,map);
                 //无冒号版本
                 XszyyCommonAnalysisUtil.html2StructureMapNoColon(titles,htmlContent,map);
+
                 //死亡诊断包含医师发言
-                if(map.containsKey("死亡诊断")&&map.get("死亡诊断").contains("主任医师")){
+                if(map.containsKey("死亡诊断") && map.get("死亡诊断").contains("主任医师")){
                     String swzd = map.get("死亡诊断");
                     map.put("死亡诊断",swzd.substring(0,swzd.indexOf("主任医师")));
                     map.put("医师发言",swzd.substring(swzd.indexOf("主任医师")));