From: Bartłomiej B. <b.b...@ph...> - 2013-07-12 10:28:39
|
Hi, I was following example send multiple messages out <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> and found out something like this: // Setup server to listen for incoming message int port = 8813; boolean useTls = false; HapiContext context = new DefaultHapiContext(); HL7Service server = context.newServer(port, useTls); // We want to listen ADT^A01 messages ReceivingApplication handler = (ReceivingApplication) new ExampleReceiverApplication(); server.registerApplication("ADT", "A01", handler); So I run the application and as far as I understand I have setup server and a client application which will listen for ADT^A01 messages. Now I want to create another application (let's say another client) which will connect with that already created server and listen for ADT^A02 messages. I found on documentation something like that: "If you are wondering how to integrate HAPI into an existing server application, this is probably the place. Create a class that implements ReceivingApplication, then look at HL7Server and ApplicationRouter to see how to get HAPI to listen for messages on a socket and pass them to your ReceivingApplication." But how should I use HL7Server and ApplicationRouter to connect with previously created server? Maybe I'm missing something in the logic but let's consider that one software already has running server and I want to integrate with them to listen for messages special for my application (like ADT^A02) - how to do this? -- 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 b.b...@ph... phxtecno.com |
From: Bartłomiej B. <b.b...@ph...> - 2013-08-27 10:59:46
|
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 b.b...@ph... phxtecno.com On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: > Hi, > I was following example send multiple messages out > <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> > and found out something like this: > > // Setup server to listen for incoming message > int port = 8813; > boolean useTls = false; > HapiContext context = new DefaultHapiContext(); > HL7Service server = context.newServer(port, useTls); > > > // We want to listen ADT^A01 messages > ReceivingApplication handler = (ReceivingApplication) new > ExampleReceiverApplication(); > server.registerApplication("ADT", "A01", handler); > > So I run the application and as far as I understand I have setup > server and a client application which will listen for ADT^A01 > messages. Now I want to create another application (let's say another > client) which will connect with that already created server and listen > for ADT^A02 messages. > > I found on documentation something like that: > > "If you are wondering how to integrate HAPI into an existing server > application, this is probably the place. Create a class that > implements ReceivingApplication, then look at HL7Server and > ApplicationRouter to see how to get HAPI to listen for messages on a > socket and pass them to your ReceivingApplication." > > But how should I use HL7Server and ApplicationRouter to connect with > previously created server? Maybe I'm missing something in the logic > but let's consider that one software already has running server and I > want to integrate with them to listen for messages special for my > application (like ADT^A02) - how to do this? > > > -- > 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 > b.b...@ph... > phxtecno.com |
From: Senthil M. <vbs...@gm...> - 2013-08-27 12:20:57
|
Forum is not active, so i dropped using this HAPI On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek <b.b...@ph...>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 > NIP: 899 258 73 59 > Tel. +48 71 338 65 64; Kom. +48 668 891 540 > Fax +48 71 338 65 55b...@ph... > > On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: > > Hi, > I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: > > // Setup server to listen for incoming message > int port = 8813; > boolean useTls = false; > HapiContext context = new DefaultHapiContext(); > HL7Service server = context.newServer(port, useTls); > > > // We want to listen ADT^A01 messages > ReceivingApplication handler = (ReceivingApplication) new > ExampleReceiverApplication(); > server.registerApplication("ADT", "A01", handler); > So I run the application and as far as I understand I have setup server > and a client application which will listen for ADT^A01 messages. Now I want > to create another application (let's say another client) which will connect > with that already created server and listen for ADT^A02 messages. > > I found on documentation something like that: > > "If you are wondering how to integrate HAPI into an existing server > application, this is probably the place. Create a class that implements > ReceivingApplication, then look at HL7Server and ApplicationRouter to see > how to get HAPI to listen for messages on a socket and pass them to your > ReceivingApplication." > > But how should I use HL7Server and ApplicationRouter to connect with > previously created server? Maybe I'm missing something in the logic but > let's consider that one software already has running server and I want to > integrate with them to listen for messages special for my application (like > ADT^A02) - how to do this? > > -- > 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 55b...@ph... > > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Bartłomiej B. <b.b...@ph...> - 2013-08-27 12:22:11
|
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 b.b...@ph... phxtecno.com On 08/27/2013 02:20 PM, Senthil Muthiah wrote: > Forum is not active, so i dropped using this HAPI > > > On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek > <b.b...@ph... <mailto:b.b...@ph...>> 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 > NIP: 899 258 73 59 > Tel. +48 71 338 65 64; Kom. +48 668 891 540 > Fax +48 71 338 65 55 > b.b...@ph... <mailto:b.b...@ph...> > phxtecno.com <http://phxtecno.com> > > On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >> Hi, >> I was following example send multiple messages out >> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> >> and found out something like this: >> >> // Setup server to listen for incoming message >> int port = 8813; >> boolean useTls = false; >> HapiContext context = new DefaultHapiContext(); >> HL7Service server = context.newServer(port, useTls); >> >> >> // We want to listen ADT^A01 messages >> ReceivingApplication handler = (ReceivingApplication) new >> ExampleReceiverApplication(); >> server.registerApplication("ADT", "A01", handler); >> >> So I run the application and as far as I understand I have setup >> server and a client application which will listen for ADT^A01 >> messages. Now I want to create another application (let's say >> another client) which will connect with that already created >> server and listen for ADT^A02 messages. >> >> I found on documentation something like that: >> >> "If you are wondering how to integrate HAPI into an existing >> server application, this is probably the place. Create a class >> that implements ReceivingApplication, then look at HL7Server and >> ApplicationRouter to see how to get HAPI to listen for messages >> on a socket and pass them to your ReceivingApplication." >> >> But how should I use HL7Server and ApplicationRouter to connect >> with previously created server? Maybe I'm missing something in >> the logic but let's consider that one software already has >> running server and I want to integrate with them to listen for >> messages special for my application (like ADT^A02) - how to do this? >> >> >> -- >> 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 >> b.b...@ph... <mailto:b.b...@ph...> >> phxtecno.com <http://phxtecno.com> > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance > Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > <mailto:Hl7...@li...> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Senthil M. <vbs...@gm...> - 2013-08-27 12:32:06
|
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 <b.b...@ph...>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, Poland > NIP: 899 258 73 59 > Tel. +48 71 338 65 64; Kom. +48 668 891 540 > Fax +48 71 338 65 55b...@ph... > > On 08/27/2013 02:20 PM, Senthil Muthiah wrote: > > Forum is not active, so i dropped using this HAPI > > > On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek <b.b...@ph...>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 >> NIP: 899 258 73 59 >> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >> Fax +48 71 338 65 55b...@ph... >> >> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >> >> Hi, >> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >> >> // Setup server to listen for incoming message >> int port = 8813; >> boolean useTls = false; >> HapiContext context = new DefaultHapiContext(); >> HL7Service server = context.newServer(port, useTls); >> >> >> // We want to listen ADT^A01 messages >> ReceivingApplication handler = (ReceivingApplication) new >> ExampleReceiverApplication(); >> server.registerApplication("ADT", "A01", handler); >> So I run the application and as far as I understand I have setup server >> and a client application which will listen for ADT^A01 messages. Now I want >> to create another application (let's say another client) which will connect >> with that already created server and listen for ADT^A02 messages. >> >> I found on documentation something like that: >> >> "If you are wondering how to integrate HAPI into an existing server >> application, this is probably the place. Create a class that implements >> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >> how to get HAPI to listen for messages on a socket and pass them to your >> ReceivingApplication." >> >> But how should I use HL7Server and ApplicationRouter to connect with >> previously created server? Maybe I'm missing something in the logic but >> let's consider that one software already has running server and I want to >> integrate with them to listen for messages special for my application (like >> ADT^A02) - how to do this? >> >> -- >> 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 55b...@ph... >> >> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > |
From: Jens V. <jen...@gm...> - 2013-08-27 12:46:05
|
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 <vbs...@gm...> 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 <b.b...@ph...>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, Poland >> NIP: 899 258 73 59 >> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >> Fax +48 71 338 65 55b...@ph... >> >> On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >> >> Forum is not active, so i dropped using this HAPI >> >> >> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek <b.b...@ph... >> > 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 >>> NIP: 899 258 73 59 >>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>> Fax +48 71 338 65 55b...@ph... >>> >>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>> >>> Hi, >>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>> >>> // Setup server to listen for incoming message >>> int port = 8813; >>> boolean useTls = false; >>> HapiContext context = new DefaultHapiContext(); >>> HL7Service server = context.newServer(port, useTls); >>> >>> >>> // We want to listen ADT^A01 messages >>> ReceivingApplication handler = (ReceivingApplication) new >>> ExampleReceiverApplication(); >>> server.registerApplication("ADT", "A01", handler); >>> So I run the application and as far as I understand I have setup server >>> and a client application which will listen for ADT^A01 messages. Now I want >>> to create another application (let's say another client) which will connect >>> with that already created server and listen for ADT^A02 messages. >>> >>> I found on documentation something like that: >>> >>> "If you are wondering how to integrate HAPI into an existing server >>> application, this is probably the place. Create a class that implements >>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>> how to get HAPI to listen for messages on a socket and pass them to your >>> ReceivingApplication." >>> >>> But how should I use HL7Server and ApplicationRouter to connect with >>> previously created server? Maybe I'm missing something in the logic but >>> let's consider that one software already has running server and I want to >>> integrate with them to listen for messages special for my application (like >>> ADT^A02) - how to do this? >>> >>> -- >>> 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 55b...@ph... >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> >> > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > -- Med venlig hilsen / Kind regards *Jens Kristian Villadsen* cand.polyt Stålhøjen 24 8240 Risskov Denmark Mobile +4523373806 jen...@gm... jkiddo.dyndns.org |
From: Bartłomiej B. <b.b...@ph...> - 2013-08-27 12:49:19
|
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 71 338 65 55 b.b...@ph... phxtecno.com On 08/27/2013 02:45 PM, Jens Villadsen wrote: > 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 <vbs...@gm... > <mailto:vbs...@gm...>> 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 > <b.b...@ph... <mailto:b.b...@ph...>> 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, Poland > NIP:899 258 73 <tel:899%20258%2073> 59 > Tel.+48 71 338 65 64 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> > Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> > b.b...@ph... <mailto:b.b...@ph...> > phxtecno.com <http://phxtecno.com> > > On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >> Forum is not active, so i dropped using this HAPI >> >> >> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek >> <b.b...@ph... <mailto:b.b...@ph...>> 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 >> NIP:899 258 73 <tel:899%20258%2073> 59 >> Tel.+48 71 338 65 64 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> >> Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> >> b.b...@ph... <mailto:b.b...@ph...> >> phxtecno.com <http://phxtecno.com> >> >> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>> Hi, >>> I was following example send multiple messages out >>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> >>> and found out something like this: >>> >>> // Setup server to listen for incoming message >>> int port = 8813; >>> boolean useTls = false; >>> HapiContext context = new DefaultHapiContext(); >>> HL7Service server = context.newServer(port, useTls); >>> >>> >>> // We want to listen ADT^A01 messages >>> ReceivingApplication handler = >>> (ReceivingApplication) new ExampleReceiverApplication(); >>> server.registerApplication("ADT", "A01", handler); >>> >>> So I run the application and as far as I understand I >>> have setup server and a client application which will >>> listen for ADT^A01 messages. Now I want to create >>> another application (let's say another client) which >>> will connect with that already created server and listen >>> for ADT^A02 messages. >>> >>> I found on documentation something like that: >>> >>> "If you are wondering how to integrate HAPI into an >>> existing server application, this is probably the place. >>> Create a class that implements ReceivingApplication, >>> then look at HL7Server and ApplicationRouter to see how >>> to get HAPI to listen for messages on a socket and pass >>> them to your ReceivingApplication." >>> >>> But how should I use HL7Server and ApplicationRouter to >>> connect with previously created server? Maybe I'm >>> missing something in the logic but let's consider that >>> one software already has running server and I want to >>> integrate with them to listen for messages special for >>> my application (like ADT^A02) - how to do this? >>> >>> >>> -- >>> Bartłomiej Buczek >>> Phoenix Tecnologie Sp. z o.o. >>> ul. Wiosenna 14/2; 53-017 Wrocław, Poland >>> NIP:899 258 73 <tel:899%20258%2073> 59 >>> Tel.+48 71 338 65 64 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> >>> Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> >>> b.b...@ph... <mailto:b.b...@ph...> >>> phxtecno.com <http://phxtecno.com> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from >> SourceForge and >> AppDynamics. Performance Central is your source for news, >> insights, >> analysis and resources for efficient Application >> Performance Management. >> Visit us today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> <mailto:Hl7...@li...> >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance > Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > <mailto:Hl7...@li...> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > -- > > Med venlig hilsen / Kind regards > > *Jens Kristian Villadsen* > cand.polyt > > Stålhøjen 24 > 8240 Risskov > Denmark > > Mobile +4523373806 > jen...@gm... <mailto:jen...@gm...> > jkiddo.dyndns.org <http://jkiddo.dyndns.org> > |
From: Senthil M. <vbs...@gm...> - 2013-08-27 12:53:36
|
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 < jen...@gm...> wrote: > 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 <vbs...@gm...> 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 <b.b...@ph... >> > 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, Poland >>> NIP: 899 258 73 59 >>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>> Fax +48 71 338 65 55b...@ph... >>> >>> On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >>> >>> Forum is not active, so i dropped using this HAPI >>> >>> >>> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek < >>> b.b...@ph...> 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 >>>> NIP: 899 258 73 59 >>>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>>> Fax +48 71 338 65 55b...@ph... >>>> >>>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>>> >>>> Hi, >>>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>>> >>>> // Setup server to listen for incoming message >>>> int port = 8813; >>>> boolean useTls = false; >>>> HapiContext context = new DefaultHapiContext(); >>>> HL7Service server = context.newServer(port, useTls); >>>> >>>> >>>> // We want to listen ADT^A01 messages >>>> ReceivingApplication handler = (ReceivingApplication) new >>>> ExampleReceiverApplication(); >>>> server.registerApplication("ADT", "A01", handler); >>>> So I run the application and as far as I understand I have setup >>>> server and a client application which will listen for ADT^A01 messages. Now >>>> I want to create another application (let's say another client) which will >>>> connect with that already created server and listen for ADT^A02 messages. >>>> >>>> I found on documentation something like that: >>>> >>>> "If you are wondering how to integrate HAPI into an existing server >>>> application, this is probably the place. Create a class that implements >>>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>>> how to get HAPI to listen for messages on a socket and pass them to your >>>> ReceivingApplication." >>>> >>>> But how should I use HL7Server and ApplicationRouter to connect with >>>> previously created server? Maybe I'm missing something in the logic but >>>> let's consider that one software already has running server and I want to >>>> integrate with them to listen for messages special for my application (like >>>> ADT^A02) - how to do this? >>>> >>>> -- >>>> 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 55b...@ph... >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Introducing Performance Central, a new site from SourceForge and >>>> AppDynamics. Performance Central is your source for news, insights, >>>> analysis and resources for efficient Application Performance Management. >>>> Visit us today! >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > -- > > Med venlig hilsen / Kind regards > > *Jens Kristian Villadsen* > cand.polyt > > Stålhøjen 24 > 8240 Risskov > Denmark > > Mobile +4523373806 > jen...@gm... > jkiddo.dyndns.org > |
From: James A. <ja...@ja...> - 2013-08-27 12:49:13
|
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, Bartłomiej Buczek <b.b...@ph...>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 > NIP: 899 258 73 59 > Tel. +48 71 338 65 64; Kom. +48 668 891 540 > Fax +48 71 338 65 55b...@ph... > > On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: > > Hi, > I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: > > // Setup server to listen for incoming message > int port = 8813; > boolean useTls = false; > HapiContext context = new DefaultHapiContext(); > HL7Service server = context.newServer(port, useTls); > > > // We want to listen ADT^A01 messages > ReceivingApplication handler = (ReceivingApplication) new > ExampleReceiverApplication(); > server.registerApplication("ADT", "A01", handler); > So I run the application and as far as I understand I have setup server > and a client application which will listen for ADT^A01 messages. Now I want > to create another application (let's say another client) which will connect > with that already created server and listen for ADT^A02 messages. > > I found on documentation something like that: > > "If you are wondering how to integrate HAPI into an existing server > application, this is probably the place. Create a class that implements > ReceivingApplication, then look at HL7Server and ApplicationRouter to see > how to get HAPI to listen for messages on a socket and pass them to your > ReceivingApplication." > > But how should I use HL7Server and ApplicationRouter to connect with > previously created server? Maybe I'm missing something in the logic but > let's consider that one software already has running server and I want to > integrate with them to listen for messages special for my application (like > ADT^A02) - how to do this? > > -- > 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 55b...@ph... > > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Bartłomiej B. <b.b...@ph...> - 2013-08-27 13:09:18
|
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 ADT_A02 and send ADT_A04. So that those two applications can communicate through HL7 using TCP/IP. 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 b.b...@ph... phxtecno.com On 08/27/2013 02:48 PM, James Agnew wrote: > 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, Bartłomiej Buczek > <b.b...@ph... <mailto:b.b...@ph...>> 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 > NIP: 899 258 73 59 > Tel.+48 71 338 65 64 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> > Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> > b.b...@ph... <mailto:b.b...@ph...> > phxtecno.com <http://phxtecno.com> > > On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >> Hi, >> I was following example send multiple messages out >> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> >> and found out something like this: >> >> // Setup server to listen for incoming message >> int port = 8813; >> boolean useTls = false; >> HapiContext context = new DefaultHapiContext(); >> HL7Service server = context.newServer(port, useTls); >> >> >> // We want to listen ADT^A01 messages >> ReceivingApplication handler = (ReceivingApplication) new >> ExampleReceiverApplication(); >> server.registerApplication("ADT", "A01", handler); >> >> So I run the application and as far as I understand I have setup >> server and a client application which will listen for ADT^A01 >> messages. Now I want to create another application (let's say >> another client) which will connect with that already created >> server and listen for ADT^A02 messages. >> >> I found on documentation something like that: >> >> "If you are wondering how to integrate HAPI into an existing >> server application, this is probably the place. Create a class >> that implements ReceivingApplication, then look at HL7Server and >> ApplicationRouter to see how to get HAPI to listen for messages >> on a socket and pass them to your ReceivingApplication." >> >> But how should I use HL7Server and ApplicationRouter to connect >> with previously created server? Maybe I'm missing something in >> the logic but let's consider that one software already has >> running server and I want to integrate with them to listen for >> messages special for my application (like ADT^A02) - how to do this? >> >> >> -- >> 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 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> >> Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> >> b.b...@ph... <mailto:b.b...@ph...> >> phxtecno.com <http://phxtecno.com> > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance > Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > <mailto:Hl7...@li...> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: James A. <ja...@ja...> - 2013-08-27 18:30:59
|
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 application to be able to open a server socket and receive A02 messages over connections that come in, but also to initiate a second client connection and use that connection to send A04 messages? If it's the latter, you just need both parts of the example I linked to. context.newClient(...) creates a client object that can be used to connect to remote servers and send messages to them, context.newServer(...) creates a server object that can be started and will listen for incoming connections and receive messages on them. Cheers, James On Tue, Aug 27, 2013 at 9:08 AM, Bartłomiej Buczek <b.b...@ph...>wrote: > 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 ADT_A02 and send ADT_A04. > > So that those two applications can communicate through HL7 using TCP/IP. > > > 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 55b...@ph... > > On 08/27/2013 02:48 PM, James Agnew wrote: > > 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, Bartłomiej Buczek <b.b...@ph...>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 >> NIP: 899 258 73 59 >> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >> Fax +48 71 338 65 55b...@ph... >> >> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >> >> Hi, >> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >> >> // Setup server to listen for incoming message >> int port = 8813; >> boolean useTls = false; >> HapiContext context = new DefaultHapiContext(); >> HL7Service server = context.newServer(port, useTls); >> >> >> // We want to listen ADT^A01 messages >> ReceivingApplication handler = (ReceivingApplication) new >> ExampleReceiverApplication(); >> server.registerApplication("ADT", "A01", handler); >> So I run the application and as far as I understand I have setup server >> and a client application which will listen for ADT^A01 messages. Now I want >> to create another application (let's say another client) which will connect >> with that already created server and listen for ADT^A02 messages. >> >> I found on documentation something like that: >> >> "If you are wondering how to integrate HAPI into an existing server >> application, this is probably the place. Create a class that implements >> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >> how to get HAPI to listen for messages on a socket and pass them to your >> ReceivingApplication." >> >> But how should I use HL7Server and ApplicationRouter to connect with >> previously created server? Maybe I'm missing something in the logic but >> let's consider that one software already has running server and I want to >> integrate with them to listen for messages special for my application (like >> ADT^A02) - how to do this? >> >> -- >> 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 55b...@ph... >> >> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > |
From: Bartłomiej B. <b.b...@ph...> - 2013-08-27 19:07:05
|
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 clients that we try to integrate requires from us address and port to which he will connect and listen to messages as well as send messages and I have no idea how exactly this should work on the same port. 2013/8/27 James Agnew <ja...@ja...> > 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 application to be able to open a server socket > and receive A02 messages over connections that come in, but also to > initiate a second client connection and use that connection to send A04 > messages? > > If it's the latter, you just need both parts of the example I linked to. > > context.newClient(...) creates a client object that can be used to connect > to remote servers and send messages to them, > context.newServer(...) creates a server object that can be started and > will listen for incoming connections and receive messages on them. > > Cheers, > James > > > On Tue, Aug 27, 2013 at 9:08 AM, Bartłomiej Buczek <b.b...@ph...>wrote: > >> 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 ADT_A02 and send ADT_A04. >> >> So that those two applications can communicate through HL7 using TCP/IP. >> >> >> 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 55b...@ph... >> >> On 08/27/2013 02:48 PM, James Agnew wrote: >> >> 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, Bartłomiej Buczek <b.b...@ph... >> > 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 >>> NIP: 899 258 73 59 >>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>> Fax +48 71 338 65 55b...@ph... >>> >>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>> >>> Hi, >>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>> >>> // Setup server to listen for incoming message >>> int port = 8813; >>> boolean useTls = false; >>> HapiContext context = new DefaultHapiContext(); >>> HL7Service server = context.newServer(port, useTls); >>> >>> >>> // We want to listen ADT^A01 messages >>> ReceivingApplication handler = (ReceivingApplication) new >>> ExampleReceiverApplication(); >>> server.registerApplication("ADT", "A01", handler); >>> So I run the application and as far as I understand I have setup server >>> and a client application which will listen for ADT^A01 messages. Now I want >>> to create another application (let's say another client) which will connect >>> with that already created server and listen for ADT^A02 messages. >>> >>> I found on documentation something like that: >>> >>> "If you are wondering how to integrate HAPI into an existing server >>> application, this is probably the place. Create a class that implements >>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>> how to get HAPI to listen for messages on a socket and pass them to your >>> ReceivingApplication." >>> >>> But how should I use HL7Server and ApplicationRouter to connect with >>> previously created server? Maybe I'm missing something in the logic but >>> let's consider that one software already has running server and I want to >>> integrate with them to listen for messages special for my application (like >>> ADT^A02) - how to do this? >>> >>> -- >>> 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 55b...@ph... >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> >> > |
From: James A. <ja...@ja...> - 2013-08-27 20:54:07
|
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 acknowledgement, or a response message if the original message was a query of some sort). It seems to me that this would be a problematic setup anyhow- If either application was sending messages on the same port whenever they wanted, you would have collisions and very unpredictable behaviour if both applications decided to send a message at the same time. It would probably be worth confirming with the vendor of the other system how they are expecting this to work. My guess is that if you have an application that will sometimes send data to that system, and at other times receive data from that system, you need to have one client and one server on your system, and they will also have one client and one server on theirs. This is how 99.9% of the HL7 v2 world works. Cheers, James On Tue, Aug 27, 2013 at 3:06 PM, Bartłomiej Buczek <b.b...@ph...>wrote: > 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 clients that we try to > integrate requires from us address and port to which he will connect and > listen to messages as well as send messages and I have no idea how exactly > this should work on the same port. > > > 2013/8/27 James Agnew <ja...@ja...> > >> 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 application to be able to open a server socket >> and receive A02 messages over connections that come in, but also to >> initiate a second client connection and use that connection to send A04 >> messages? >> >> If it's the latter, you just need both parts of the example I linked to. >> >> context.newClient(...) creates a client object that can be used to >> connect to remote servers and send messages to them, >> context.newServer(...) creates a server object that can be started and >> will listen for incoming connections and receive messages on them. >> >> Cheers, >> James >> >> >> On Tue, Aug 27, 2013 at 9:08 AM, Bartłomiej Buczek <b.b...@ph... >> > wrote: >> >>> 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 ADT_A02 and send ADT_A04. >>> >>> So that those two applications can communicate through HL7 using TCP/IP. >>> >>> >>> 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 55b...@ph... >>> >>> On 08/27/2013 02:48 PM, James Agnew wrote: >>> >>> 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, Bartłomiej Buczek < >>> b.b...@ph...> 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 >>>> NIP: 899 258 73 59 >>>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>>> Fax +48 71 338 65 55b...@ph... >>>> >>>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>>> >>>> Hi, >>>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>>> >>>> // Setup server to listen for incoming message >>>> int port = 8813; >>>> boolean useTls = false; >>>> HapiContext context = new DefaultHapiContext(); >>>> HL7Service server = context.newServer(port, useTls); >>>> >>>> >>>> // We want to listen ADT^A01 messages >>>> ReceivingApplication handler = (ReceivingApplication) new >>>> ExampleReceiverApplication(); >>>> server.registerApplication("ADT", "A01", handler); >>>> So I run the application and as far as I understand I have setup >>>> server and a client application which will listen for ADT^A01 messages. Now >>>> I want to create another application (let's say another client) which will >>>> connect with that already created server and listen for ADT^A02 messages. >>>> >>>> I found on documentation something like that: >>>> >>>> "If you are wondering how to integrate HAPI into an existing server >>>> application, this is probably the place. Create a class that implements >>>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>>> how to get HAPI to listen for messages on a socket and pass them to your >>>> ReceivingApplication." >>>> >>>> But how should I use HL7Server and ApplicationRouter to connect with >>>> previously created server? Maybe I'm missing something in the logic but >>>> let's consider that one software already has running server and I want to >>>> integrate with them to listen for messages special for my application (like >>>> ADT^A02) - how to do this? >>>> >>>> -- >>>> 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 55b...@ph... >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Introducing Performance Central, a new site from SourceForge and >>>> AppDynamics. Performance Central is your source for news, insights, >>>> analysis and resources for efficient Application Performance Management. >>>> Visit us today! >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>> >>> >> > |
From: Bartłomiej B. <b.b...@ph...> - 2013-09-17 10:47:42
|
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 query of some sort" so basically let's have a scenario: 1. We have a server created. 2. We use hapi-testpanel to connect with that sever. the hapi-testpanel "sending connection" is active - it's connected to the server. I can now from hapi-testpanel (client) send message and client will receive ACK message. As I understand hapi-testpanel (sending connection) is using in this situation: sendAndReceive(msg); but is there anyway that server can send msg to client (connection is established)? So it's like sending ACK but without previously receiving any message to server by client. If anyone know how this can be done - please let me know. Currently I'm using camel hl7 mina2 so maybe with mina2 it's even easier but if anyone knows a way to do this in hapi-hl7 or anything please share your knowledge. Bartłomiej Buczek On 08/27/2013 10:53 PM, James Agnew wrote: > 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 > acknowledgement, or a response message if the original message was a > query of some sort). > > It seems to me that this would be a problematic setup anyhow- If > either application was sending messages on the same port whenever they > wanted, you would have collisions and very unpredictable behaviour if > both applications decided to send a message at the same time. > > It would probably be worth confirming with the vendor of the other > system how they are expecting this to work. My guess is that if you > have an application that will sometimes send data to that system, and > at other times receive data from that system, you need to have one > client and one server on your system, and they will also have one > client and one server on theirs. This is how 99.9% of the HL7 v2 world > works. > > Cheers, > James > > > > On Tue, Aug 27, 2013 at 3:06 PM, Bartłomiej Buczek > <b.b...@ph... <mailto:b.b...@ph...>> wrote: > > 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 clients that we try > to integrate requires from us address and port to which he will > connect and listen to messages as well as send messages and I have > no idea how exactly this should work on the same port. > > > 2013/8/27 James Agnew <ja...@ja... > <mailto:ja...@ja...>> > > 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 application to be able to open a > server socket and receive A02 messages over connections that > come in, but also to initiate a second client connection and > use that connection to send A04 messages? > > If it's the latter, you just need both parts of the example I > linked to. > > context.newClient(...) creates a client object that can be > used to connect to remote servers and send messages to them, > context.newServer(...) creates a server object that can be > started and will listen for incoming connections and receive > messages on them. > > Cheers, > James > > > On Tue, Aug 27, 2013 at 9:08 AM, Bartłomiej Buczek > <b.b...@ph... <mailto:b.b...@ph...>> wrote: > > 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 ADT_A02 and send ADT_A04. > > So that those two applications can communicate through HL7 > using TCP/IP. > > > 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 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> > Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> > b.b...@ph... <mailto:b.b...@ph...> > phxtecno.com <http://phxtecno.com> > > On 08/27/2013 02:48 PM, James Agnew wrote: >> 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, Bartłomiej Buczek >> <b.b...@ph... <mailto:b.b...@ph...>> 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 >> NIP: 899 258 73 59 >> Tel.+48 71 338 65 64 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> >> Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> >> b.b...@ph... <mailto:b.b...@ph...> >> phxtecno.com <http://phxtecno.com> >> >> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>> Hi, >>> I was following example send multiple messages out >>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> >>> and found out something like this: >>> >>> // Setup server to listen for incoming message >>> int port = 8813; >>> boolean useTls = false; >>> HapiContext context = new DefaultHapiContext(); >>> HL7Service server = context.newServer(port, useTls); >>> >>> >>> // We want to listen ADT^A01 messages >>> ReceivingApplication handler = >>> (ReceivingApplication) new ExampleReceiverApplication(); >>> server.registerApplication("ADT", "A01", handler); >>> >>> So I run the application and as far as I understand >>> I have setup server and a client application which >>> will listen for ADT^A01 messages. Now I want to >>> create another application (let's say another >>> client) which will connect with that already created >>> server and listen for ADT^A02 messages. >>> >>> I found on documentation something like that: >>> >>> "If you are wondering how to integrate HAPI into an >>> existing server application, this is probably the >>> place. Create a class that implements >>> ReceivingApplication, then look at HL7Server and >>> ApplicationRouter to see how to get HAPI to listen >>> for messages on a socket and pass them to your >>> ReceivingApplication." >>> >>> But how should I use HL7Server and ApplicationRouter >>> to connect with previously created server? Maybe I'm >>> missing something in the logic but let's consider >>> that one software already has running server and I >>> want to integrate with them to listen for messages >>> special for my application (like ADT^A02) - how to >>> do this? >>> >>> >>> -- >>> 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 <tel:%2B48%2071%20338%2065%2064>; Kom.+48 668 891 540 <tel:%2B48%20668%20891%20540> >>> Fax+48 71 338 65 55 <tel:%2B48%2071%20338%2065%2055> >>> b.b...@ph... <mailto:b.b...@ph...> >>> phxtecno.com <http://phxtecno.com> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from >> SourceForge and >> AppDynamics. Performance Central is your source for >> news, insights, >> analysis and resources for efficient Application >> Performance Management. >> Visit us today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> <mailto:Hl7...@li...> >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > > |
From: Senthil M. <vbs...@gm...> - 2013-08-28 19:06:04
|
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 < jen...@gm...> wrote: > 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 <vbs...@gm...> 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 <b.b...@ph... >> > 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, Poland >>> NIP: 899 258 73 59 >>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>> Fax +48 71 338 65 55b...@ph... >>> >>> On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >>> >>> Forum is not active, so i dropped using this HAPI >>> >>> >>> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek < >>> b.b...@ph...> 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 >>>> NIP: 899 258 73 59 >>>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>>> Fax +48 71 338 65 55b...@ph... >>>> >>>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>>> >>>> Hi, >>>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>>> >>>> // Setup server to listen for incoming message >>>> int port = 8813; >>>> boolean useTls = false; >>>> HapiContext context = new DefaultHapiContext(); >>>> HL7Service server = context.newServer(port, useTls); >>>> >>>> >>>> // We want to listen ADT^A01 messages >>>> ReceivingApplication handler = (ReceivingApplication) new >>>> ExampleReceiverApplication(); >>>> server.registerApplication("ADT", "A01", handler); >>>> So I run the application and as far as I understand I have setup >>>> server and a client application which will listen for ADT^A01 messages. Now >>>> I want to create another application (let's say another client) which will >>>> connect with that already created server and listen for ADT^A02 messages. >>>> >>>> I found on documentation something like that: >>>> >>>> "If you are wondering how to integrate HAPI into an existing server >>>> application, this is probably the place. Create a class that implements >>>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>>> how to get HAPI to listen for messages on a socket and pass them to your >>>> ReceivingApplication." >>>> >>>> But how should I use HL7Server and ApplicationRouter to connect with >>>> previously created server? Maybe I'm missing something in the logic but >>>> let's consider that one software already has running server and I want to >>>> integrate with them to listen for messages special for my application (like >>>> ADT^A02) - how to do this? >>>> >>>> -- >>>> 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 55b...@ph... >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Introducing Performance Central, a new site from SourceForge and >>>> AppDynamics. Performance Central is your source for news, insights, >>>> analysis and resources for efficient Application Performance Management. >>>> Visit us today! >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > -- > > Med venlig hilsen / Kind regards > > *Jens Kristian Villadsen* > cand.polyt > > Stålhøjen 24 > 8240 Risskov > Denmark > > Mobile +4523373806 > jen...@gm... > jkiddo.dyndns.org > |
From: Rahul S. <rs...@ce...> - 2013-09-03 21:15:09
|
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 <vbs...@gm...> wrote: > 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 <jen...@gm...> wrote: > 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 <vbs...@gm...> 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 <b.b...@ph...> 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, Poland > NIP: 899 258 73 59 > Tel. +48 71 338 65 64; Kom. +48 668 891 540 > Fax +48 71 338 65 55 > b.b...@ph... > phxtecno.com > On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >> Forum is not active, so i dropped using this HAPI >> >> >> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek <b.b...@ph...> 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 >> NIP: 899 258 73 59 >> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >> Fax +48 71 338 65 55 >> b.b...@ph... >> phxtecno.com >> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>> 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; >>> HapiContext context = new DefaultHapiContext(); >>> HL7Service server = context.newServer(port, useTls); >>> >>> >>> // We want to listen ADT^A01 messages >>> ReceivingApplication handler = (ReceivingApplication) new ExampleReceiverApplication(); >>> server.registerApplication("ADT", "A01", handler); >>> So I run the application and as far as I understand I have setup server and a client application which will listen for ADT^A01 messages. Now I want to create another application (let's say another client) which will connect with that already created server and listen for ADT^A02 messages. >>> >>> I found on documentation something like that: >>> "If you are wondering how to integrate HAPI into an existing server application, this is probably the place. Create a class that implements ReceivingApplication, then look at HL7Server and ApplicationRouter to see how to get HAPI to listen for messages on a socket and pass them to your ReceivingApplication." >>> But how should I use HL7Server and ApplicationRouter to connect with previously created server? Maybe I'm missing something in the logic but let's consider that one software already has running server and I want to integrate with them to listen for messages special for my application (like ADT^A02) - how to do this? >>> >>> -- >>> 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 >>> b.b...@ph... >>> phxtecno.com >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > -- > Med venlig hilsen / Kind regards > > Jens Kristian Villadsen > cand.polyt > > Stålhøjen 24 > 8240 Risskov > Denmark > > Mobile +4523373806 > jen...@gm... > jkiddo.dyndns.org > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Ian V. <Ian...@he...> - 2013-09-03 22:06:28
|
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, particularly if you are trying to learn about the standard AND HAPI at the same time. I would also recommend having a go at parsing, as Rahul has, so that as you start to learn what terrible things sending and receiving systems that claim HL7 'compliance' can do. Then you will better understand the fantastic effort the HAPI developers have put into this API. Obviously, the first gotcha is people not escaping the delimiter characters, and the other is (heaven forbid) they use the standard feature and change the delimiters to something else. Happy parsing! Or should I say HAPI parsing? Ian >>> Rahul Somasunderam <rs...@ce...> 04/09/13 7:14 >>> 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 <vbs...@gm...> wrote: 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 <jen...@gm...> wrote: 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 <vbs...@gm...> 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 <b.b...@ph...> 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, Poland NIP: 899 258 73 ( tel:899%20258%2073 ) 59 Tel. +48 71 338 65 64 ( tel:%2B48%2071%20338%2065%2064 ); Kom. +48 668 891 540 ( tel:%2B48%20668%20891%20540 )Fax +48 71 338 65 55 ( tel:%2B48%2071%20338%2065%2055 )b.b...@ph... On 08/27/2013 02:20 PM, Senthil Muthiah wrote: Forum is not active, so i dropped using this HAPI On Tue, Aug 27, 2013 at 4:07 PM, Bart*omiej Buczek <b.b...@ph...> 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 NIP: 899 258 73 ( tel:899%20258%2073 ) 59 Tel. +48 71 338 65 64 ( tel:%2B48%2071%20338%2065%2064 ); Kom. +48 668 891 540 ( tel:%2B48%20668%20891%20540 )Fax +48 71 338 65 55 ( tel:%2B48%2071%20338%2065%2055 )b.b...@ph... On 07/12/2013 12:06 PM, Bart*omiej Buczek wrote: Hi, I was following example send multiple messages out ( http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html ) and found out something like this: // Setup server to listen for incoming message int port = 8813; boolean useTls = false; HapiContext context = new DefaultHapiContext(); HL7Service server = context.newServer(port, useTls); // We want to listen ADT^A01 messages ReceivingApplication handler = (ReceivingApplication) new ExampleReceiverApplication(); server.registerApplication("ADT", "A01", handler); So I run the application and as far as I understand I have setup server and a client application which will listen for ADT^A01 messages. Now I want to create another application (let's say another client) which will connect with that already created server and listen for ADT^A02 messages. I found on documentation something like that: "If you are wondering how to integrate HAPI into an existing server application, this is probably the place. Create a class that implements ReceivingApplication, then look at HL7Server and ApplicationRouter to see how to get HAPI to listen for messages on a socket and pass them to your ReceivingApplication." But how should I use HL7Server and ApplicationRouter to connect with previously created server? Maybe I'm missing something in the logic but let's consider that one software already has running server and I want to integrate with them to listen for messages special for my application (like ADT^A02) - how to do this? -- Bart*omiej Buczek Phoenix Tecnologie Sp. z o.o. ul. Wiosenna 14/2; 53-017 Wroc*aw, Poland NIP: 899 258 73 ( tel:899%20258%2073 ) 59 Tel. +48 71 338 65 64 ( tel:%2B48%2071%20338%2065%2064 ); Kom. +48 668 891 540 ( tel:%2B48%20668%20891%20540 )Fax +48 71 338 65 55 ( tel:%2B48%2071%20338%2065%2055 )b.b...@ph... ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel -- Med venlig hilsen / Kind regards Jens Kristian Villadsen cand.polyt Stålhøjen 24 8240 Risskov Denmark Mobile +4523373806 jen...@gm... jkiddo.dyndns.org ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel ******************************************************************************** This email, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost, if you receive it and you are not the intended recipient(s), or if it is transmitted/received in error. Any unauthorised use, alteration, disclosure, distribution or review of this email is strictly prohibited. The information contained in this email, including any attachment sent with it, may be subject to a statutory duty of confidentiality if it relates to health service matters. If you are not the intended recipient(s), or if you have received this email in error, you are asked to immediately notify the sender by telephone collect on Australia +61 1800 198 175 or by return email. You should also delete this email, and any copies, from your computer system network and destroy any hard copies produced. If not an intended recipient of this email, you must not copy, distribute or take any action(s) that relies on it; any form of disclosure, modification, distribution and/or publication of this email is also prohibited. Although Queensland Health takes all reasonable steps to ensure this email does not contain malicious software, Queensland Health does not accept responsibility for the consequences if any person's computer inadvertently suffers any disruption to services, loss of information, harm or is infected with a virus, other malicious computer programme or code that may occur as a consequence of receiving this email. Unless stated otherwise, this email represents only the views of the sender and not the views of the Queensland Government. ********************************************************************************** |
From: Michael L. <mic...@gm...> - 2013-09-03 23:21:04
|
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, but it suits my needs and may suit yours. You can email me directly if you try it and have issues. Mike On Sep 3, 2013 5:16 PM, "Rahul Somasunderam" <rs...@ce...> wrote: > 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 <vbs...@gm...> > wrote: > > 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 < > jen...@gm...> wrote: > >> 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 <vbs...@gm...>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 < >>> b.b...@ph...> 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, Poland >>>> NIP: 899 258 73 59 >>>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>>> Fax +48 71 338 65 55b...@ph... >>>> >>>> On 08/27/2013 02:20 PM, Senthil Muthiah wrote: >>>> >>>> Forum is not active, so i dropped using this HAPI >>>> >>>> >>>> On Tue, Aug 27, 2013 at 4:07 PM, Bartłomiej Buczek < >>>> b.b...@ph...> 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 >>>>> NIP: 899 258 73 59 >>>>> Tel. +48 71 338 65 64; Kom. +48 668 891 540 >>>>> Fax +48 71 338 65 55b...@ph... >>>>> >>>>> On 07/12/2013 12:06 PM, Bartłomiej Buczek wrote: >>>>> >>>>> Hi, >>>>> I was following example send multiple messages out<http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html>and found out something like this: >>>>> >>>>> // Setup server to listen for incoming message >>>>> int port = 8813; >>>>> boolean useTls = false; >>>>> HapiContext context = new DefaultHapiContext(); >>>>> HL7Service server = context.newServer(port, useTls); >>>>> >>>>> >>>>> // We want to listen ADT^A01 messages >>>>> ReceivingApplication handler = (ReceivingApplication) new >>>>> ExampleReceiverApplication(); >>>>> server.registerApplication("ADT", "A01", handler); >>>>> So I run the application and as far as I understand I have setup >>>>> server and a client application which will listen for ADT^A01 messages. Now >>>>> I want to create another application (let's say another client) which will >>>>> connect with that already created server and listen for ADT^A02 messages. >>>>> >>>>> I found on documentation something like that: >>>>> >>>>> "If you are wondering how to integrate HAPI into an existing server >>>>> application, this is probably the place. Create a class that implements >>>>> ReceivingApplication, then look at HL7Server and ApplicationRouter to see >>>>> how to get HAPI to listen for messages on a socket and pass them to your >>>>> ReceivingApplication." >>>>> >>>>> But how should I use HL7Server and ApplicationRouter to connect with >>>>> previously created server? Maybe I'm missing something in the logic but >>>>> let's consider that one software already has running server and I want to >>>>> integrate with them to listen for messages special for my application (like >>>>> ADT^A02) - how to do this? >>>>> >>>>> -- >>>>> 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 55b...@ph... >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Introducing Performance Central, a new site from SourceForge and >>>>> AppDynamics. Performance Central is your source for news, insights, >>>>> analysis and resources for efficient Application Performance >>>>> Management. >>>>> Visit us today! >>>>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Hl7api-devel mailing list >>>>> Hl7...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>>> >>>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> >> >> -- >> >> Med venlig hilsen / Kind regards >> >> *Jens Kristian Villadsen* >> cand.polyt >> >> Stålhøjen 24 >> 8240 Risskov >> Denmark >> >> Mobile +4523373806 >> jen...@gm... >> jkiddo.dyndns.org >> > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: <ki...@ao...> - 2013-08-27 12:45:49
|
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 03:36 PM, Bart?omiej Buczek wrote: > Hi, > I was following example send multiple messages out > <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html> > and found out something like this: > > // Setup server to listen for incoming message > int port = 8813; > boolean useTls = false; > HapiContext context = new DefaultHapiContext(); > HL7Service server = context.newServer(port, useTls); > > > // We want to listen ADT^A01 messages > ReceivingApplication handler = (ReceivingApplication) new > ExampleReceiverApplication(); > server.registerApplication("ADT", "A01", handler); > > So I run the application and as far as I understand I have setup > server and a client application which will listen for ADT^A01 > messages. Now I want to create another application (let's say another > client) which will connect with that already created server and listen > for ADT^A02 messages. > > I found on documentation something like that: > > "If you are wondering how to integrate HAPI into an existing server > application, this is probably the place. Create a class that > implements ReceivingApplication, then look at HL7Server and > ApplicationRouter to see how to get HAPI to listen for messages on a > socket and pass them to your ReceivingApplication." > > But how should I use HL7Server and ApplicationRouter to connect with > previously created server? Maybe I'm missing something in the logic > but let's consider that one software already has running server and I > want to integrate with them to listen for messages special for my > application (like ADT^A02) - how to do this? > > > -- > 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 > b.b...@ph... > phxtecno.com > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel |