web stats
MDHT CCDA Parsing Text Section Issues - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2019, 09:28 AM
cwagner cwagner is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 1
cwagner is on a distinguished road
Default MDHT CCDA Parsing Text Section Issues

I am using the Model Driven Health Tools Library inside of Mirth to parse CCDA documents. I am currently parsing out the medications section and inside the section there is a text section. This is the portion that is printed into the PDF's that is human readable. However, I need the Sig or instructions for the given medication.

The instructions do not exist in the lower portion of the CCDA. There is just a reference to the text section. I can get into the text section but I cannot access the table section that is nested. The following is what is in the table section.

Code:
<table ID="medicationNarrative">
							<thead>
								<tr>
									<th>Medication Name and Strength</th>
									<th>Pharmacy Term</th>
									<th>Instructions</th>
									<th>Quantity Ordered</th>
									<th>Prescription Expires</th>
									<th>Prescription Number</th>
									<th>Last Dispense Date</th>
									<th>Ordering Provider</th>
									<th>Facility</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<content ID="mndMedication1001">CHOLECALCIFEROL 2,000UNIT TAB</content>
									</td>
									<td>
										<content ID="mndStatus1001">Active</content>
									</td>
									<td>
										<content ID="mndSig1001">TAKE ONE TABLET BY MOUTH ONCE A DAY FOR VITAMIN D DEFICIENCY.</content>
									</td>
									<td>
										<content ID="mndQuantity1001">100</content>
									</td>
									<td>
										<content ID="mndExpires1001">Feb 23, 2019</content>
									</td>
									<td>
										<content ID="mndPrescription1001">47345465</content>
									</td>
									<td>
										<content ID="mndLastDispensed1001">Feb 22, 2018</content>
									</td>
									<td>
										<content ID="mndProvider1001">REDACTED</content>
									</td>
									<td>
										<content ID="mndSource1001">REDACTED/content>
									</td>
								</tr>
</tbody>
</table>
As you can see they do provide metadata in the header section of the table. This means that I do know what is in each of the rows but I cannot even begin to enter the table node. It tells me that node is null.

Here is just one of the many iterations of code I have tried to extract the table section.

Code:
this.medications = function(sectionXML, medModelList) {
		logger.info("Medications Parsing Starting.");

		var table = sectionXML.text.table;

		logger.info("Number of Rows" + sectionXML.text.get(0).table.get(0));
}
Has anyone encountered this before an have a potential solution?

Thank you in advanced for any help you can provide.
Reply With Quote
Reply

Tags
ccda, mdht, mirth, parsing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation