|
@@ -10,7 +10,6 @@ import org.jsoup.nodes.Document;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description:
|
|
* @Description:
|
|
@@ -26,8 +25,8 @@ public class FirstCourseRecordHtmlAnalysis implements HtmlAnalysis {
|
|
public Map<String, String> analysis(String... args) {
|
|
public Map<String, String> analysis(String... args) {
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
try {
|
|
try {
|
|
- List<String> titles = Lists.newArrayList("病例特点", "拟诊讨论", "中医辨病辨证依据", "鉴别诊断","中医鉴别诊断", "西医鉴别诊断",
|
|
|
|
- "西医诊断依据", "诊断依据", "初步诊断", "病情评估", "诊疗计划", "医生签名");
|
|
|
|
|
|
+ List<String> titles = Lists.newArrayList("病例特点", "拟诊讨论", "中医辨病辨证依据", "鉴别诊断", "中医鉴别诊断", "西医鉴别诊断",
|
|
|
|
+ "西医诊断依据", "诊断依据", "初步诊断", "病情评估", "诊疗计划", "医生签名");
|
|
String html = args[0];
|
|
String html = args[0];
|
|
String recTitle = args[1];
|
|
String recTitle = args[1];
|
|
Document doc = Jsoup.parse(html);
|
|
Document doc = Jsoup.parse(html);
|
|
@@ -35,10 +34,8 @@ public class FirstCourseRecordHtmlAnalysis implements HtmlAnalysis {
|
|
.replace("第1页", "");
|
|
.replace("第1页", "");
|
|
CommonAnalysisUtil.extractWardInfo(recTitle, htmlContent, structureMap);
|
|
CommonAnalysisUtil.extractWardInfo(recTitle, htmlContent, structureMap);
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
- log.error("首次病程录:"+htmlContent);
|
|
|
|
titles = com.lantone.qc.trans.ningbozhenhai.util.CommonAnalysisUtil.sortTitles(titles, htmlContent);
|
|
titles = com.lantone.qc.trans.ningbozhenhai.util.CommonAnalysisUtil.sortTitles(titles, htmlContent);
|
|
- log.error("titles:"+titles.stream().collect(Collectors.joining(",")));
|
|
|
|
- com.lantone.qc.trans.ningbozhenhai.util.CommonAnalysisUtil.cutByTitles(htmlContent, titles, 0, structureMap);
|
|
|
|
|
|
+ CommonAnalysisUtil.cutByTitles(htmlContent, titles, 0, structureMap);
|
|
if (!structureMap.containsKey("诊断依据")) {
|
|
if (!structureMap.containsKey("诊断依据")) {
|
|
String zdyj = "";
|
|
String zdyj = "";
|
|
if (structureMap.containsKey("西医诊断依据")) {
|
|
if (structureMap.containsKey("西医诊断依据")) {
|