【问题标题】:Trying to read HtmlElement from ccd.xml using java尝试使用 java 从 ccd.xml 读取 HtmlElement
【发布时间】:2013-09-28 07:38:56
【问题描述】:

我正在使用 java 解析 ccd.xml。 我可以使用 java 对象访问 ccd 的每个节点/元素。

查询:当 htmlElement 进入 ccd 的任何节点时。我的 java 对象没有到达那个节点? 我可以获取 templateId、title 但在到达 ccd.xml 的文本节点后,我的 java 对象无法显示表节点。

示例 ccd.xml 如下所示:

<component>
<section>
    <templateId root='2.16.840.1.113883.10.20.1.9'/> <!-- Payers section template -->
    <code code="48768-6" codeSystem="2.16.840.1.113883.6.1"/>
    <title>Payers</title>
    <text>
        <table border="1" width="100%">
            <thead>
            <tr><th>Payer name</th><th>Policy type / Coverage type</th><th>Covered party ID</th> <th>Authorization(s)</th></tr>
            </thead>
            <tbody>
                <tr>
                    <td>Good Health Insurance</td> 
                    <td>Extended healthcare / Self</td> 
                    <td>14d4a520-7aae-11db-9fe1-0800200c9a66</td>
                    <td>Colonoscopy</td>
                </tr>
            </tbody>
        </table>
    </text>

</section>
</component>

非常感谢任何帮助。

【问题讨论】:

    标签: java html xml ccd


    【解决方案1】:

    看看 MDHT - 一个用于读/写 CDA 内容的开源项目 文本属性是混合内容 https://www.projects.openhealthtools.org/sf/projects/mdht/

    【讨论】:

    • 我学过openhealthtools,有没有lib.读取
      节点,因为当我尝试这个 Component3 t= ccdDocument.getComponent().getStructuredBody().getComponents().get(0);对象 s = t.getSection().getText().getMixed().get(0).getValue(); System.out.println(s);我在控制台上得到空白输出
    猜你喜欢
    • 2020-08-05
    • 2014-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-29
    • 1970-01-01
    • 2011-02-05
    相关资源
    最近更新 更多