|
@@ -55,11 +55,17 @@ public class BeiLunBeHospitalizedHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
BeiLunHtmlAnalysisUtil.tableStyle2InsertMap(tgjcTableElement, map);
|
|
|
|
|
|
//诊断 table解析
|
|
|
- String disTableElementId = "table7_2_0_0_1_1_2_0_1_4_5_6_7_0_1";
|
|
|
- if (recTitle.equals("妇科大病历")) {
|
|
|
- disTableElementId = "table7_2_0_0_1_1_2_0_1_4_5_6_7_0_1_37";
|
|
|
+ String disTableElementId = null;
|
|
|
+ Element disTableElement = null;
|
|
|
+ String[] disTableElementIds = { "table7_2_0_0_1_1_2_0_1_4_5_6_7_0_1_37", "table7_2_0_0_1_1_2_0_1_4_5_6_7_0_1", "table7_2_0_0_1_1_2_0_1_4_5_6_7" };
|
|
|
+ for (String eid : disTableElementIds) {
|
|
|
+ disTableElement = doc.getElementById(eid);
|
|
|
+ if (disTableElement != null) {
|
|
|
+ disTableElementId = eid;
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
- Element disTableElement = doc.getElementById(disTableElementId);
|
|
|
+
|
|
|
BeiLunHtmlAnalysisUtil.tableStyle1InsertMap(disTableElement, map);
|
|
|
disHandleExt(map);
|
|
|
|
|
@@ -86,7 +92,7 @@ public class BeiLunBeHospitalizedHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
Element yuElement = new Element("div");
|
|
|
if (tgjcTableElement != null) {
|
|
|
for (Element tgjcTableElementNt : tgjcTableElement.nextElementSiblings()) {
|
|
|
- if (tgjcTableElementNt.id().contains("table7_2_0_0_1_1_2_0_1_4_5_6_7_0_1")) {
|
|
|
+ if (tgjcTableElementNt.id().contains(disTableElementId)) {
|
|
|
break;
|
|
|
}
|
|
|
if (tgjcTableElementNt.tagName().equals("table")) {
|