Browse Source

义乌入院记录产科个人史处理修改

fangqw 4 years ago
parent
commit
c494ca1667

+ 6 - 1
trans/src/main/java/com/lantone/qc/trans/yiwu/YiWuBeHospitalizedDocTrans.java

@@ -49,7 +49,7 @@ public class YiWuBeHospitalizedDocTrans extends ModelDocTrans {
         } else {
         } else {
             Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
             Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
             sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
             sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
-            List<String> titles = Lists.newArrayList("妇科检查","产科检查","实验室","初步诊断","修正诊断","补充诊断","医师签名","日    期");
+            List<String> titles = Lists.newArrayList("个人史","妇科检查","产科检查","实验室","初步诊断","修正诊断","补充诊断","医师签名","日    期");
             String text = sourceMap.get("原始文本");
             String text = sourceMap.get("原始文本");
             List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
             List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
             CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
             CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
@@ -114,6 +114,11 @@ public class YiWuBeHospitalizedDocTrans extends ModelDocTrans {
                         replaceAll(":","");
                         replaceAll(":","");
                 structureMap.put("初步诊断",value);
                 structureMap.put("初步诊断",value);
             }
             }
+            //产科入院记录个人史处理
+            if(structureMap.containsKey("个人史")){
+                String value=structureMap.get("个人史").replaceAll("月经史:","");
+                structureMap.put("初步诊断",value);
+            }
             OrdinaryAssistant.removeBlank(structureMap);
             OrdinaryAssistant.removeBlank(structureMap);
         }
         }
         /*if (StringUtils.isEmpty(structureMap.get("入院时间")) && StringUtils.isNotEmpty(structureMap.get("入病房时间"))) {
         /*if (StringUtils.isEmpty(structureMap.get("入院时间")) && StringUtils.isNotEmpty(structureMap.get("入病房时间"))) {