|
@@ -41,7 +41,7 @@ public class ShaoyfHtmlUtil {
|
|
|
tableElements.get(i).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
otherPageMap.put(
|
|
|
spanElement.attr("Comment"),
|
|
|
- spanElement.ownText().replaceAll(" ", "")
|
|
|
+ spanElement.text().replaceAll(" ", "")
|
|
|
);
|
|
|
});
|
|
|
}
|
|
@@ -50,42 +50,42 @@ public class ShaoyfHtmlUtil {
|
|
|
|
|
|
tableElements.get(4).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
String comment = spanElement.attr("Comment");
|
|
|
- String ownTex = spanElement.ownText().replaceAll(" ", "");
|
|
|
+ String text = spanElement.text().replaceAll(" ", "");
|
|
|
if (comment.equals("新生儿年龄")) {
|
|
|
- comment = comment + spanElement.nextElementSibling().ownText();
|
|
|
+ comment = comment + spanElement.nextElementSibling().text();
|
|
|
}
|
|
|
- otherPageMap.put(comment, ownTex);
|
|
|
+ otherPageMap.put(comment, text);
|
|
|
});
|
|
|
|
|
|
tableElements.get(12).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
String comment = spanElement.attr("Comment");
|
|
|
- String ownTex = spanElement.ownText().replaceAll(" ", "");
|
|
|
+ String text = spanElement.text().replaceAll(" ", "");
|
|
|
if (comment.equals("ICD10")) {
|
|
|
- otherPageMap.put("门急诊诊断编码", ownTex);
|
|
|
+ otherPageMap.put("门急诊诊断编码", text);
|
|
|
} else {
|
|
|
- otherPageMap.put("门急诊诊断", ownTex);
|
|
|
+ otherPageMap.put("门急诊诊断", text);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
tableElements.get(14).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
String comment = spanElement.attr("Comment");
|
|
|
- String ownTex = spanElement.ownText().replaceAll(" ", "");
|
|
|
+ String text = spanElement.text().replaceAll(" ", "");
|
|
|
if (comment.equals("ICD10")) {
|
|
|
- otherPageMap.put("损伤中毒因素编码", ownTex);
|
|
|
+ otherPageMap.put("损伤中毒因素编码", text);
|
|
|
} else {
|
|
|
- otherPageMap.put("损伤中毒因素", ownTex);
|
|
|
+ otherPageMap.put("损伤中毒因素", text);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
tableElements.get(15).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
String comment = spanElement.attr("Comment");
|
|
|
- String ownTex = spanElement.ownText().replaceAll(" ", "");
|
|
|
+ String text = spanElement.text().replaceAll(" ", "");
|
|
|
if (comment.equals("ICD10")) {
|
|
|
- otherPageMap.put("病理诊断编码", ownTex);
|
|
|
+ otherPageMap.put("病理诊断编码", text);
|
|
|
} else if (comment.equals("病理号")) {
|
|
|
- otherPageMap.put("病理诊断编号", ownTex);
|
|
|
+ otherPageMap.put("病理诊断编号", text);
|
|
|
} else {
|
|
|
- otherPageMap.put("病理诊断", ownTex);
|
|
|
+ otherPageMap.put("病理诊断", text);
|
|
|
}
|
|
|
});
|
|
|
return otherPageMap;
|
|
@@ -97,7 +97,7 @@ public class ShaoyfHtmlUtil {
|
|
|
List<String> spanTexts = new ArrayList<>();
|
|
|
for (int i = 1; i < trElements.size() - 1; i++) {
|
|
|
trElements.get(i).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
- spanTexts.add(spanElement.ownText());
|
|
|
+ spanTexts.add(spanElement.text());
|
|
|
});
|
|
|
}
|
|
|
List<Map<String, String>> diagMaps = new ArrayList<>();
|
|
@@ -136,7 +136,7 @@ public class ShaoyfHtmlUtil {
|
|
|
trElements.get(i).getElementsByAttributeValue("token", "term").forEach(spanElement -> {
|
|
|
operMap.put(
|
|
|
spanElement.attr("Comment"),
|
|
|
- spanElement.ownText().replaceAll(" ", "")
|
|
|
+ spanElement.text().replaceAll(" ", "")
|
|
|
);
|
|
|
});
|
|
|
if (!operMap.get("手术名称").equals("")) {
|