Skip to main content



      Home
Home » Eclipse Projects » Model Driven Health Tools » clinical document getSections() return different impl
clinical document getSections() return different impl [message #1835051] Mon, 23 November 2020 19:49 Go to next message
Eclipse UserFriend
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 18:32 Go to previous messageGo to next message
Eclipse UserFriend
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 10:07 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 17:39:18 EDT 2025

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

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

Back to the top