|
@@ -100,19 +100,7 @@ public class ChangxOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap.put("记录医师", structureMap.get("签名"));
|
|
|
}
|
|
|
|
|
|
- String text = null;
|
|
|
- String[] nodePaths = {
|
|
|
- "//DocObjContent/Region/Content_Text",
|
|
|
- "//DocObjContent/Region",
|
|
|
- "//DocObjContent/Content_Text",
|
|
|
- "//DocObjContent"
|
|
|
- };
|
|
|
- for (String nodePath : nodePaths) {
|
|
|
- text = CxXmlUtil.getTextByNodePath(content, nodePath);
|
|
|
- if (StringUtil.isNotBlank(text)) {
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ String text = CxXmlUtil.getXmlText(content);
|
|
|
Map<String, String> cutWordMap = Preproc.getCutWordMap(true, operationDiscussion_sourceTitles, text);
|
|
|
cutWordMap.putAll(structureMap);
|
|
|
|
|
@@ -194,10 +182,7 @@ public class ChangxOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap.put("记录医师", structureMap.get("签名"));
|
|
|
}
|
|
|
|
|
|
- String text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent/Content_Text");
|
|
|
- if (StringUtil.isBlank(text)) {
|
|
|
- text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent");
|
|
|
- }
|
|
|
+ String text = CxXmlUtil.getXmlText(content);
|
|
|
Map<String, String> cutWordMap = Preproc.getCutWordMap(true, operationRecord_sourceTitles, text);
|
|
|
cutWordMap.putAll(structureMap);
|
|
|
|
|
@@ -303,10 +288,7 @@ public class ChangxOperationDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
|
|
|
- String text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent/Region/Content_Text");
|
|
|
- if (StringUtil.isBlank(text)) {
|
|
|
- text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent/Region");
|
|
|
- }
|
|
|
+ String text = CxXmlUtil.getXmlText(content);
|
|
|
Map<String, String> cutWordMap = Preproc.getCutWordMap(true, preoperativeDiscussion_sourceTitles, text);
|
|
|
cutWordMap.putAll(structureMap);
|
|
|
|
|
@@ -383,10 +365,7 @@ public class ChangxOperationDocTrans extends ModelDocTrans {
|
|
|
xmlNodeValueMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(xmlNodeValueMap, operationInformedConsent_keyContrasts);
|
|
|
|
|
|
- String text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent/Content_Text");
|
|
|
- if (StringUtil.isBlank(text)) {
|
|
|
- text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent");
|
|
|
- }
|
|
|
+ String text = CxXmlUtil.getXmlText(content);
|
|
|
Map<String, String> cutWordMap = Preproc.getCutWordMap(true, operationInformedConsent_sourceTitles, text);
|
|
|
cutWordMap.putAll(structureMap);
|
|
|
|
|
@@ -460,10 +439,7 @@ public class ChangxOperationDocTrans extends ModelDocTrans {
|
|
|
xmlNodeValueMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(xmlNodeValueMap, operationSafetyChecklist_keyContrasts);
|
|
|
|
|
|
- String text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent/Content_Text");
|
|
|
- if (StringUtil.isBlank(text)) {
|
|
|
- text = CxXmlUtil.getTextByNodePath(content, "//DocObjContent");
|
|
|
- }
|
|
|
+ String text = CxXmlUtil.getXmlText(content);
|
|
|
Map<String, String> cutWordMap = Preproc.getCutWordMap(true, operationSafetyChecklist_sourceTitles, text);
|
|
|
cutWordMap.putAll(structureMap);
|
|
|
|