|
@@ -38,13 +38,13 @@ public class BeiLunFirstCourseRecordHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
text += lines[i];
|
|
|
}
|
|
|
//htmlContent = lines[1];
|
|
|
- String date = CommonAnalysisUtil.extractDate(htmlContent);
|
|
|
+ String date = CommonAnalysisUtil.extractDate(text);
|
|
|
if (StringUtil.isNotBlank(date)) {
|
|
|
structureMap.put("时间", date);
|
|
|
- htmlContent = htmlContent.replace(date, "");
|
|
|
+ text = text.replace(date, "");
|
|
|
}
|
|
|
- htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
|
- CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+ text = text.replaceAll("[ ]", " ");
|
|
|
+ CommonAnalysisUtil.html2StructureMap(titles, text, structureMap);
|
|
|
}
|
|
|
}
|
|
|
if (structureMap.containsKey("(一)病历特点")) {
|