|
@@ -43,24 +43,24 @@ public class YwzxyyOperationRecordXmlAnalysis implements YwzxyyXmlAnalysis {
|
|
|
|
|
|
CommonAnalysisUtil.repKey(structureMap, "记录时间", "时间");
|
|
|
CommonAnalysisUtil.repKey(structureMap, "记录医生", "记录医师");
|
|
|
- if(StringUtil.isNotBlank(structureMap.get("手术开始时间")) && structureMap.get("手术开始时间").contains(".")){
|
|
|
- structureMap.put("手术开始时间",structureMap.get("手术开始时间").replace(".","/"));
|
|
|
- }else {
|
|
|
- CommonAnalysisUtil.repKey(structureMap, "手术开始时间", " ");
|
|
|
+ if (StringUtil.isNotBlank(structureMap.get("手术开始时间"))) {
|
|
|
+ if (structureMap.get("手术开始时间").contains(".")) {
|
|
|
+ structureMap.put("手术开始时间", structureMap.get("手术开始时间").replace(".", "/"));
|
|
|
+ } else {
|
|
|
+ CommonAnalysisUtil.repKey(structureMap, "手术开始时间", " ");
|
|
|
+ }
|
|
|
+ structureMap.put("手术开始时间", structureMap.get("手术开始时间").replace("点", "时"));
|
|
|
}
|
|
|
|
|
|
- if(StringUtil.isNotBlank(structureMap.get("手术结束时间")) && structureMap.get("手术结束时间").contains(".")){
|
|
|
- structureMap.put("手术结束时间",structureMap.get("手术结束时间").replace(".","/"));
|
|
|
- }else {
|
|
|
- CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
|
|
|
+ if (StringUtil.isNotBlank(structureMap.get("手术结束时间"))) {
|
|
|
+ if (structureMap.get("手术结束时间").contains(".")) {
|
|
|
+ structureMap.put("手术结束时间", structureMap.get("手术结束时间").replace(".", "/"));
|
|
|
+ } else {
|
|
|
+ CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
|
|
|
+ }
|
|
|
+ structureMap.put("手术结束时间", structureMap.get("手术结束时间").replace("点", "时"));
|
|
|
}
|
|
|
|
|
|
- if (StringUtil.isNotBlank(structureMap.get("记录时间"))) {
|
|
|
- structureMap.put("记录时间", structureMap.get("记录时间").replaceAll("时间", ""));
|
|
|
- }
|
|
|
- if (StringUtil.isNotBlank(structureMap.get("记录医生"))) {
|
|
|
- structureMap.put("记录医生", structureMap.get("记录医生").replaceAll("记录医师", ""));
|
|
|
- }
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|
|
|
}
|