<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog of Gonzalo Brusella &#187; .net</title>
	<atom:link href="http://www.brusella.com.ar/index.php/tag/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brusella.com.ar</link>
	<description>The personal blog of a developer on the loose</description>
	<lastBuildDate>Tue, 04 Jan 2011 15:04:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Microsoft Live Labs Pivot project</title>
		<link>http://www.brusella.com.ar/index.php/2009/12/microsoft-live-labs-pivot-project/</link>
		<comments>http://www.brusella.com.ar/index.php/2009/12/microsoft-live-labs-pivot-project/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 04:28:41 +0000</pubDate>
		<dc:creator>gbrusella</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[deep zoom]]></category>
		<category><![CDATA[labs]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.brusella.com.ar/?p=58</guid>
		<description><![CDATA[Microsoft Live Labs has a new baby: Pivot. Pivot makes it easier to interact with massive amounts of data in ways that are powerful, informative, and fun. We tried to step back and design an interaction model that accommodates the complexity and scale of information rather than the traditional structure of the Web. My firt [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft Live Labs has a new baby: Pivot.</p>
<blockquote><p>Pivot makes it easier to interact with massive amounts of data in ways that are powerful, informative, and fun. We tried to step back and design an interaction model that accommodates the complexity and scale of information rather than the traditional structure of the Web.</p>
</blockquote>
<p>My firt impression: Huuge potential. It is what I think that future search methods should be. A mix between related data, context information, and visual search. The only thing that I cannot undestabd is why only visual search&#8230; we have a lot of algorithms to index media&#8230; we can do more&#8230;</p>
<p>It uses <a title="Deep Zoom" href="http://msdn.microsoft.com/en-us/library/cc645050%28VS.95%29.aspx">Deep Zoom</a> (a technology that is part of  silverlight) that allows to render images in a smart way (Note to me: Must do a Post on how Deep Zoom works) to render the collections.</p>
<p>You can get an invitation by following the dev team in twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brusella.com.ar/index.php/2009/12/microsoft-live-labs-pivot-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>.Net News</title>
		<link>http://www.brusella.com.ar/index.php/2009/12/net-news/</link>
		<comments>http://www.brusella.com.ar/index.php/2009/12/net-news/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 03:45:43 +0000</pubDate>
		<dc:creator>gbrusella</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.brusella.com.ar/?p=66</guid>
		<description><![CDATA[I have been using Visual Studio 2010 Beta 2 and TFS 2010. They are awesome! VS2010 is going to be a great poroduct, when it goes RTM. I see a lot of effort on making may life as developer a lot more easy. The integration with Visual Studio Gallery is good (could be better, like [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using Visual Studio 2010 Beta 2 and TFS 2010. They are awesome!</p>
<p>VS2010 is going to be a great poroduct, when it goes RTM. I see a lot of effort on making may life as developer a lot more easy. The integration with Visual Studio Gallery is good (could be better, like allowing to search by cost of the extension, more <em>a la</em> site version). On the PDC 2009 MS that the free version of Code Rush will also be available for Vs2010 developers.</p>
<p>I will include some captures as soon as possible.</p>
<p>On the TFS 2010 side, it&#8217;s becoming a serious contender on his segment. Now with a native integration with project server, the managers can concentrate all the info in just a a tool and get an updated snapshoot on the project status every time they want.</p>
<p>Also the new compilation farms are nice. The compilation process is now Workflow based, so you can adjust the process with custom activities as you need. That and much more to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brusella.com.ar/index.php/2009/12/net-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing With&#8230; Oxite!</title>
		<link>http://www.brusella.com.ar/index.php/2009/11/playing-with-oxite/</link>
		<comments>http://www.brusella.com.ar/index.php/2009/11/playing-with-oxite/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 03:50:24 +0000</pubDate>
		<dc:creator>gbrusella</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[open souce]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Social]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.brusella.com.ar/?p=53</guid>
		<description><![CDATA[Right now I am playing With Oxite a Open source CMS made by Microsoft. This is an Alpha release and I must Admit, once i managed to build it (yes, the setup process needs some corrections, but the comments helps a lot with the process). Once it has been compiled… works like a charm. It [...]]]></description>
			<content:encoded><![CDATA[<p>Right now I am playing With <a href="http://oxite.codeplex.com/" target="_blank">Oxite</a> a Open source CMS made by Microsoft. This is an Alpha release and I must Admit, once i managed to build it (yes, the setup process needs some corrections, but the comments helps a lot with the process).</p>
<p>Once it has been compiled… works like a charm. It is a low end blog. It does not have any of the fancy or the minimum features yet (ie: No RSS/Atom, no anti-spam). The developers also say that is not production ready yet… but I saw some sites using it.</p>
<p>Adding this features seems quite easy since the plug-in/module model is very easy to understand and to code. Rumors say that the Beta version is very close… I’m very happy with this.</p>
<p>Nice code. A Big plus is that my preliminary analysis shows that the persistency layer (it uses a LinqToSql provider) seems quite easy to replace with a more malleable ORM.</p>
<p>In summary: this is a project that you must watch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brusella.com.ar/index.php/2009/11/playing-with-oxite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with HL7 Part 2</title>
		<link>http://www.brusella.com.ar/index.php/2009/10/working-with-hl7-part-2/</link>
		<comments>http://www.brusella.com.ar/index.php/2009/10/working-with-hl7-part-2/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 04:14:00 +0000</pubDate>
		<dc:creator>gbrusella</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hl7]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[open souce]]></category>
		<category><![CDATA[sample]]></category>

		<guid isPermaLink="false">http://www.brusella.com.ar/index.php/2009/10/working-with-hl7-part-2/</guid>
		<description><![CDATA[I am not a person who loves to leave all things unfinished. This is no exception. A while ago, I started blogging about how to work with HL7 in an easy way. I had to deal with it and I can guarantee you, my reader, that in some cases is not an easy task. On [...]]]></description>
			<content:encoded><![CDATA[<p>I am not a person who loves to leave all things unfinished. This is no exception.</p>
<p>A while ago, I started blogging about how to work with HL7 in an easy way. I had to deal with it and I can guarantee you, my reader, that in some cases is not an easy task. On the <a href="http://www.brusella.com.ar/index.php/2009/09/working-with-hl7-part-1/" target="_blank">first part</a> I wrote about the structure of an HL7 message; now is time to handle this message in a systemic way (aka: developing).</p>
<p>While you have integration suites (I remember a few: <a href="http://www.google.com/search?q=biztalk+hl7" target="_blank">Microsoft’s BizTalk</a>, Oracle’s Fussion, SAP PI, etc.), some times you don’t need a über product for getting the job done. Sometimes it is perfect to write your-own-and-very-flexible code.</p>
<p>After googling a while, I found a little jewel for us developers. <a href="http://hl7api.sourceforge.net/" target="_blank">HAPI</a> for Java developers and <a href="http://nhapi.sourceforge.net" target="_blank">NHAPI</a> for .Net ones. The original project is the Java one, so if you need some documentation you should go to the source project.</p>
<p>Now you got the essentials. It is time to show you some code, but first a little of context.</p>
<p>Recently I had to deal with the validation of affiliates to a Health Care company. This company uses HL7 internally. Also this company does not let you to contact them directly, you must use a carrier (another company who gets your message and, after validating it sends the data in HL7 format to the Health Care company). Some of this carriers asks for a plain (and proprietary) text file format to communicate with them, sometimes they expose an HL7 interface (Kudos from me to them).</p>
<p>Luckily for me in Argentina a long time ago there was an agreement (I don’t remember how I got this info, but it’s true) among the Carriers and the Health Care Companies to standardize the HL7 format for several operations (among others, the operations I needed to do).</p>
<p><strong><span style="text-decoration: underline;">HL7 Note</span>:</strong> In reference to HL7, the protocol aims to create new customized messages types when those provided by the norm does not fit the business need. These messages are called <em>Z messages</em>. The <em>Z messages</em> can contain <em>Z segments</em> and <em>Z groups</em>,<em> </em>and all are <strong>locally defined </strong>by norm, so you can end up with a colliding set of HL7 <em>Z elements </em>(the same <em>name</em> of <em>Z message/segment/group</em> but <em>different</em> internal definition). In a nutshell: a nightmare.</p>
<p>Both HAPI and NHAPI are open source libraries and I choose NHAPI for the samples because I already have some code made on it.</p>
<p>Let’s define a new <em>Z Segment</em>:</p>
<p><a onclick="xcollapse('X1865');return false;" href="#"> Show the code </a></p>
<p>Let’s define a new <em>Z Message</em>:</p>
<p><a onclick="xcollapse('X3246');return false;" href="#"> Show the code </a></p>
<div id="X3246" style="display: none; background: transparent;">
<table style="background: #181818;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="400" valign="top">
<pre class="code"><span style="color: #8080c0">using </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Log</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Parser</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">V24</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Group</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">V24</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Segment</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">ValidationProvider</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">HL7</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Segment</span><span style="color: #e0e0e0">;

</span><span style="color: #8080c0">namespace </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">V24</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Message
</span><span style="color: #e0e0e0">{
    [</span><span style="color: #c7c7f1">Serializable</span><span style="color: #e0e0e0">]
    </span><span style="color: #8080c0">public class </span><span style="color: #c7c7f1">ZLA_Z22 </span><span style="color: #e0e0e0">: </span><span style="color: #c7c7f1">AbstractMessage
    </span><span style="color: #e0e0e0">{
        </span><span style="color: #8080c0">private string </span><span style="color: #fef1a9">_n1</span><span style="color: #e0e0e0">;
        </span><span style="color: #8080c0">private string </span><span style="color: #fef1a9">_n2</span><span style="color: #e0e0e0">;
        </span><span style="color: #8080c0">private string </span><span style="color: #fef1a9">_n3</span><span style="color: #e0e0e0">;
        </span><span style="color: #8080c0">private string </span><span style="color: #fef1a9">_n4</span><span style="color: #e0e0e0">;

        </span><span style="color: gray">/// </span><span style="color: #c080c0">Creates a new ZLA_Z22 Group with custom IModelClassFactory.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #fef1a9">ZLA_Z22</span><span style="color: #e0e0e0">(</span><span style="color: #2b91af">IModelClassFactory </span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">)
            : </span><span style="color: #8080c0">base</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #fef1a9">Init</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Creates a new ZLA_Z22 Group with DefaultModelClassFactory.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #fef1a9">ZLA_Z22</span><span style="color: #e0e0e0">()
            : </span><span style="color: #8080c0">base</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">new </span><span style="color: #c7c7f1">DefaultModelClassFactory</span><span style="color: #e0e0e0">())
        {
            </span><span style="color: #fef1a9">Init</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">new </span><span style="color: #c7c7f1">DefaultModelClassFactory</span><span style="color: #e0e0e0">());
        }

        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">initalize method for ZLA_Z22.  This does the segment setup for the message.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">private void </span><span style="color: #fef1a9">Init</span><span style="color: #e0e0e0">(</span><span style="color: #2b91af">IModelClassFactory </span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">MSH</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">_n1 </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_Authorization</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZXX</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">_n2 </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_Data</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">PID</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">_n3 </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_Insurance</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">DG1</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">_n4 </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">PV1</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">NTE</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error creating " </span><span style="color: #e0e0e0">+ </span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">().</span><span style="color: #fef1a9">Name </span><span style="color: #e0e0e0">+ </span><span style="color: #60ff60">" - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
        }

        </span><span style="color: #8080ff">#region </span><span style="color: #e0e0e0">Segments
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">MSH </span><span style="color: #fef1a9">MSH
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">MSH </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">MSH</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"MSH"</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
            }
        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_Authorization </span><span style="color: #fef1a9">Authorization
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">ZLA_Z22_Authorization </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZLA_Z22_Authorization</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n1</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZXX </span><span style="color: #fef1a9">ZXX
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">ZXX </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZXX</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"ZXX"</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080ff">#region </span><span style="color: #e0e0e0">ZLA_Z22_Data
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of ZLA_Z22_Data (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_Data </span><span style="color: #fef1a9">GetZLA_Z22_Data</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">ZLA_Z22_Data </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZLA_Z22_Data</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n2</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of ZLA_Z22_Data
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_Data </span><span style="color: #fef1a9">GetZLA_Z22_Data</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_Data</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n2</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of ZLA_Z22_Data
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">ZLA_Z22_DataRepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n2</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">const string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }

        </span><span style="color: #8080ff">#endregion
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">PID </span><span style="color: #fef1a9">PID
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">PID </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">PID</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"PID"</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080ff">#region </span><span style="color: #e0e0e0">ZLA_Z22_Insurance
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of ZLA_Z22_Insurance (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_Insurance </span><span style="color: #fef1a9">GetZLA_Z22_Insurance</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">ZLA_Z22_Insurance </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZLA_Z22_Insurance</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n3</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of ZLA_Z22_Insurance
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_Insurance </span><span style="color: #fef1a9">GetZLA_Z22_Insurance</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_Insurance</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n3</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of ZLA_Z22_Insurance
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">ZLA_Z22_InsuranceRepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n3</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">const string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080ff">#endregion
        #region </span><span style="color: #e0e0e0">ZIN
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of ZIN (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZIN </span><span style="color: #fef1a9">GetZIN</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">ZIN </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZIN</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"ZIN"</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of ZIN
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZIN </span><span style="color: #fef1a9">GetZIN</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZIN</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"ZIN"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of ZIN
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">ZINRepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"ZIN"</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">const string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }

        </span><span style="color: #8080ff">#endregion
        #region </span><span style="color: #e0e0e0">DG1
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of DG1 (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">DG1 </span><span style="color: #fef1a9">GetDG1</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">DG1 </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">DG1</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"DG1"</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of DG1
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">DG1 </span><span style="color: #fef1a9">GetDG1</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">DG1</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"DG1"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of DG1
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">DG1RepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"DG1"</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">const string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }

        </span><span style="color: #8080ff">#endregion
        #region </span><span style="color: #e0e0e0">ZLA_Z22_ProcedureZ
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of ZLA_Z22_ProcedureZ (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ </span><span style="color: #fef1a9">GetZLA_Z22_ProcedureZ</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n4</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of ZLA_Z22_ProcedureZ
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ </span><span style="color: #fef1a9">GetZLA_Z22_ProcedureZ</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">ZLA_Z22_ProcedureZ</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n4</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of ZLA_Z22_ProcedureZ
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">ZLA_Z22_ProcedureZRepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">_n4</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080ff">#endregion
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">PV1 </span><span style="color: #fef1a9">PV1
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">PV1 </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">PV1</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"PV1"</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
            }
        }
        </span><span style="color: #8080ff">#region </span><span style="color: #e0e0e0">NTE
        </span><span style="color: gray">///
        /// </span><span style="color: #c080c0">Returns  first repetition of NTE (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">NTE </span><span style="color: #fef1a9">GetNTE</span><span style="color: #e0e0e0">()
        {
            </span><span style="color: #c7c7f1">NTE </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= </span><span style="color: #8080c0">null</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">NTE</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"NTE"</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
        }

        </span><span style="color: gray">///
        ///</span><span style="color: #c080c0">Returns a specific repetition of NTE
        </span><span style="color: gray">/// </span><span style="color: #c080c0">* (Notes and Comments) - creates it if necessary
        </span><span style="color: gray">/// </span><span style="color: #c080c0">throws HL7Exception if the repetition requested is more than one
        </span><span style="color: gray">///     </span><span style="color: #c080c0">greater than the number of existing repetitions.
        </span><span style="color: gray">///
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">NTE </span><span style="color: #fef1a9">GetNTE</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">int </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #8080c0">return </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">NTE</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">GetStructure</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"NTE"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">rep</span><span style="color: #e0e0e0">);
        }

        </span><span style="color: #c080c0">/**
         * Returns the number of existing repetitions of NTE
         */
        </span><span style="color: #8080c0">public int </span><span style="color: #fef1a9">NTERepetitionsUsed
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #8080c0">int </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= -1;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #fef1a9">reps </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetAll</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"NTE"</span><span style="color: #e0e0e0">).</span><span style="color: #fef1a9">Length</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #8080c0">const string </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #60ff60">"Unexpected error accessing data - this is probably a bug in the source code generator."</span><span style="color: #e0e0e0">;
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">e</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">.</span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">message</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">reps</span><span style="color: #e0e0e0">;
            }
        }

        </span><span style="color: #8080ff">#endregion

        #endregion
    </span><span style="color: #e0e0e0">}
}</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span style="text-decoration: underline;"><strong><a onclick="xcollapse('X1865');return false;" href="#"> </a>Note</strong></span>: This is not the original post. I had to modify it to avoid futher problems with a previous employer. Feel free to contact me for any HL7 questions you may have.</p>
<div id="X1865" style="display: none; background: transparent;">
<table style="background: #181818 none repeat scroll 0% 0%;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<pre class="code"><span style="color: #8080c0">using </span><span style="color: #fef1a9">System</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Parser</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Model</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">V24</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Datatype</span><span style="color: #e0e0e0">;
</span><span style="color: #8080c0">using </span><span style="color: #fef1a9">NHapi</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Base</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Log</span><span style="color: #e0e0e0">;

</span><span style="color: #8080c0">namespace </span><span style="color: #fef1a9">ValidationProvider</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">HL7</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">Segment
</span><span style="color: #e0e0e0">{
    </span><span style="color: gray">///
    /// </span><span style="color: #c080c0">Represents a ZXX Segment. This is a locally defined segment
    </span><span style="color: gray">///
    </span><span style="color: #e0e0e0">[</span><span style="color: #c7c7f1">Serializable</span><span style="color: #e0e0e0">]
    </span><span style="color: #8080c0">public sealed class </span><span style="color: #c7c7f1">ZXX </span><span style="color: #e0e0e0">: </span><span style="color: #c7c7f1">AbstractSegment
    </span><span style="color: #e0e0e0">{
        </span><span style="color: #8080c0">public </span><span style="color: #fef1a9">ZXX</span><span style="color: #e0e0e0">(</span><span style="color: #2b91af">IGroup </span><span style="color: #fef1a9">parent</span><span style="color: #e0e0e0">, </span><span style="color: #2b91af">IModelClassFactory </span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">): </span><span style="color: #8080c0">base</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">parent</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">factory</span><span style="color: #e0e0e0">)
        {
            </span><span style="color: #2b91af">IMessage </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">Message</span><span style="color: #e0e0e0">;
            </span><span style="color: #8080c0">try
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">true</span><span style="color: #e0e0e0">, 0, 1, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"NroControlDelPrestador"</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">,1, 4, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"NroControlDelFinanciador"</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">CE</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, 1, 180, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"EstadoDeLaAutorizacion"</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, 1, 180, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"NumeroDePreAutorizacion"</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">TS</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, 1, 180, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"FechaDeEmisionDePreAutorizacion"</span><span style="color: #e0e0e0">);
                </span><span style="color: #fef1a9">add</span><span style="color: #e0e0e0">(</span><span style="color: #8080c0">typeof</span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">CPMO</span><span style="color: #e0e0e0">), </span><span style="color: #8080c0">false</span><span style="color: #e0e0e0">, 1, 180, </span><span style="color: #8080c0">new object</span><span style="color: #e0e0e0">[] { </span><span style="color: #fef1a9">message </span><span style="color: #e0e0e0">}, </span><span style="color: #60ff60">"ValorDelArancelDelCopago"</span><span style="color: #e0e0e0">);
            }
            </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
            {
                </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"Can't instantiate " </span><span style="color: #e0e0e0">+ </span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">().</span><span style="color: #fef1a9">Name</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
            }

        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">NroControlPrestador
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(1,0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">NroControlFinanciador
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(2, 0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">CE </span><span style="color: #fef1a9">EstadoAutorizacion
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">CE </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(3, 0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">CE</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">NumeroPreAutorizacion
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">EI </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(4, 0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">EI</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }

        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">TS </span><span style="color: #fef1a9">FechaEmisionPreAutorizacion
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">TS </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(5, 0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">TS</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }
        </span><span style="color: #8080c0">public </span><span style="color: #c7c7f1">CPMO </span><span style="color: #fef1a9">ValorArancelCopago
        </span><span style="color: #e0e0e0">{
            </span><span style="color: #8080c0">get
            </span><span style="color: #e0e0e0">{
                </span><span style="color: #c7c7f1">CPMO </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;
                </span><span style="color: #8080c0">try
                </span><span style="color: #e0e0e0">{
                    </span><span style="color: #2b91af">IType </span><span style="color: #fef1a9">t </span><span style="color: #e0e0e0">= </span><span style="color: #fef1a9">GetField</span><span style="color: #e0e0e0">(6, 0);
                    </span><span style="color: #fef1a9">ret </span><span style="color: #e0e0e0">= (</span><span style="color: #c7c7f1">CPMO</span><span style="color: #e0e0e0">)</span><span style="color: #fef1a9">t</span><span style="color: #e0e0e0">;
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">HL7Exception </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">he</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">catch </span><span style="color: #e0e0e0">(</span><span style="color: #c7c7f1">Exception </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">)
                {
                    </span><span style="color: #c7c7f1">HapiLogFactory</span><span style="color: #e0e0e0">.</span><span style="color: #fef1a9">GetHapiLog</span><span style="color: #e0e0e0">(</span><span style="color: #fef1a9">GetType</span><span style="color: #e0e0e0">()).</span><span style="color: #fef1a9">Error</span><span style="color: #e0e0e0">(
                        </span><span style="color: #60ff60">"Unexpected problem obtaining field value.  This is a bug."</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                    </span><span style="color: #8080c0">throw new </span><span style="color: #c7c7f1">Exception</span><span style="color: #e0e0e0">(</span><span style="color: #60ff60">"An unexpected error ocurred"</span><span style="color: #e0e0e0">, </span><span style="color: #fef1a9">ex</span><span style="color: #e0e0e0">);
                }
                </span><span style="color: #8080c0">return </span><span style="color: #fef1a9">ret</span><span style="color: #e0e0e0">;

            }
        }

    }
}</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p><code><br />
 </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brusella.com.ar/index.php/2009/10/working-with-hl7-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

