Skip to main content



      Home
Home » Eclipse Projects » Model Driven Health Tools » How do you parse the text using content Id?
How do you parse the text using content Id? [message #1803876] Tue, 12 March 2019 17:49 Go to next message
Eclipse UserFriend
Hi:

I'm trying to parse a CDA document using the mdht api, and in the example below I have a Problem coded as a snomed code with additional translation codes. The text is available in the narrative block. There is a reference value via Original Text. Is there a way to access the text using the content id in the originalText?

Narrative Block
								<tr>
									<td>
										<content ID="_771588d9-7137-437d-9ac0-e8b0cfa3a8e4">Numbness</content>
										<content styleCode="xSecondary">(782.0) (R20.0)</content>
										<br/>
									</td>
									<td/>
									<td/>
								</tr>


Value in the Problem Observation block
									<value xsi:type="CD" code="44077006" codeSystem="2.16.840.1.113883.6.96">
										<originalText>
											<reference value="#_771588d9-7137-437d-9ac0-e8b0cfa3a8e4"/>
										</originalText>
										<translation code="782.0" codeSystem="2.16.840.1.113883.6.103"/>
										<translation code="R20.0" codeSystem="2.16.840.1.113883.6.90"/>
										<translation code="27678" codeSystem="2.16.840.1.113883.3.247.1.1"/>
									</value>


Usually when we populate CDA documents we also include the displayName along with the code, codeSystem and codeSystemName. The cda we are trying to integrate into our system originated from an external system.

[Updated on: Tue, 12 March 2019 21:59] by Moderator

Re: How do you parse the text using content Id? [message #1803909 is a reply to message #1803876] Wed, 13 March 2019 09:21 Go to previous messageGo to next message
Eclipse UserFriend
use org.eclipse.mdht.uml.cda.StrucDocText.getText(String)

section.getText().getText("_771588d9-7137-437d-9ac0-e8b0cfa3a8e4");

Re: How do you parse the text using content Id? [message #1804017 is a reply to message #1803909] Fri, 15 March 2019 16:40 Go to previous message
Eclipse UserFriend
Ok cool. Thanks for the reply. I'll try that out.

Thanks
Kalyan
Previous Topic:Careplan - planned procedure Validation error
Next Topic:Use MDHT Validator and EMF in multi-threaded application
Goto Forum:
  


Current Time: Wed Jul 02 22:29:49 EDT 2025

Powered by FUDForum. Page generated in 0.33060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top