From: Tripp, B. <Bry...@uh...> - 2005-03-30 01:06:33
|
Thanks Steve. A few comments further to this ... 1) the method is Group.addNonStandardSegment(), 2) this doesn't help for incoming = messages, however HAPI will automatically parse unexpected segments in incoming messages into instances of GenericSegment, 3) you can use the code for = the standard messages as an example for writing a custom message class; see = the ca.uhn.hl7v2.parser.Parser javadocs for instructions on registering your custom message classes with HAPI.=20 Bryan=20 -----Original Message----- From: hl7...@li... on behalf of Steve = Holdener Sent: Tue 3/29/2005 7:57 PM To: Alfredo Cancio Cc: hl7...@li... Subject: Re: [HAPI-devel] question =20 Alfredo, In HL7, segment types beginning with "Z" are reserved for custom segments, outside the spec. I believe you need to add a non-standard segment to your message or group (I think there's a method specifically for this). There are a couple other options, as well. If you're message is pretty "flat" (no repeating groups), you can probably use the Terser class to add your Z-segments. You can also define your own message type, complete with groups, if you have several of these segments, include repeating groups, or want some kind of enforcement of required Z-segments. -Steve On Thu, 24 Mar 2005 09:24:14 -0300, Alfredo Cancio <alf...@ho...> wrote: > =20 > =20 > Dear Bryan,=20 > We are trying to implement your HAPI v2.4 and we need messages Zxx.=20 > Is this possible? How?=20 > =20 > Thanks you.=20 > =20 > Alfredo Cancio=20 > Hospital Italiano de Buenos Aires=20 > Argentina ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |