浏览代码

北仑:术前小结原数据多余字段删除

wangsy 4 年之前
父节点
当前提交
1325ee0335

+ 13 - 1
trans/src/main/java/com/lantone/qc/trans/beilun/BeiLunOperationDocTrans.java

@@ -246,11 +246,23 @@ public class BeiLunOperationDocTrans extends ModelDocTrans {
                 structureMap.put("病历号", contentMap.get("behospitalCode") == null ? null : contentMap.get("behospitalCode").toString());
             }
         }
-        List<String> titles = Lists.newArrayList("手术指征", "注意事项", "术前诊断","医生签名", "手术指征与禁忌征", "可替代方案", "术前准备");
+        List<String> titles = Lists.newArrayList("讨论时间", "手术指征", "注意事项", "术前诊断", "医生签名", "风险及防范措施", "手术指征与禁忌征", "可替代方案", "术前准备", "参加人员");
         if (structureMap.containsKey("简要病情")) {
             String value = structureMap.get("简要病情").replaceAll("医师姓名", "").replaceAll("简要病情描述", "");
             structureMap.put("简要病情", value);
         }
+        if (structureMap.containsKey("可替代的方案")) {
+            String value = structureMap.get("可替代的方案").replaceAll("可替代方案", "");
+            structureMap.put("可替代的方案", value);
+        }
+        if (structureMap.containsKey("拟施麻醉方式")) {
+            String value = structureMap.get("拟施麻醉方式").replaceAll("麻醉方式", "");
+            structureMap.put("拟施麻醉方式", value);
+        }
+        if (structureMap.containsKey("其他术前相关情况")) {
+            String value = structureMap.get("其他术前相关情况").replaceAll("术者术前查看患者的相关情况", "");
+            structureMap.put("其他术前相关情况", value);
+        }
         for (String title : titles) {
             eliminateDate(structureMap, title);
         }

+ 4 - 2
trans/src/main/java/com/lantone/qc/trans/beilun/util/BeiLunPreoperativeHtmlAnalysis.java

@@ -48,8 +48,10 @@ public class BeiLunPreoperativeHtmlAnalysis implements BeiLunHtmlAnalysis {
         int index1 = text.lastIndexOf("经治医生签名");
         int index2 = text.lastIndexOf("主刀医生签名");
         if (index1 != -1 && index2 != -1) {
-            text = text.substring(0, index1).replace("(如高血压病、冠心病、糖尿病、脑梗、心梗、心肺肝肾功能不全,口服抗凝药", "")
-                    .replace("等)", "").replace("(如腹腔镜可能改开腹等)", "")
+            text = text.substring(0, index1).replace("(如高血压病、冠心病、糖尿病、脑梗、心梗、心肺肝肾功能不全,口服抗凝药", "").replace("等)", "")
+                    .replace("(如腹腔镜可能改开腹等)", "").replace("(如腹腔镜可能改开腹", "").replace("皮瓣转移术可能的变更方案","")
+                    .replace("四级手术、疑难手术等必须填写以下“具体讨论意见”,作为科室三大讨论本留存资料", "")
+                    .replace("注意事项术中仔细操作,避免损伤周围重要神经、血管(其他术中注意事项和应急预案);术后", "").replace("可予以预防感染、营养支持等治疗。","")
                     + text.substring(index1, index2).replace("签字时间", "经治医生签字时间").replace("年月日时分", "")
                     + text.substring(index2).replace("签字时间", "主刀医生签字时间").replace("年月日时分", "");
         }