瀏覽代碼

北仑:增加出院小结中入院情况不带冒号的处理

huj 4 年之前
父節點
當前提交
7d81bd80ae

+ 7 - 1
trans/src/main/java/com/lantone/qc/trans/beilun/util/BeiLunLeaveHospitalHtmlAnalysis.java

@@ -27,7 +27,7 @@ public class BeiLunLeaveHospitalHtmlAnalysis implements BeiLunHtmlAnalysis {
         try {
             List<String> titles = Lists.newArrayList("姓名", "出生年月", "性别", "年龄", "出生日期", "科室", "病区", "床位", "床号", "住院号 ", "住院号",
                     "入院日期", "出院日期", "地址", "住院天数", "婚姻", "入院诊断", "出院诊断", "分娩日期", "分娩方式", "手术指征",
-                    "入院情况", "诊治经过", "入院后检查化验结果", "诊疗经过", "治疗结果", "出院计划", "病理检查结果", "出院情况", "婴儿情况",
+                    "入院情况", "诊治经过", "入院后检查化验结果", "入院后化验检查结果", "诊疗经过", "治疗结果", "出院计划", "病理检查结果", "出院情况", "婴儿情况",
                     "治疗效果", "出院医嘱", "医师签名", "日期", "病理号", "X片号", "MR号", "CT号", "其它", "主治医师", "住院医师");
             String html = args[0];
             String recTitle = args[1];
@@ -42,6 +42,12 @@ public class BeiLunLeaveHospitalHtmlAnalysis implements BeiLunHtmlAnalysis {
                 sortTitles.add("时间");
                 CommonAnalysisUtil.cutByTitles(htmlContent, sortTitles, 0, structureMap);
             }
+            if (structureMap.containsKey("出院诊断") && structureMap.get("出院诊断").contains("入院情况")) {
+                String discharge = structureMap.get("出院诊断");
+                int index = discharge.indexOf("入院情况");
+                structureMap.put("出院诊断", discharge.substring(0, index));
+                structureMap.put("入院情况", discharge.substring(index + 4));
+            }
             CommonAnalysisUtil.extractDateByTitle(structureMap, "时间");
             BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
         } catch (Exception e) {