|
@@ -30,16 +30,30 @@ public class BeiLunOperationRecordHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
Element bigDivElement = Jsoup.parse(html).selectFirst("body").child(0);
|
|
|
analysisGeneral(bigDivElement, map);
|
|
|
BeiLunHtmlAnalysisUtil.mapValueRemoveStartColon(map);
|
|
|
+ String operatingCrew = null;
|
|
|
if (map.containsKey("手术人员")) {
|
|
|
- String operatingCrew = map.get("手术人员");
|
|
|
- if (StringUtil.isNotBlank(operatingCrew)) {
|
|
|
- CommonAnalysisUtil.cutByTitles(operatingCrew, Lists.newArrayList("主刀", "一助", "二助", "洗手护士"), 0, map);
|
|
|
- }
|
|
|
+ operatingCrew = map.get("手术人员");
|
|
|
+ } else if (map.containsKey("手术者及助手名称")) {
|
|
|
+ operatingCrew = map.get("手术者及助手名称");
|
|
|
+ }
|
|
|
+ if (StringUtil.isNotBlank(operatingCrew)) {
|
|
|
+ CommonAnalysisUtil.cutByTitles(operatingCrew, Lists.newArrayList("主刀", "一助", "二助", "助手", "洗手护士"), 0, map);
|
|
|
+ }
|
|
|
+ if (map.containsKey("主刀")) {
|
|
|
+ map.put("主刀", map.get("主刀").replaceAll("[^\u4E00-\u9FA5]", ""));
|
|
|
}
|
|
|
if (map.containsKey("麻醉者")) {
|
|
|
map.put("麻醉医师", map.get("麻醉者").replace("麻醉医生:", ""));
|
|
|
}
|
|
|
- CommonAnalysisUtil.makeEmpty(map,"医生签名");
|
|
|
+ if (map.containsKey("手术日期")) {
|
|
|
+ String operatorDateStr = map.get("手术日期");
|
|
|
+ if (operatorDateStr.contains("--")) {
|
|
|
+ String[] operatorDate = operatorDateStr.split("--");
|
|
|
+ map.put("手术开始时间", operatorDate[0]);
|
|
|
+ map.put("手术结束时间", operatorDate[1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ CommonAnalysisUtil.makeEmpty(map, "医生签名");
|
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, map);
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|