Re: [HAPI-devel] Hapi connection with existing server

2013-09-17 Thread Bartłomiej Buczek
Sorry that I didn't response for so long. The approach with two servers and two clients is understandable. But still I have one thing in my mind- as you said: "there is always data that flows back on that port, but it's an acknowledgement, or a response message if the original message was a que

Re: [HAPI-devel] Hapi connection with existing server

2013-09-03 Thread Michael Litherland
I still do lurk here. :) The nule.org site had some issues with a malicious WordPress theme, but I'm planning on bringing the old site back up with all the information on LightHl7Lib in a bit. It definitely approaches the problem of working with HL7-like messages in a different manner than HAPI, bu

Re: [HAPI-devel] Hapi connection with existing server

2013-09-03 Thread Ian Vowles
I reckon we would all be in a lot of trouble if HAPI didn't parse out repeating segments and groups. So glad I took the time to learn about HAPI. By far the best adherence to the HL7 standard I have encountered in my interfacing career. Finding good how-to guides is sometimes challenging, parti

Re: [HAPI-devel] Hapi connection with existing server

2013-09-03 Thread Rahul Somasunderam
Senthil, your solution is very similar to Nule.org's LightHl7Lib. https://www.thot.us/svn/nule.org_LightHl7Lib/trunk/ This approach has some benefits, but HAPI tries to solve an entirely different problem. R, rahul On Aug 28, 2013, at 12:05 PM, Senthil Muthiah wrote: > Hi > > Please read thi

Re: [HAPI-devel] Hapi connection with existing server

2013-08-28 Thread Senthil Muthiah
Hi Please read this http://emrpms.blogspot.in/2013/08/hl7-parsingmy-own-parser.html On Tue, Aug 27, 2013 at 6:15 PM, Jens Villadsen < [email protected]> wrote: > HAPI forum is indeed active - > > It just seems like you did not have the time to understand the API. > > > On 27 Aug

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread James Agnew
Hi Bartłomiej, I have never heard of a situation where a single port is used to both send and receive messages, at least not in the way that you describe. HL7 v2 transactions are typically only one direction on a single port (there is always data that flows back on that port, but it's an acknowled

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Bartłomiej Buczek
James, maybe I'm missing some knowledge about HL7 or I misunderstood it but I though that there is one server through which applications can communicate. In you example I would have to have two servers that listens on different ports - am I right? The problem of mine comes from that one of the clie

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread James Agnew
Are you saying that you want to have your application open a TCP port, accept a connection, receive A02 messages over that connection, and then send A04 messages out over the same connection? This is not a normal thing to do with HL7, so I'm probably misunderstanding. Or do you just want your appl

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Bartłomiej Buczek
Hi James, not exactly. I want something like this: 1. Server is already running. 2. One application is connected to the server and is sending messages of type ADT_A04 and can receive messages of type ADT_A02. 3. I want to create another application, connect it to the server and make it listen AD

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Senthil Muthiah
May be . But there are not much examples. After reading the API, i asked some question in the forum, not able to get any answer. On Tue, Aug 27, 2013 at 6:15 PM, Jens Villadsen < [email protected]> wrote: > HAPI forum is indeed active - > > It just seems like you did not have the

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread James Agnew
Hi Bartłomiej, It sounds like you're probably looking to create a client as opposed to a server. You'll see an example of how to do that starting on line 145 here: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html Cheers, James On Tue, Aug 27, 2013 at 6:37 AM,

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Bartłomiej Buczek
Actually it's not what I asked from the beginning so if forum is still active please stick to the topic and try to answer my question. Bartłomiej Buczek Phoenix Tecnologie Sp. z o.o. ul. Wiosenna 14/2; 53-017 Wrocław, Poland NIP: 899 258 73 59 Tel. +48 71 338 65 64; Kom. +48 668 891 540 Fax +48

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Jens Villadsen
HAPI forum is indeed active - It just seems like you did not have the time to understand the API. On 27 August 2013 14:31, Senthil Muthiah wrote: > Completed my own parsing. It is simple, later today, i will write article > on my blog > > > > On Tue, Aug 27, 2013 at 5:51 PM, Bartłomiej Buczek

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread [email protected]
Hi Do you want to listen for more than one message in a single listener? Try this. Application handler = new ExampleReceiverApplication(); server.registerApplication("ADT", "A01", handler); server.registerApplication("ADT", "A02", handler); Hope it helps... -- Sathish On Friday 12 July 2013

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Senthil Muthiah
Completed my own parsing. It is simple, later today, i will write article on my blog On Tue, Aug 27, 2013 at 5:51 PM, Bartłomiej Buczek wrote: > And you switched to what? Is there any good alternative? > > Bartłomiej Buczek > Phoenix Tecnologie Sp. z o.o. > ul. Wiosenna 14/2; 53-017 Wrocław, P

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Bartłomiej Buczek
And you switched to what? Is there any good alternative? Bartłomiej Buczek Phoenix Tecnologie Sp. z o.o. ul. Wiosenna 14/2; 53-017 Wrocław, Poland NIP: 899 258 73 59 Tel. +48 71 338 65 64; Kom. +48 668 891 540 Fax +48 71 338 65 55 [email protected] phxtecno.com On 08/27/2013 02:20 PM, Senthi

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Senthil Muthiah
Forum is not active, so i dropped using this HAPI On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek wrote: > Really no one can help me with this? I'm waiting so long and simple no > response... > > Bartłomiej Buczek > Phoenix Tecnologie Sp. z o.o. > ul. Wiosenna 14/2; 53-017 Wrocław, Poland >

Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread Bartłomiej Buczek
Really no one can help me with this? I'm waiting so long and simple no response... Bartłomiej Buczek Phoenix Tecnologie Sp. z o.o. ul. Wiosenna 14/2; 53-017 Wrocław, Poland NIP: 899 258 73 59 Tel. +48 71 338 65 64; Kom. +48 668 891 540 Fax +48 71 338 65 55 [email protected] phxtecno.com On

[HAPI-devel] Hapi connection with existing server

2013-07-12 Thread Bartłomiej Buczek
Hi, I was following example send multiple messages out and found out something like this: // Setup server to listen for incoming message int port = 8813; boolean useTls = false; H