|
@@ -25,8 +25,8 @@ public class NingHaiYiYiFirstCourseRecordHtmlAnalysis implements NingHaiYiYiHtml
|
|
|
public Map<String, String> analysis(String... args) {
|
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
|
try {
|
|
|
- List<String> titles = Lists.newArrayList("一. 病例特点", "二. 拟诊讨论", "三. 诊疗计划","三、诊疗计划", "医师签名");
|
|
|
- Document doc = Jsoup.parse(args[0].replace(" "," "));
|
|
|
+ List<String> titles = Lists.newArrayList("一. 病例特点", "二. 拟诊讨论", "三. 诊疗计划", "三、诊疗计划", "三、根据人民卫生出版社《妇产科学》第九版拟定如下诊疗计划", "医师签名");
|
|
|
+ Document doc = Jsoup.parse(args[0].replace(" ", " "));
|
|
|
String htmlContent = NingHaiYiYiHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0), true);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
@@ -34,7 +34,7 @@ public class NingHaiYiYiFirstCourseRecordHtmlAnalysis implements NingHaiYiYiHtml
|
|
|
if (structureMap.containsKey("二.拟诊讨论")) {
|
|
|
List<String> listTitle = CommonAnalysisUtil.sortTitles(
|
|
|
Lists.newArrayList("1.初步诊断", "2.诊断依据", "3.鉴别诊断"
|
|
|
- ,"诊断依据","鉴别诊断","初步诊断"), structureMap.get("二.拟诊讨论")
|
|
|
+ , "诊断依据", "鉴别诊断", "初步诊断"), structureMap.get("二.拟诊讨论")
|
|
|
);
|
|
|
CommonAnalysisUtil.cutByTitles(structureMap.get("二.拟诊讨论"), listTitle, 0, structureMap);
|
|
|
}
|