From: <mg...@mc...> - 2004-05-25 16:19:42
|
>Hi Matthew, > >There are a couple of ways to do this, but the simplest is to use > Group.addNonstandardSegment(String name). For example: > >ORU_R01 r01 = new ORU_R01; >r01.addNonstandardSegment("TXA"); >//then access it like this ... >TXA txa = (TXA) ro1.get("TXA"); > >Another option is to create a custom message class, but that is more >involved. If you would like details let me know. > >Best, >Bryan Bryan, I have taken the "addNonstandardSegment" approach that you recommended above. Unfortunately, what happens in this case is that the TXA segment is added after the OBX segments. I am trying to communicate with a system that requires that the TXA segment come first, followed by multiple OBX segments, each of type TX, containing the text of the report. (Actually I suppose this does make a certain amount of sense since the TXA is supposed to be sort of transciption header, and the OBX segments contain the body of the "transcript"). Is there any way to change the order so that the TXA segment appears in the message before the OBX segments? Perhaps I will need details on the custom message class after all. Thanks much, Matthew Fleming mg...@mc... >[-----Original Message----- >From: mgf@mc... >To: hl7api-devel@li... >Sent: 09/05/2004 3:44 PM >Subject: [HAPI-devel] TXA segment in ORU message > >Folks, > >I need to send pathology reports to an application which unfortunately >expects them in a rather peculiar format. The message is supposed to >include a TXA segment (followed by multiple OBX segments of type TX, one >for each paragraph in the report; sheesh). Anyhow, I am new to HAPI and >would appreciate some guidance as to how to include the TXA segment in >the >ORU message. I can see that there is a TXA class, but it is apparently >not >possible to obtain an instance of this class by calling any of the >ORU_R01 >class" get... methods. > >Thanks very much! > >Matthew Fleming, MD >Laboratory of Dermatopathology >Dept. of Dermatology >Medical College of Wisconsin >Milwaukee, WI >mgf@mc |