Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » CCDA Validation - How to get exact line of faliure(Getting exact line of error/section)
CCDA Validation - How to get exact line of faliure [message #1757910] Tue, 21 March 2017 17:37 Go to next message
sanj Guna is currently offline sanj GunaFriend
Messages: 12
Registered: March 2017
Junior Member
When i used the MDHT library validation i get the following error;

ERROR: The feature 'code' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.CEImpl@7003e8b7{http:///resource0.xml#//@clinicalDocument/@component/@structuredBody/@component.4/@section/@entry.2/@substanceAdministration/@consumable/@manufacturedProduct/@manufacturedMaterial/@code}' contains a bad value

But when i use ETT i get the following Error

Error - The feature 'code' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.CEImpl@7256358e{http:///resource1276.xml#//@clinicalDocument/@component/@structuredBody/@component.4/@section/@entry.2/@substanceAdministration/@consumable/@manufacturedProduct/@manufacturedMaterial/@code}' contains a bad value
/ClinicalDocument/component/structuredBody/component[5]/section/entry[3]/substanceAdministration/consumable/manufacturedProduct/manufacturedMaterial/code
Line number: 1001


Could you please tell me how do we get that extra validation data, that explains exact line of error.

Thank you for your time.

[Updated on: Tue, 21 March 2017 17:39]

Report message to a moderator

Re: CCDA Validation - How to get exact line of faliure [message #1757912 is a reply to message #1757910] Tue, 21 March 2017 18:07 Go to previous messageGo to next message
sanj Guna is currently offline sanj GunaFriend
Messages: 12
Registered: March 2017
Junior Member
I think i found the way to print the path like /ClinicalDocument/component/structuredBody/component[5]/section/entry[3]/substanceAdministration/consumable/manufacturedProduct/manufacturedMaterial/code

Using the following : https://www.projects.openhealthtools.org/sf/wiki/do/viewPage/projects.mdht/wiki/MDHTValidationAPIs

Still i was not able to get the exact line number. I used cdaDiagnostic.getLineNumber(); but always gives -1.
Re: CCDA Validation - How to get exact line of faliure [message #1757929 is a reply to message #1757910] Tue, 21 March 2017 22:10 Go to previous messageGo to next message
Dan Brown is currently offline Dan BrownFriend
Messages: 20
Registered: December 2015
Junior Member
Line number is not part of the MDHT API.
The referenceccdavalidator is what the ETT uses. It leverages MDHT and includes that as part of its API.
If you would like to accomplish that, you would need to study the referenceccdavalidator source code.
Here is the best area to look:
https://github.com/siteadmin/referenceccdavalidator/tree/master/src/main/java/org/sitenv/referenceccda/validators/schema

As mentioned, the xpath is indeed supported/returned by the MDHT API.
.getLineNumber() is there but unimplemented. It's waiting...maybe for you.
Re: CCDA Validation - How to get exact line of faliure [message #1757933 is a reply to message #1757929] Tue, 21 March 2017 23:30 Go to previous message
sanj Guna is currently offline sanj GunaFriend
Messages: 12
Registered: March 2017
Junior Member
Thank you Dan. Let me have a look at that.
Previous Topic:custodianAddress and custodianTelecom Exception
Next Topic:sdtc:dischargeDispositionCode not being generated at proper location in Encounter segment
Goto Forum:
  


Current Time: Thu Nov 15 06:40:46 GMT 2018

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

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

Back to the top