|
@@ -81,7 +81,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
int index = 1;
|
|
|
String operationName = null;
|
|
|
for (Map<String, Object> contentMap : contentMaps) {
|
|
|
- if (contentMap.get("xmlText") == null || StringUtil.isBlank(contentMap.get("xmlText").toString())) {
|
|
|
+ if (contentMap.get("htmlText") == null || StringUtil.isBlank(contentMap.get("htmlText").toString())) {
|
|
|
continue;
|
|
|
}
|
|
|
try {
|
|
@@ -100,7 +100,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private OperationDiscussionDoc getOperationDiscussionDoc(Map<String, Object> contentMap) {
|
|
|
- String content = contentMap.get("xmlText").toString();
|
|
|
+ String content = contentMap.get("htmlText").toString();
|
|
|
Map<String, String> structureMap = null;
|
|
|
OperationDiscussionDoc operationDiscussionDoc = new OperationDiscussionDoc();
|
|
|
if (contentMap.get("isParsed") != null && "1".equals(contentMap.get("isParsed").toString())) {
|
|
@@ -119,6 +119,10 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
NingHaiYiYiHtmlAnalysis beiLunHtmlAnalysis = new NingHaiYiYiOperationHtmlAnalysis();
|
|
|
Map<String, String> sourceMap = beiLunHtmlAnalysis.analysis(content, recTitle, recTypeId);
|
|
|
if (MapUtils.isNotEmpty(sourceMap)) {
|
|
|
+ if (sourceMap.containsKey("病历标题") && sourceMap.get("病历标题").matches("[\\d]+年.*")) {
|
|
|
+ sourceMap.put("病历日期", sourceMap.get("病历标题").substring(0, Math.max(0, sourceMap.get("病历标题").indexOf("术后首次"))));
|
|
|
+ sourceMap.put("病历标题", sourceMap.get("病历标题").replace(sourceMap.get("病历日期"), ""));
|
|
|
+ }
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, operationDiscussion_keyContrasts);
|
|
|
structureMap.put("记录编号", contentMap.get("recId").toString());
|
|
|
structureMap.put("病历号", contentMap.get("behospitalCode") == null ? null : contentMap.get("behospitalCode").toString());
|
|
@@ -136,13 +140,8 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private List<String> operationDiscussion_keyContrasts = Lists.newArrayList(
|
|
|
- "手术简要经过(包括手术方式、术中所见、过程是否顺利、有无并发症等)=手术简要经过",
|
|
|
- "病情记录=手术简要经过",
|
|
|
- "术后诊断=术中后诊断",
|
|
|
- "患者手术后情况=患者术后情况",
|
|
|
- "术后应当特别注意观察的事项:=术后注意事项",
|
|
|
- "术后治疗计划(包括术后应当特别注意观察的事项)=术后注意事项",
|
|
|
- "医师签名=医生签名"
|
|
|
+ "病历标题=标题",
|
|
|
+ "病情记录=病程内容"
|
|
|
);
|
|
|
|
|
|
|
|
@@ -155,7 +154,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
int index = 1;
|
|
|
String operationName = null;
|
|
|
for (Map<String, Object> contentMap : contentMaps) {
|
|
|
- if (contentMap.get("xmlText") == null || StringUtil.isBlank(contentMap.get("xmlText").toString())) {
|
|
|
+ if (contentMap.get("htmlText") == null || StringUtil.isBlank(contentMap.get("htmlText").toString())) {
|
|
|
continue;
|
|
|
}
|
|
|
try {
|
|
@@ -174,7 +173,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private OperationRecordDoc getOperationRecordDoc(Map<String, Object> contentMap) {
|
|
|
- String content = contentMap.get("xmlText").toString();
|
|
|
+ String content = contentMap.get("htmlText").toString();
|
|
|
Map<String, String> structureMap = null;
|
|
|
if (contentMap.get("isParsed") != null && "1".equals(contentMap.get("isParsed").toString())) {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
@@ -213,11 +212,14 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private List<String> operationRecord_keyContrasts = Lists.newArrayList(
|
|
|
+ "手术时间=手术日期",
|
|
|
"手术经过=手术经过及处理",
|
|
|
+ "手术经过(包括病人体位、切口处理、病灶所见及手术步骤等)=手术经过及处理",
|
|
|
"术后诊断=术中后诊断",
|
|
|
- "主刀=主刀医师",
|
|
|
- "记录者=记录医生",
|
|
|
+ "手术人员=主刀医师",
|
|
|
+ "医师签名=记录医生",
|
|
|
"患者手术后情况=患者术后情况",
|
|
|
+ "麻醉人员=麻醉医师",
|
|
|
"麻醉方法=麻醉方式",
|
|
|
"时间=记录时间"
|
|
|
);
|
|
@@ -232,7 +234,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
int index = 1;
|
|
|
String operationName = null;
|
|
|
for (Map<String, Object> contentMap : contentMaps) {
|
|
|
- if (contentMap.get("xmlText") == null || StringUtil.isBlank(contentMap.get("xmlText").toString())) {
|
|
|
+ if (contentMap.get("htmlText") == null || StringUtil.isBlank(contentMap.get("htmlText").toString())) {
|
|
|
continue;
|
|
|
}
|
|
|
try {
|
|
@@ -251,7 +253,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private PreoperativeDiscussionDoc getPreoperativeDiscussionDoc(Map<String, Object> contentMap) {
|
|
|
- String content = contentMap.get("xmlText").toString();
|
|
|
+ String content = contentMap.get("htmlText").toString();
|
|
|
Map<String, String> structureMap = null;
|
|
|
if (contentMap.get("isParsed") != null && "1".equals(contentMap.get("isParsed").toString())) {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
@@ -307,6 +309,16 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
private List<String> preoperativeDiscussion_keyContrasts = Lists.newArrayList(
|
|
|
+ "一、简要病情=简要病情",
|
|
|
+ "1.术前诊断=术前诊断",
|
|
|
+ "2.手术指征与禁忌征=手术指征与禁忌",
|
|
|
+ "3.可替代方案=可替代的方案",
|
|
|
+ "4.拟施手术方式、名称及可能的变更=拟施手术方式名称及可能的变更与禁忌症",
|
|
|
+ "5.计划性多次手术=计划性多次手术",
|
|
|
+ "6.拟施麻醉方式=拟施麻醉方式",
|
|
|
+ "7.术前特殊准备=术前准备",
|
|
|
+ "8.主要术中、术后风险及防范措施=风险及防范措施",
|
|
|
+ "9.术中、术后注意事项(含护理事项)=术中术后注意事项",
|
|
|
"1.术前诊断=术前诊断",
|
|
|
"2.手术指征与禁忌征=手术指征与禁忌",
|
|
|
"3.可替代方案=可替代的方案",
|
|
@@ -325,7 +337,9 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
//"拟施手术方式(名称)及可能的变更方案=拟施手术方式、名称及可能的变更与禁忌症",
|
|
|
//"术前特殊准备=术前准备",
|
|
|
//"手术指征与禁忌征=手术指征与禁忌",
|
|
|
+ "经治医师签名=记录医生",
|
|
|
"经治医生签字时间=记录时间",
|
|
|
+ "主刀医师签名=主刀医生签名",
|
|
|
"签字时间=记录时间"
|
|
|
);
|
|
|
|
|
@@ -338,7 +352,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
int index = 1;
|
|
|
String operationName = null;
|
|
|
for (Map<String, Object> contentMap : contentMaps) {
|
|
|
- if (contentMap.get("xmlText") == null || StringUtil.isBlank(contentMap.get("xmlText").toString())) {
|
|
|
+ if (contentMap.get("htmlText") == null || StringUtil.isBlank(contentMap.get("htmlText").toString())) {
|
|
|
continue;
|
|
|
}
|
|
|
operationName = index + "";
|
|
@@ -352,7 +366,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
|
|
|
private OperationInformedConsentDoc getOperationInformedConsentDoc(Map<String, Object> contentMap) {
|
|
|
String modeId = "16";
|
|
|
-// String content = contentMap.get("xmlText").toString();
|
|
|
+// String content = contentMap.get("htmlText").toString();
|
|
|
// Map<String, String> xmlNodeValueMap = CxXmlUtil.firstLevelNodeValue(content);
|
|
|
// xmlNodeValueMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
// xmlNodeValueMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
@@ -413,7 +427,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
int index = 1;
|
|
|
String operationName = null;
|
|
|
for (Map<String, Object> contentMap : contentMaps) {
|
|
|
- if (contentMap.get("xmlText") == null || StringUtil.isBlank(contentMap.get("xmlText").toString())) {
|
|
|
+ if (contentMap.get("htmlText") == null || StringUtil.isBlank(contentMap.get("htmlText").toString())) {
|
|
|
continue;
|
|
|
}
|
|
|
operationName = index + "";
|
|
@@ -427,7 +441,7 @@ public class NingHaiYiYiOperationDocTrans extends ModelDocTrans {
|
|
|
|
|
|
private OperationSafetyChecklistDoc getOperationSafetyChecklistDoc(Map<String, Object> contentMap) {
|
|
|
String modeId = "21";
|
|
|
-// String content = contentMap.get("xmlText").toString();
|
|
|
+// String content = contentMap.get("htmlText").toString();
|
|
|
// Map<String, String> xmlNodeValueMap = CxXmlUtil.firstLevelNodeValue(content);
|
|
|
// xmlNodeValueMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
// xmlNodeValueMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|