Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:49 Go to next message
Kalyan Dasika is currently offline Kalyan DasikaFriend
Messages: 7
Registered: August 2017
Junior Member
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: Wed, 13 March 2019 01:59]

Report message to a moderator

Re: How do you parse the text using content Id? [message #1803909 is a reply to message #1803876] Wed, 13 March 2019 13:21 Go to previous messageGo to next message
Sean Muir is currently offline Sean MuirFriend
Messages: 63
Registered: September 2015
Member
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 20:40 Go to previous message
Kalyan Dasika is currently offline Kalyan DasikaFriend
Messages: 7
Registered: August 2017
Junior Member
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: Fri Apr 19 19:40:12 GMT 2024

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

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

Back to the top