|
@@ -30,7 +30,7 @@ public class BeiLunFirstCourseRecordHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
String recTypeId = args[2];
|
|
|
Document doc = Jsoup.parse(html);
|
|
|
List<String> titles = Lists.newArrayList("病例特点","病历特点","中医辨病辩证依据及鉴别诊断",
|
|
|
- "西医诊断依据及鉴别诊断","西医诊断依据","西医鉴别诊断","拟诊讨论","初步诊断","诊疗方案",
|
|
|
+ "西医诊断依据及鉴别诊断","西医诊断依据","西医鉴别诊断","鉴别诊断","拟诊讨论","初步诊断","诊疗方案",
|
|
|
"医师签名","诊疗计划"
|
|
|
);
|
|
|
String htmlContent = XszyyCommonAnalysisUtil.html2String(doc.toString());
|
|
@@ -40,11 +40,27 @@ public class BeiLunFirstCourseRecordHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
if(htmlContent.contains("病历特点")){
|
|
|
structureMap.put("病历内容",htmlContent.substring(0,htmlContent.indexOf("病历特点")));
|
|
|
}else if(htmlContent.contains("病例特点")){
|
|
|
- structureMap.put("病历内容",htmlContent.substring(0,htmlContent.indexOf("出院记录内容缺诊疗经过")));
|
|
|
+ structureMap.put("病历内容",htmlContent.substring(0,htmlContent.indexOf("病例特点")));
|
|
|
}
|
|
|
if(XszyyCommonAnalysisUtil.extractDate(htmlContent)!=null){
|
|
|
structureMap.put("病历日期",XszyyCommonAnalysisUtil.extractDate(htmlContent));
|
|
|
}
|
|
|
+ List<String> specialString = Lists.newArrayList(
|
|
|
+ "根据情况,目前诊断明确,无需鉴别诊断。",
|
|
|
+ "根据病史查体影像学资料,诊断明确,无需鉴别。",
|
|
|
+ "本病有明确外伤史,结合影像学检查可明确诊断,无需鉴别。"
|
|
|
+ );
|
|
|
+ if(StringUtil.isNotEmpty(structureMap.get("西医诊断依据及鉴别诊断"))){
|
|
|
+ structureMap.put("西医诊断依据",structureMap.get("西医诊断依据及鉴别诊断"));
|
|
|
+ if(StringUtil.isEmpty(structureMap.get("西医诊断依据")) || StringUtil.isEmpty(structureMap.get("西医鉴别诊断"))){
|
|
|
+ for (String specialC:specialString) {
|
|
|
+ if(structureMap.get("西医诊断依据").contains(specialC)){
|
|
|
+ structureMap.put("西医诊断依据",structureMap.get("西医诊断依据").replace(specialC,""));
|
|
|
+ structureMap.put("西医鉴别诊断",specialC);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
structureMap.put("标题",recTitle);
|
|
|
XszyyHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|