RealmCode extension
#1 Posted : Wednesday, July 10, 2013 9:52:39 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/8/2013(UTC)
Posts: 22
Points: 66
Location: University of Victoria

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Hello Everest,

I have a new question today as I have not gotten started on my project and am so far quite happy with Everest.

Realm Codes -

I am needing to specify a Realm Code according to the specialized CDA template to which my documents must conform. The Realm Code I am required to use is not included in the MARC.Everest.RMIM.UV.CDAr2.Vocabulary.BindingRealm enum. As the realms have been implemented as an enum, I am also under the impression that I can't apply an adapter pattern to protect myself from the evolution of the Everest framework. I am wondering if someone on the Everest team can tell me if they had considered how this problem would be addressed when they designed the framework and if so what they had in mind. If not, are there any suggestions out there as to how I might address this problem.

Thanks so much for the continued support,

#2 Posted : Wednesday, July 10, 2013 11:38:00 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
Location: Hamilton, ON

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

You can override any enumerated code by using a non-standard code structure. This is how it is done:

var binding = new CS<BindingRealm>() { Code = CodeValue<BindingRealm>.Parse("MY_DOMAIN") };
cda.RealmCode = SET<CS<BindingRealm>>.CreateSET(binding);

Which will result in

<ClinicalDocument xmlns:xsi="" classCode="DOCCLIN" moodCode="EVN" xmlns="urn:hl7-org:v3">
  <realmCode code="MY_DOMAIN" />

You can also use the conversion utility from MARC.Everest.Connectors namespace:


var binding = Util.Convert<CS<BindingRealm>>("MY_CODE");

1 user thanked justin.fyfe1 for this useful post. on 7/10/2013(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 1.238 seconds.