|
@@ -33,6 +33,7 @@ public class EzXmlAnalysis {
|
|
Document doc = DocumentHelper.parseText(xml);
|
|
Document doc = DocumentHelper.parseText(xml);
|
|
Element rootElement = doc.getRootElement();
|
|
Element rootElement = doc.getRootElement();
|
|
jbxxInsertMap(rootElement, map);
|
|
jbxxInsertMap(rootElement, map);
|
|
|
|
+ sgtzInsertMap(rootElement, map);
|
|
tgjcInsertMap(rootElement, map);
|
|
tgjcInsertMap(rootElement, map);
|
|
fzjcInsertMap(rootElement, map);
|
|
fzjcInsertMap(rootElement, map);
|
|
zkjcInsertMap(rootElement, map);
|
|
zkjcInsertMap(rootElement, map);
|
|
@@ -144,6 +145,18 @@ public class EzXmlAnalysis {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //身高体重
|
|
|
|
+ public static void sgtzInsertMap(Element rootElement, Map<String, String> map) {
|
|
|
|
+ Node tgjcNode = rootElement.selectSingleNode("section[@name='体格检查']");
|
|
|
|
+ if (tgjcNode != null) {
|
|
|
|
+ Node ybqkNode = tgjcNode.selectSingleNode("section[@name='一般情况']");
|
|
|
|
+ if (ybqkNode != null) {
|
|
|
|
+ elementInsertMap((Element) tgjcNode.selectSingleNode("fieldelem[@name='身高']"), map);
|
|
|
|
+ elementInsertMap((Element) tgjcNode.selectSingleNode("fieldelem[@name='体重']"), map);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
//体格检查
|
|
//体格检查
|
|
public static void tgjcInsertMap(Element rootElement, Map<String, String> map) {
|
|
public static void tgjcInsertMap(Element rootElement, Map<String, String> map) {
|
|
Node tgjcNode = rootElement.selectSingleNode("section[@name='体格检查']");
|
|
Node tgjcNode = rootElement.selectSingleNode("section[@name='体格检查']");
|