Order of componentOf
dheasley
#1 Posted : Friday, July 19, 2013 3:44:31 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/11/2013(UTC)
Posts: 6
Points: 21
Location: charlotte, NC US

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
My code is ordered as followed. I'm leaving something out of course

var cda = new ClinicalDocument();
//Header
cda.DocumentationOf = new List<DocumentationOf> { CreateDocumentationOf() };
cda.ComponentOf = CreateComponentOf();
//Body
cda.Component = CreateComponent();

But when the xml is created the ComponentOf is below component/structuredBody.

This fails on the nist validator, giving me the following error: cvc-complex-type.2.4.d: Invalid content was found starting with element 'componentOf'. No child element is expected at this point.

If I manually move ComponentOf above component/structuredBody and below DocumentationOf is validates just fine.

Any suggestions?

Thanks a lot.
Derek Heasley
justin.fyfe1
#2 Posted : Friday, July 19, 2013 4:19:18 PM(UTC)

Rank: Administration

Medals: Mobile Tech Grasshopper: Mobile Tech GrasshopperHealth Informatics MVP

Groups: Registered, Administrators
Joined: 7/22/2010(UTC)
Posts: 96
Points: 297
Man
Location: Hamilton, ON

Thanks: 2 times
Was thanked: 17 time(s) in 17 post(s)
Hi Derek,

I will take a look at the underlying RMIM classes. Methinks that perhaps the sortkey on the property may have gotten mixed up in the generation process. I will get back to you on Monday with the cause / solution.

Cheers
-Justin
justin.fyfe1
#3 Posted : Sunday, July 21, 2013 7:04:59 PM(UTC)

Rank: Administration

Medals: Mobile Tech Grasshopper: Mobile Tech GrasshopperHealth Informatics MVP

Groups: Registered, Administrators
Joined: 7/22/2010(UTC)
Posts: 96
Points: 297
Man
Location: Hamilton, ON

Thanks: 2 times
Was thanked: 17 time(s) in 17 post(s)
I found what was causing the issue. In the CDA MIF file that we used to generate the classes it appears that "component" has a sortKey of BE_________ and "componentOf" has a sortKey of CE________ meaning that "Component" comes before "ComponentOf". This is contradictory to the XSD where :

Code:

<xs:element name="componentOf" type="POCD_MT000040.Component1" minOccurs="0"/>
<xs:element name="component" type="POCD_MT000040.Component2"/>


For some reason this error wasn't being picked up by our Unit Tests... I will correct our MIF file and regenerate the CDAr2 assembly. Should be ready by mid-day Monday.

Thanks for finding this!

Cheers
-Justin
dheasley
#4 Posted : Monday, July 22, 2013 7:27:33 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/11/2013(UTC)
Posts: 6
Points: 21
Location: charlotte, NC US

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Sounds good. Let me know when done. Thanks
justin.fyfe1
#5 Posted : Monday, July 22, 2013 9:42:36 AM(UTC)

Rank: Administration

Medals: Mobile Tech Grasshopper: Mobile Tech GrasshopperHealth Informatics MVP

Groups: Registered, Administrators
Joined: 7/22/2010(UTC)
Posts: 96
Points: 297
Man
Location: Hamilton, ON

Thanks: 2 times
Was thanked: 17 time(s) in 17 post(s)
Hello.

The new release is posted as 1.2.4 which contains the fix for this.

Cheers
-Justin
dheasley
#6 Posted : Monday, July 22, 2013 12:33:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/11/2013(UTC)
Posts: 6
Points: 21
Location: charlotte, NC US

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Should I pull from SVN or download the latest everest sdk?
justin.fyfe1
#7 Posted : Monday, July 22, 2013 12:36:18 PM(UTC)

Rank: Administration

Medals: Mobile Tech Grasshopper: Mobile Tech GrasshopperHealth Informatics MVP

Groups: Registered, Administrators
Joined: 7/22/2010(UTC)
Posts: 96
Points: 297
Man
Location: Hamilton, ON

Thanks: 2 times
Was thanked: 17 time(s) in 17 post(s)
You can pull from the 1.2 branch if you like or you can download the 1.2.4 installer they're both current as of this morning.

Cheers
-Justin
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

SoClean Theme By Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.100 seconds.