web stats
MDHT CCDA Parsing Text Section Issues - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 06-12-2019, 08: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.

<table ID="medicationNarrative">
									<th>Medication Name and Strength</th>
									<th>Pharmacy Term</th>
									<th>Quantity Ordered</th>
									<th>Prescription Expires</th>
									<th>Prescription Number</th>
									<th>Last Dispense Date</th>
									<th>Ordering Provider</th>
										<content ID="mndMedication1001">CHOLECALCIFEROL 2,000UNIT TAB</content>
										<content ID="mndStatus1001">Active</content>
										<content ID="mndSig1001">TAKE ONE TABLET BY MOUTH ONCE A DAY FOR VITAMIN D DEFICIENCY.</content>
										<content ID="mndQuantity1001">100</content>
										<content ID="mndExpires1001">Feb 23, 2019</content>
										<content ID="mndPrescription1001">47345465</content>
										<content ID="mndLastDispensed1001">Feb 22, 2018</content>
										<content ID="mndProvider1001">REDACTED</content>
										<content ID="mndSource1001">REDACTED/content>
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.

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

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 10:49 AM.

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