|
@@ -38,13 +38,12 @@ public class ConsultationTran extends TargetTran {
|
|
}
|
|
}
|
|
|
|
|
|
private List<String> stagesContrasts = Lists.newArrayList(
|
|
private List<String> stagesContrasts = Lists.newArrayList(
|
|
- "姓名=患者姓名"
|
|
|
|
|
|
+ //"姓名=患者姓名"
|
|
);
|
|
);
|
|
private Map<String, String> cutWord(String text) {
|
|
private Map<String, String> cutWord(String text) {
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
- Lists.newArrayList("简要病情","辅助检查","会诊理由及目的","鉴别诊断","诊疗计划"), text);
|
|
|
|
-
|
|
|
|
|
|
+ Lists.newArrayList("其病历简述如下","会诊理由","会诊目的","会诊理由及目的","日期","目前诊断考虑","会诊结论","会诊意见"), text);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
return sourceMap;
|
|
return sourceMap;
|
|
}
|
|
}
|
|
@@ -78,29 +77,6 @@ public class ConsultationTran extends TargetTran {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * 抽取文本中的最后时间
|
|
|
|
- *
|
|
|
|
- * @param top
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public static String lastTime(String top) {
|
|
|
|
- int length = top.trim().length();
|
|
|
|
- String stringDate = top.trim().substring(length - 11, length);
|
|
|
|
- Date date = null;
|
|
|
|
- try {
|
|
|
|
- date = DateUtils.parseDate(stringDate, StringUtil.dateFormats);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- log.error(e.getMessage(),e);
|
|
|
|
- }
|
|
|
|
- if(date!= null){
|
|
|
|
- return stringDate;
|
|
|
|
- }else{
|
|
|
|
- return "";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
public void consultationContrast( List<ConsultationDoc> consultationDocs, Map<String, String> retMap) {
|
|
public void consultationContrast( List<ConsultationDoc> consultationDocs, Map<String, String> retMap) {
|
|
if(consultationDocs != null) {
|
|
if(consultationDocs != null) {
|
|
String text = consultationDocs.get(0).getConsultationRecordDoc().getText();
|
|
String text = consultationDocs.get(0).getConsultationRecordDoc().getText();
|