|
@@ -25,16 +25,18 @@ public class BeiLunFirstCourseRecordHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
|
try {
|
|
|
List<String> titles = Lists.newArrayList("(一)病历特点", "(二)诊断依据", "(三)鉴别诊断",
|
|
|
- "(四)初步诊断", "(五)诊疗计划", "医生签名");
|
|
|
- String html = args[0];;
|
|
|
+ "(四)初步诊断", "(五)诊疗计划", "(二)拟诊讨论", "(三)诊疗计划", "心理治疗",
|
|
|
+ "疼痛治疗", "营养治疗", "康复治疗", "VTE预防", "医生签名");
|
|
|
+ String html = args[0];
|
|
|
String recTitle = args[1];
|
|
|
Document doc = Jsoup.parse(html);
|
|
|
String htmlContent = BeiLunHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0), true);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
- htmlContent = htmlContent.replace("建议先书写大病", "")
|
|
|
+ htmlContent = htmlContent.replace("—/—", "")
|
|
|
+ .replace("第1页", "")
|
|
|
+ .replace("建议先书写大病", "")
|
|
|
.replace("历,并对导入的既往史和现病史进行归纳", "")
|
|
|
- .replace("若书写者为诊疗组长本人,以下签名框中可只签一个名字", "")
|
|
|
- .replace("第1页", "");
|
|
|
+ .replace("若书写者为诊疗组长本人,以下签名框中可只签一个名字", "");
|
|
|
String[] lines = htmlContent.split("\n\n");
|
|
|
if (lines.length > 1) {
|
|
|
String text = "";
|