Hi All, The approach which i thought has been implemented and it is working fine as expected. What should I do to contribute that to the community?
Thanks Ram On 03/21/2012 07:21 AM, hl7api-devel-requ...@lists.sourceforge.net wrote: > Send Hl7api-devel mailing list submissions to > hl7api-devel@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > or, via email, send a message with subject or body 'help' to > hl7api-devel-requ...@lists.sourceforge.net > > You can reach the person managing the list at > hl7api-devel-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Hl7api-devel digest..." > > > Today's Topics: > > 1. Re: Get the port of the application (LDH) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 20 Mar 2012 21:51:21 -0400 > From: LDH<l...@360fresh.com> > Subject: Re: [HAPI-devel] Get the port of the application > To: hl7api-devel@lists.sourceforge.net > Message-ID:<4f693419.8060...@360fresh.com> > Content-Type: text/plain; charset="iso-8859-1" > > I think the first option should be fine for you and your application. > > Moving forward though, the second option is probably something you'd > want to try to contribute to the project directly as i think it's a good > idea. Anyone who is an expect considering if this would be a good change > to do for the next version of the library? > > ------------------------------------------------------------------------ > *Laurent (Harry) Hasson* > Co-Founder, 360Fresh.com<https://360Fresh.com> > > > On 3/19/2012 07:31, Ram wrote: >> Hi Laurent, >> >> Sorry, I can not write multiple application classes for each port. My >> project was designed to create multiple channels for a single >> application with multiple ports. So I came up with solution for this. >> Can you please tell me whether my following solution is an appropriate >> one or not. >> >> I am just thinking an idea of writing a overloading method to >> processMessage() in Responder and MessageTypeRouter classes to have >> the connection as one of the argument. So the new method will be like, >> >> *protected* String processMessage(String incomingMessageString, >> Connection con) { >> >> } >> >> If this is an appropriate one, A simple change in the Grunt >> class(Inner class in Receiver) needs to be done for method call. >> Already it has the connection object. So the call would be like, >> >> String response = conn.getResponder().processMessage(m,conn); >> >> >> Let me know your views. >> >> Thanks >> Ram >> >> On 03/13/2012 02:16 PM, hl7api-devel-requ...@lists.sourceforge.net wrote: >>> Send Hl7api-devel mailing list submissions to >>> hl7api-devel@lists.sourceforge.net >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> or, via email, send a message with subject or body 'help' to >>> hl7api-devel-requ...@lists.sourceforge.net >>> >>> You can reach the person managing the list at >>> hl7api-devel-ow...@lists.sourceforge.net >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Hl7api-devel digest..." >>> >>> >>> Today's Topics: >>> >>> 1. Get the port of the application (Ram) >>> 2. Re: generate custom datatype (Gabriel Euzet) >>> 3. Re: Get the port of the application (LDH) >>> 4. Re: generate custom datatype (Gabriel Euzet) >>> >>> >>> ---------------------------------------------------------------------- >>> >>> Message: 1 >>> Date: Mon, 12 Mar 2012 17:02:01 +0530 >>> From: Ram<r...@visolve.com> >>> Subject: [HAPI-devel] Get the port of the application >>> To:hl7api-devel@lists.sourceforge.net >>> Message-ID:<4f5ddeb1.7050...@visolve.com> >>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >>> >>> Hi, >>> >>> Let me explain my problem more clearly. I did made the server to run in >>> three different ports. But the application configured with the server is >>> same. So whenever i pass the HL7 message to any of the three ports, they >>> are all calling the same processMessage() method of the application. >>> That is fine, i do need that is to be happened. But the thing is, i also >>> need to know the receiving port of that current message. Is there any >>> way to read the port? >>> >>> If not, I am ready to work with you to find a solution to this kind of >>> problem. >>> >>> Thanks >>> Ram >>> >>> >>> On 03/12/2012 05:47 AM,hl7api-devel-requ...@lists.sourceforge.net wrote: >>>> Send Hl7api-devel mailing list submissions to >>>> hl7api-devel@lists.sourceforge.net >>>> >>>> To subscribe or unsubscribe via the World Wide Web, visit >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> or, via email, send a message with subject or body 'help' to >>>> hl7api-devel-requ...@lists.sourceforge.net >>>> >>>> You can reach the person managing the list at >>>> hl7api-devel-ow...@lists.sourceforge.net >>>> >>>> When replying, please edit your Subject line so it is more specific >>>> than "Re: Contents of Hl7api-devel digest..." >>>> >>>> >>>> Today's Topics: >>>> >>>> 1. How to create acknowledgment message (Sandy Chops) >>>> 2. Re: How to create acknowledgment message (Jens Kristian Villadsen) >>>> 3. Specifying scope in a RuleBinding?? (ray_lu...@verizon.net) >>>> 4. Re: Specifying scope in a RuleBinding?? (christian ohr) >>>> 5. generate custom datatype (Gabriel Euzet) >>>> 6. Re: generate custom datatype (James Agnew) >>>> >>>> >>>> ---------------------------------------------------------------------- >>>> >>>> Message: 1 >>>> Date: Tue, 6 Mar 2012 11:11:21 -0800 (PST) >>>> From: Sandy Chops<sandycho...@yahoo.com> >>>> Subject: [HAPI-devel] How to create acknowledgment message >>>> To:"hl7api-devel@lists.sourceforge.net" >>>> <hl7api-devel@lists.sourceforge.net> >>>> Message-ID: >>>> <1331061081.53163.yahoomail...@web122004.mail.ne1.yahoo.com> >>>> Content-Type: text/plain; charset="us-ascii" >>>> >>>> Hi, >>>> >>>> I would like to creat Acknowledgement message using AR and AE code and >>>> send the error string in the >>>> ERR segment. >>>> >>>> Using the ack = DefaultApplication.makeACK((Segment) message.get("MSH")); >>>> >>>> It only created AA message. >>>> >>>> Could someone please share me how to create ack message with other error >>>> codes and string. >>>> >>>> Thanks in advance. >>>> Sandy >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> >>>> ------------------------------ >>>> >>>> Message: 2 >>>> Date: Tue, 6 Mar 2012 21:47:23 +0100 >>>> From: Jens Kristian Villadsen<j...@c3a.dk> >>>> Subject: Re: [HAPI-devel] How to create acknowledgment message >>>> To: Sandy Chops<sandycho...@yahoo.com> >>>> Cc:"hl7api-devel@lists.sourceforge.net" >>>> <hl7api-devel@lists.sourceforge.net> >>>> Message-ID: >>>> <CAJL9=us+pLJCcXk+yP5dEEXSjB7E1-=r-xjh5m8ng8lwfwn...@mail.gmail.com> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> Hi Sandy - take a look at >>>> http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/model/Message.html#generateACK%28java.lang.String,%20ca.uhn.hl7v2.HL7Exception%29 >>>> >>>> 2012/3/6 Sandy Chops<sandycho...@yahoo.com> >>>> >>>>> Hi, >>>>> >>>>> I would like to creat Acknowledgement message using AR and AE code and >>>>> send the error string in the >>>>> ERR segment. >>>>> >>>>> Using the ack = DefaultApplication.makeACK((Segment) message.get("MSH")); >>>>> >>>>> It only created AA message. >>>>> >>>>> Could someone please share me how to create ack message with other error >>>>> codes and string. >>>>> >>>>> Thanks in advance. >>>>> Sandy >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Keep Your Developer Skills Current with LearnDevNow! >>>>> The most comprehensive online learning library for Microsoft developers >>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>>> http://p.sf.net/sfu/learndevnow-d2d >>>>> _______________________________________________ >>>>> Hl7api-devel mailing list >>>>> Hl7api-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>>> >>>>> >>> >>> ------------------------------ >>> >>> Message: 2 >>> Date: Mon, 12 Mar 2012 15:44:34 +0100 >>> From: Gabriel Euzet<geu...@sqli.com> >>> Subject: Re: [HAPI-devel] generate custom datatype >>> To: James Agnew<ja...@jamesagnew.ca> >>> Cc:hl7api-devel@lists.sourceforge.net >>> Message-ID: >>> <CAGF=7s40rlzex-u2q8jgpxn2ufotjizo2hvbdtaeqjm9m7z...@mail.gmail.com> >>> Content-Type: text/plain; charset=UTF-8 >>> >>> Hi James, >>> >>> Thank you for the link. >>> I can't make it works (I have tried SINGLE and ALL for the >>> "generateDateTypes" parameter). >>> In MWB I have customized a DataTypes file, a Library file and created >>> some messages profiles (all are based on HL7 2.5.1). >>> But when I run the source code generation I get group, message and >>> segment, no datatype directory. >>> >>> Can I send my project source files (pom and profiles conformances) ? >>> >>> Thanks in advance. >>> Gabriel >>> >>> >>> 2012/3/12 James Agnew<ja...@jamesagnew.ca>: >>>> Hi Gabriel, >>>> >>>> The maven plugin actually does support generating structures for the >>>> datatypes, but has it turned off by default to save space. The >>>> documentation >>>> page for the plugin has some more information here: >>>> http://hl7api.sourceforge.net/hapi-sourcegen/confgen-mojo.html >>>> >>>> Looking over the HAPI site, I just realized that the documentation for the >>>> plugin isn't actually linked to from anywhere else, so it's not surprising >>>> that nobody found it. This has now been fixed. >>>> >>>> Cheers, >>>> James >>>> >>>> >>>> On Fri, Mar 9, 2012 at 10:29 AM, Gabriel Euzet<geu...@sqli.com> wrote: >>>>> Hi, >>>>> >>>>> I'm new with hl7api but I already need to make an advanced usage of it. ^^ >>>>> I need to create my own datatypes, segments and messages. >>>>> MWB allows to customize a datatybe library and to create a conformance >>>>> profile. But the source code generation (with maven, >>>>> ca.uhn.hapi:hapi-sourcegen plugin) doesn't create the "datatype" >>>>> directory nor the classes. >>>>> >>>>> Can you help me ? >>>>> >>>>> Thanks >>>>> GE >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Virtualization& Cloud Management Using Capacity Planning >>>>> Cloud computing makes use of virtualization - but cloud computing >>>>> also focuses on allowing computing to be delivered as a service. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>> _______________________________________________ >>>>> Hl7api-devel mailing list >>>>> Hl7api-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> ------------------------------ >>> >>> Message: 3 >>> Date: Mon, 12 Mar 2012 22:47:23 -0400 >>> From: LDH<l...@360fresh.com> >>> Subject: Re: [HAPI-devel] Get the port of the application >>> To:hl7api-devel@lists.sourceforge.net >>> Message-ID:<4f5eb53b.3020...@360fresh.com> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> I am not sure how to read the port. An easy answer to your problem >>> though is to create three Applications (one for each port), and in the >>> processMessage() method, delegate to a common class for all three. That >>> way, you can send in any additional configuration you may wish, >>> including the port #. Also, not sure if this is a concern or not, but >>> you may want to linearize all three ports into a single application >>> instance to avoid overlapped operations too. Otherwise, you could have 2 >>> messages arriving concurrently, and your one class will be called >>> concurrently as well. This may be OK if you coded accordingly though. >>> >>> ------------------------------------------------------------------------ >>> *Laurent (Harry) Hasson* >>> Co-Founder, 360Fresh.com<https://360Fresh.com> >>> >>> >>> On 3/12/2012 07:32, Ram wrote: >>>> Hi, >>>> >>>> Let me explain my problem more clearly. I did made the server to run in >>>> three different ports. But the application configured with the server is >>>> same. So whenever i pass the HL7 message to any of the three ports, they >>>> are all calling the same processMessage() method of the application. >>>> That is fine, i do need that is to be happened. But the thing is, i also >>>> need to know the receiving port of that current message. Is there any >>>> way to read the port? >>>> >>>> If not, I am ready to work with you to find a solution to this kind of >>>> problem. >>>> >>>> Thanks >>>> Ram >>>> >>>> >>>> On 03/12/2012 05:47 AM,hl7api-devel-requ...@lists.sourceforge.net wrote: >>>>> Send Hl7api-devel mailing list submissions to >>>>> hl7api-devel@lists.sourceforge.net >>>>> >>>>> To subscribe or unsubscribe via the World Wide Web, visit >>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>>> or, via email, send a message with subject or body 'help' to >>>>> hl7api-devel-requ...@lists.sourceforge.net >>>>> >>>>> You can reach the person managing the list at >>>>> hl7api-devel-ow...@lists.sourceforge.net >>>>> >>>>> When replying, please edit your Subject line so it is more specific >>>>> than "Re: Contents of Hl7api-devel digest..." >>>>> >>>>> >>>>> Today's Topics: >>>>> >>>>> 1. How to create acknowledgment message (Sandy Chops) >>>>> 2. Re: How to create acknowledgment message (Jens Kristian >>>>> Villadsen) >>>>> 3. Specifying scope in a RuleBinding?? (ray_lu...@verizon.net) >>>>> 4. Re: Specifying scope in a RuleBinding?? (christian ohr) >>>>> 5. generate custom datatype (Gabriel Euzet) >>>>> 6. Re: generate custom datatype (James Agnew) >>>>> >>>>> >>>>> ---------------------------------------------------------------------- >>>>> >>>>> Message: 1 >>>>> Date: Tue, 6 Mar 2012 11:11:21 -0800 (PST) >>>>> From: Sandy Chops<sandycho...@yahoo.com> >>>>> Subject: [HAPI-devel] How to create acknowledgment message >>>>> To:"hl7api-devel@lists.sourceforge.net" >>>>> <hl7api-devel@lists.sourceforge.net> >>>>> Message-ID: >>>>> <1331061081.53163.yahoomail...@web122004.mail.ne1.yahoo.com> >>>>> Content-Type: text/plain; charset="us-ascii" >>>>> >>>>> Hi, >>>>> >>>>> I would like to creat Acknowledgement message using AR and AE code and >>>>> send the error string in the >>>>> ERR segment. >>>>> >>>>> Using the ack = DefaultApplication.makeACK((Segment) message.get("MSH")); >>>>> >>>>> It only created AA message. >>>>> >>>>> Could someone please share me how to create ack message with other error >>>>> codes and string. >>>>> >>>>> Thanks in advance. >>>>> Sandy >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> >>>>> ------------------------------ >>>>> >>>>> Message: 2 >>>>> Date: Tue, 6 Mar 2012 21:47:23 +0100 >>>>> From: Jens Kristian Villadsen<j...@c3a.dk> >>>>> Subject: Re: [HAPI-devel] How to create acknowledgment message >>>>> To: Sandy Chops<sandycho...@yahoo.com> >>>>> Cc:"hl7api-devel@lists.sourceforge.net" >>>>> <hl7api-devel@lists.sourceforge.net> >>>>> Message-ID: >>>>> <CAJL9=us+pLJCcXk+yP5dEEXSjB7E1-=r-xjh5m8ng8lwfwn...@mail.gmail.com> >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> Hi Sandy - take a look at >>>>> http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/model/Message.html#generateACK%28java.lang.String,%20ca.uhn.hl7v2.HL7Exception%29 >>>>> >>>>> 2012/3/6 Sandy Chops<sandycho...@yahoo.com> >>>>> >>>>>> Hi, >>>>>> >>>>>> I would like to creat Acknowledgement message using AR and AE code and >>>>>> send the error string in the >>>>>> ERR segment. >>>>>> >>>>>> Using the ack = DefaultApplication.makeACK((Segment) message.get("MSH")); >>>>>> >>>>>> It only created AA message. >>>>>> >>>>>> Could someone please share me how to create ack message with other error >>>>>> codes and string. >>>>>> >>>>>> Thanks in advance. >>>>>> Sandy >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Keep Your Developer Skills Current with LearnDevNow! >>>>>> The most comprehensive online learning library for Microsoft developers >>>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>>>> http://p.sf.net/sfu/learndevnow-d2d >>>>>> _______________________________________________ >>>>>> Hl7api-devel mailing list >>>>>> Hl7api-devel@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>>>> >>>>>> >>>> ------------------------------------------------------------------------------ >>>> Try before you buy = See our experts in action! >>>> The most comprehensive online learning library for Microsoft developers >>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>> http://p.sf.net/sfu/learndevnow-dev2 >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7api-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> >>> ------------------------------ >>> >>> Message: 4 >>> Date: Tue, 13 Mar 2012 09:46:18 +0100 >>> From: Gabriel Euzet<geu...@sqli.com> >>> Subject: Re: [HAPI-devel] generate custom datatype >>> To: James Agnew<ja...@jamesagnew.ca> >>> Cc:hl7api-devel@lists.sourceforge.net >>> Message-ID: >>> <CAGF=7s4ca5svoy_3jr1fpb7i7xvnfoh2ru+yt9mw6twudix...@mail.gmail.com> >>> Content-Type: text/plain; charset=UTF-8 >>> >>> Sorry, my mistake, I have written generateDateTypes ... >>> >>> 2012/3/12 Gabriel Euzet<geu...@sqli.com>: >>>> Hi James, >>>> >>>> Thank you for the link. >>>> I can't make it works (I have tried SINGLE and ALL for the >>>> "generateDateTypes" parameter). >>>> In MWB I have customized a DataTypes file, a Library file and created >>>> some messages profiles ?(all are based on HL7 2.5.1). >>>> But when I run the source code generation I get group, message and >>>> segment, no datatype directory. >>>> >>>> Can I send my project source files (pom and profiles conformances) ? >>>> >>>> Thanks in advance. >>>> Gabriel >>>> >>>> >>>> 2012/3/12 James Agnew<ja...@jamesagnew.ca>: >>>>> Hi Gabriel, >>>>> >>>>> The maven plugin actually does support generating structures for the >>>>> datatypes, but has it turned off by default to save space. The >>>>> documentation >>>>> page for the plugin has some more information here: >>>>> http://hl7api.sourceforge.net/hapi-sourcegen/confgen-mojo.html >>>>> >>>>> Looking over the HAPI site, I just realized that the documentation for the >>>>> plugin isn't actually linked to from anywhere else, so it's not surprising >>>>> that nobody found it. This has now been fixed. >>>>> >>>>> Cheers, >>>>> James >>>>> >>>>> >>>>> On Fri, Mar 9, 2012 at 10:29 AM, Gabriel Euzet<geu...@sqli.com> wrote: >>>>>> Hi, >>>>>> >>>>>> I'm new with hl7api but I already need to make an advanced usage of it. >>>>>> ^^ >>>>>> I need to create my own datatypes, segments and messages. >>>>>> MWB allows to customize a datatybe library and to create a conformance >>>>>> profile. But the source code generation (with maven, >>>>>> ca.uhn.hapi:hapi-sourcegen plugin) doesn't create the "datatype" >>>>>> directory nor the classes. >>>>>> >>>>>> Can you help me ? >>>>>> >>>>>> Thanks >>>>>> GE >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Virtualization& Cloud Management Using Capacity Planning >>>>>> Cloud computing makes use of virtualization - but cloud computing >>>>>> also focuses on allowing computing to be delivered as a service. >>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>>> _______________________________________________ >>>>>> Hl7api-devel mailing list >>>>>> Hl7api-devel@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> ------------------------------ >>> >>> ------------------------------------------------------------------------------ >>> Keep Your Developer Skills Current with LearnDevNow! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-d2d >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7api-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >>> End of Hl7api-devel Digest, Vol 68, Issue 4 >>> ******************************************* >>> >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> >> >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7api-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > ------------------------------ > > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > End of Hl7api-devel Digest, Vol 68, Issue 9 > ******************************************* > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel