Browse Source

恩泽:一般手术记录增加手术日期时间

wangsy 4 years ago
parent
commit
bd1ba04997

+ 7 - 1
structure-center/src/main/java/com/lantone/structure/facade/tran/OperationRecordDocTran.java

@@ -131,7 +131,7 @@ public class OperationRecordDocTran extends TargetTran {
 
     private Map<String, String> cutWord(String text) {
         Map<String, String> sourceMap = Maps.newHashMap();
-        text = text.replace("年  月  日  时  分", "").replace("第1次手术","")
+        text = text.replace("年  月  日  时  分", "").replace("第1次手术", "")
                 .replace("(包括体位、切口处理经过,病理标本肉眼所见) ", "");
         List<String> titles = CommonAnalysisUtil.sortTitles(
                 Lists.newArrayList("手术开始时间", "手术结束时间", "术前诊断", "手术名称", "术中诊断", "手 术 者", "手术人员", "助手",
@@ -156,6 +156,12 @@ public class OperationRecordDocTran extends TargetTran {
                     sourceMap.put("签名日期时间", date);
                 }
             }
+
+            //其他模块使用
+            if (sourceMap.containsKey("手术开始时间") && sourceMap.containsKey("手术结束时间")) {
+                sourceMap.put("手术日期时间", sourceMap.containsKey("手术开始时间") + "-" + sourceMap.containsKey("手术结束时间"));
+            }
+
             CommonAnalysisUtil.removeKey(sourceMap, "术前诊断", "术中诊断", "⒈患者基本情况", "⒉拟实施的输血方案", "手术标本", "手术切除标本", "术中并发症",
                     "与病人关系", "术后情况及诊疗计划", "术后注意事项", "手术简要经过(包括“术中所见”)");
         }