Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » clinical document getSections() return different impl
clinical document getSections() return different impl [message #1835051] Tue, 24 November 2020 00:49 Go to next message
AJ Chen is currently offline AJ ChenFriend
Messages: 6
Registered: October 2020
Junior Member
I'm processing CCD's sections. But, getSections() returns different implementations of sections depending on the CCD inputstream.
For example, for some input stream, getSections() returns correct cda.console.impl.EncountersSectionImpl object.
but for some input stream, getSections() returns cda.impl.SectionImpl, which is not right.

How to control and make sure CCD object to return the specific section impl object?

We are using mdht v3..6.1, Thanks.
Re: clinical document getSections() return different impl [message #1835114 is a reply to message #1835051] Tue, 24 November 2020 23:32 Go to previous messageGo to next message
AJ Chen is currently offline AJ ChenFriend
Messages: 6
Registered: October 2020
Junior Member
More information about this issue: We isolated the problem - it happens only when using mdht to load CCD in spring boot web app or API. That is, mdht loading CCD does not provide the correct CCD section objects. Please note that mdht loading CCD in pure java app works fine. Anyone has used mdht to load CCD document successfully in a spring boot API? This issue is very hard to resolve. Thanks for any tip.
Re: clinical document getSections() return different impl [message #1836448 is a reply to message #1835051] Mon, 04 January 2021 15:07 Go to previous message
Colin Fletcher is currently offline Colin FletcherFriend
Messages: 1
Registered: January 2021
Junior Member
The solution we found was modeled after Apache NIFI: https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-ccda-bundle/nifi-ccda-processors/src/main/java/org/apache/nifi/processors/ccda/ExtractCCDAAttributes.java
        System.setProperty( "org.eclipse.emf.ecore.EPackage.Registry.INSTANCE",
                "org.eclipse.emf.ecore.impl.EPackageRegistryImpl" );
        CDAPackage.eINSTANCE.eClass();
        HITSPPackage.eINSTANCE.eClass();
        CCDPackage.eINSTANCE.eClass();
        ConsolPackage.eINSTANCE.eClass();
        IHEPackage.eINSTANCE.eClass();
Previous Topic:MDHT javadocs
Next Topic:Cures Version of Validator
Goto Forum:
  


Current Time: Sat Oct 05 23:14:32 GMT 2024

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

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

Back to the top