ST Datatype
xmlcoder
#1 Posted : Wednesday, December 7, 2011 5:06:36 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 18
Points: 54

Thanks: 2 times
Was thanked: 0 time(s) in 0 post(s)
I am using the data types library in a project that creates specific CDA instances.

When serialising a ST data type to XML then something along the lines of the following is obtained :

Code:
<title representation="TXT" mediaType="text/plain" language="en-US">text value is here</title>


When using ST data types I am not used to seeing the attributes shown, in fact I am trying to get rid of them, so I simply get

Code:
<title>text value is here</title>


Is there a way of achieving this without having to change the formatter code?

thanks
justin.fyfe1
#2 Posted : Wednesday, December 7, 2011 5:20:37 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)
Hello,

Unfortunately there is no way to remove these attributes in the current public release of Everest. This is because the R1 data types formater was modeled after the Canadian and NE2008 data type schemas.

After looking at the formatter code for ST it appears that it simply calls the ED formatter after setting the media type, this is probably because the data types R1 schema references ST as a restriction of ED where mediaType is fixed to text/plain and representation is fixed to TXT.

It appears that language can be overridden by setting Language to null after constructing the ST instance (this is a bug with the ST data type). I will see about adding a CDA compatibility mode for the new Data Types R1 formatter for Everest 1.0


Cheers
-Justin
xmlcoder
#3 Posted : Wednesday, December 7, 2011 5:31:13 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 18
Points: 54

Thanks: 2 times
Was thanked: 0 time(s) in 0 post(s)
Thanks for the quick reply Justin, appreciate it.

I am going to be using the API in anger over the next month or so, so might be back here from time to time to post questions, report issues etc. Is this the most appropriate place to do this?

Thanks again
- Richard
- http://twitter.com/cdaapi
justin.fyfe1
#4 Posted : Wednesday, December 7, 2011 6:30:01 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)
This forum is good for posting questions. If the need arises we can always promote a question to the Issue list on the Everest page.

There are some "internal" snapshots for Everest which we post internally on the 1.0 page:

http://te.marc-hi.ca/rel...-44ae-aad5-0be52e979ada

I have added an issue to our tracking system and will promote a snapshot of the 1.0 codebase when the feature request is implemented.

Cheers
-Justin
1 user thanked justin.fyfe1 for this useful post.
xmlcoder on 12/8/2011(UTC)
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.106 seconds.