From: James A. <ja...@ja...> - 2013-10-30 14:54:27
|
Hi John, My apologies on the slow response. The test panel doesn't have a source bundle available, but the source is available as a subproject in our main source tree here: https://sourceforge.net/p/hl7api/code/HEAD/tree/trunk/hapi-mvn/hapi-testpanel That said, I am betting this issue is actually with the main HAPI library, specifically in Receiver#processMessage()<https://sourceforge.net/p/hl7api/code/HEAD/tree/trunk/hapi-mvn/hapi-base/src/main/java/ca/uhn/hl7v2/app/Receiver.java>. HAPI's HL7 server ignores unsolicited incoming messages if they contain an MSA segment since it assumes that they are ACKs we aren't waiting on a response for. Fundamentally the issue I guess is that the same Receiver class is used for the client and the server. For a client, it makes sense to ignore unexpected ACKs but for a server presumably you want to handle anything that arrives. If you wanted to take a crack at this, great. If you wanted to file a bug, also great. James On Thu, Oct 24, 2013 at 11:08 AM, John Ruggentaler < joh...@gm...> wrote: > > I have not received any replies to my question so I would like to look at > the HAPI TestPanel source code. I could not find the source code in the > HAPI distribution. Is the HAPI TestPanel source code available? > > JR > > > On Fri, Oct 11, 2013 at 9:34 AM, John Ruggentaler < > joh...@gm...> wrote: > >> I started a receiving connection on the HAPITestPanel and sent a HL7 >> EHC^24 message to it. >> >> MSH|^~\&|||||||EHC^E24|2346044|D|2.6|||AL >> MSA|AA|12345 >> IVC|35687338^^12345|||||L||||||||||||||1024 >> >> PSL|||1|||D|85025^^CPT(R)|~~||20130529|20130529|1||||35|POS~TOS|11~5|||||||10241000 >> >> The HAPITestPanel shows the connection open and the connection being >> closed. I copied the above message and removed the MSA segment and sent the >> new message to the HAPITestPannel and the connection open, message >> received, ack send and connection close all occurred as expected. Why did >> HAPITestPanel reject (did not show the message or send a ACK) the first >> message with the MSA segment but accepts the second message without the MSA >> segment? >> >> >> >> JR >> > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |