【发布时间】:2016-05-25 01:05:48
【问题描述】:
我需要使用 Apache Nifi 从 HL7 XML 文档中提取患者信息, 并应用正则表达式从包含嵌入式 HTML 的部分中提取诊断结果(是的,对不起。不是我的设计选择:-()
HL7 中感兴趣的数据的第一个路径是:
“临床文档”\“记录目标”\“患者角色”\“患者”\“姓名”,
第二个,更复杂的是:
"ClinicalDocument"\"structuredBody"\"component"\"section"\"text @mediaType="text/x-hl7-text+xml""其中的值title 元素等于“诊断结果”
我需要匹配 component 中 section 的 title 的子节点文本值的文本,其值为“Diagnostic Results”(诊断结果),然后提取对等节点的文本值text。
我的 HL7 XML sn-ps 看起来像:
</ClinicalDocument>
...
<recordTarget>
<patientRole>
....
<patient>
<name><given>John</given><family>Doe</family></name>
...
<structuredBody>
...
<component>
<section classCode="DOCSECT" moodCode="EVN">
<templateId root="0.0.0.0.0.0.1" />
<code code="000-01" codeSystem="0.0.0.1.0.0" />
<title>Diagnostic Results</title>
<text mediaType="text/x-hl7-text+xml">
Some data of interest expressed in n microns.<content ID="NKN_results"/>
</text>
关于如何在 Apache Nifi 中执行此操作的任何建议?
【问题讨论】:
标签: regex hl7-v3 apache-nifi