|
@@ -325,7 +325,7 @@ public class CommonAnalysisUtil {
|
|
|
*/
|
|
|
public static void extractWardInfo(String htmlText, Map<String, String> structureMap) {
|
|
|
if (StringUtil.isNotBlank(htmlText)) {
|
|
|
- htmlText = htmlText.replaceAll("[ ]", " ");
|
|
|
+ htmlText = htmlText.replaceAll("[ ]", " ").replace("第1页", "");
|
|
|
String date = extractDate(htmlText);
|
|
|
if (date != null) {
|
|
|
structureMap.put("病历日期", date);
|
|
@@ -341,7 +341,14 @@ public class CommonAnalysisUtil {
|
|
|
for (String text : titleContent) {
|
|
|
sb.append(text).append(" ");
|
|
|
}
|
|
|
- structureMap.put("病历内容", sb.toString());
|
|
|
+ String content = sb.toString();
|
|
|
+ if (content.contains("<img")) {
|
|
|
+ String[] contentDoctor = content.split("<img");
|
|
|
+ structureMap.put("病历内容", contentDoctor[0]);
|
|
|
+ structureMap.put("记录医生", "<img" + contentDoctor[1]);
|
|
|
+ } else {
|
|
|
+ structureMap.put("病历内容", content);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|