Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » CCDA 2.1 create two realmCode elements(When using createContinuityOfCareDocument2() it create duplicate realmCode elemets)
CCDA 2.1 create two realmCode elements [message #1755977] Thu, 09 March 2017 18:18 Go to next message
sanj Guna is currently offline sanj GunaFriend
Messages: 12
Registered: March 2017
Junior Member
I'm having a minor issue when i use
ConsolFactory.eINSTANCE.createContinuityOfCareDocument2().init() . It creates 2 realmCode tags and it caused EET to fail. If i use ConsolFactory.eINSTANCE.createContinuityOfCareDocument().init() it works fine. Do you have any idea on that.

I noticed that Initializer.Util class has getRegistry(object).getInitializers(object.eClass()) where we get USRealmHeader2 and GeneralHeaderConstraints and that is causing to have two realmCode tags. do you think this is a bug or we are using createContinuityOfCareDocument2() wrong.

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 infrastructure/cda/CDA_SDTC.xsd">
<realmCode code="US"/>
<realmCode code="US"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<id root="2.16.840.1.113883.3.1751" extension="20170308142010"/>
...
</ClinicalDocument>
Re: CCDA 2.1 create two realmCode elements [message #1755979 is a reply to message #1755977] Thu, 09 March 2017 18:54 Go to previous messageGo to next message
Dan Brown is currently offline Dan BrownFriend
Messages: 21
Registered: December 2015
Junior Member
USRH2 inherits from GHC and the realmcode in USRH2 redefines the realmcode in GHC so there should only be one version looked at ever (in this case, the one in USRH2). It very well may be a bug in the way init() is working. Thanks for the heads up I will look into it when I get a chance.

[Updated on: Thu, 09 March 2017 18:55]

Report message to a moderator

Re: CCDA 2.1 create two realmCode elements [message #1756008 is a reply to message #1755979] Thu, 09 March 2017 23:24 Go to previous messageGo to next message
sanj Guna is currently offline sanj GunaFriend
Messages: 12
Registered: March 2017
Junior Member
Thank you Dan. Please let us know what did you find.

[Updated on: Fri, 10 March 2017 18:13]

Report message to a moderator

Re: CCDA 2.1 create two realmCode elements [message #1769475 is a reply to message #1755977] Mon, 31 July 2017 22:44 Go to previous message
Lee Surprenant is currently offline Lee SurprenantFriend
Messages: 5
Registered: July 2009
Junior Member
I just tried to make a post about this same issue...then I scrolled down and saw it was already asked.
In case it helps the next person, I noticed that even the tests have a little workaround for this:
https://github.com/mdht/mdht-models/blob/05e0d0062db69cbd80ea3ce1aa2ab5249da7e19b/tests/org.openhealthtools.mdht.uml.cda.consol2.tests/src/test/java/org/openhealthtools/mdht/uml/cda/consol/tests/USRealmHeader2Test.java#L982
Previous Topic:Initialization issues
Next Topic:Estimated Date of Delivery: value is returned as null by mdht
Goto Forum:
  


Current Time: Tue Nov 05 23:42:41 GMT 2024

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

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

Back to the top