Hi Christian,

I just remembered that I forgot to thank you for your last response. All is
going well :-)

Best regards,
Suranga



On Fri, Sep 14, 2012 at 4:17 PM, christian ohr <christian....@icw.de> wrote:

>
> You could validate your messages for must-have information
> (MessageValidator
> using a custom ValidationContext) and return a kind of error protocol
> generated from the exception being thrown.
>
> Christian
>
>
> surangakas wrote:
> >
> > Hi Christian,
> >
> > Thanks for the quick response. By 'user' I mean the person who triggers
> > the
> > export of the hl7 message. In my case, the message is triggered by, and
> > received by the same person.
> > Hmm... in regard to the use of the ACK message, I initially thought that
> > the ACK was supposed to be an acknowledgement that is returned after
> > someone receives an hl7 message ? In my case, I need to tell the user
> that
> > I was unable to generate the hl7 message he requested.
> > Is it also applicable to cover errors that occur during the hl7 message
> > generation ?
> >
> > Best regards,
> > Suranga
> >
> >
> >
> > On Fri, Sep 14, 2012 at 1:52 PM, christian ohr <christian....@icw.de>
> > wrote:
> >
> >>
> >> Not sure who you mean with "user"... Is it the (human?) user who
> triggers
> >> the
> >> export or the recipient of the HL7 export?
> >> Maybe an ACK message with corresponding error code and error location
> >> comes
> >> closest to what you intend to do. However, the recipient of such a
> >> message
> >> must be aware of this "protocol".
> >>
> >> cheers
> >> Christian
> >>
> >>
> >>
> >> surangakas wrote:
> >> >
> >> > Hello HAPI devs,
> >> >
> >> > My name is Suranga, and I'm a volunteer developer for
> >> > OpenMRS<http://openmrs.org/about/>.
> >> >  This is my first email to the HAPI community.
> >> >
> >> > I'm currently working on a module that will allow us to export OpenMRS
> >> > data
> >> > in hl7 message format, and of course I'm using HAPI.
> >> > However, I need to make a clarification on the correct behavior I
> >> should
> >> > follow in the event of an error.
> >> >
> >> > Lets assume that my hl7 message generation fails because of missing
> >> data.
> >> > In such a case, what should be the right thing to do ? Is there a
> >> message
> >> > (similar to ACK messages) which I can use to notify the user why the
> >> > message generation failed ?
> >> >
> >> > --
> >> > Thanks and Best Regards,
> >> >
> >> > Suranga
> >> >
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > Got visibility?
> >> > Most devs has no idea what their production app looks like.
> >> > Find out how fast your code is with AppDynamics Lite.
> >> > http://ad.doubleclick.net/clk;262219671;13503038;y?
> >> > http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> >> > _______________________________________________
> >> > Hl7api-devel mailing list
> >> > Hl7api-devel@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-notify-users-when-HAPI-message-generation-fails--tp34431668p34431892.html
> >> Sent from the hl7api-devel mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Got visibility?
> >> Most devs has no idea what their production app looks like.
> >> Find out how fast your code is with AppDynamics Lite.
> >> http://ad.doubleclick.net/clk;262219671;13503038;y?
> >> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> >> _______________________________________________
> >> Hl7api-devel mailing list
> >> Hl7api-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
> >>
> >
> >
> >
> > --
> > Best Regards,
> >
> > Suranga
> >
> >
> ------------------------------------------------------------------------------
> > Got visibility?
> > Most devs has no idea what their production app looks like.
> > Find out how fast your code is with AppDynamics Lite.
> > http://ad.doubleclick.net/clk;262219671;13503038;y?
> > http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> > _______________________________________________
> > Hl7api-devel mailing list
> > Hl7api-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-notify-users-when-HAPI-message-generation-fails--tp34431668p34432434.html
> Sent from the hl7api-devel mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>



-- 
Best Regards,

Suranga
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to