From: Nico V. <ni...@sk...> - 2005-07-13 17:25:01
|
Hi Jim, Could you please send me the peace of code you're using to construct the message ? What version of hapi are you using ? Are you sure that your string "State Laboratory Institute" doesn't contain a carriage return linefeed after the "Laboratory" ? It's not allowed to send a carriage return linefeed (ASCII 13 + 10) in a HL7 message. A carriage return (ASCII 13) is allowed/required but only as segment terminator (after each segment). Best Regards Nico At 13/07/2005, Jim Krygowski wrote: >I just started working with an HL7 interface that requires pipe-delimited >style messages. I'm using HAPI to generate the messages being sent and >for some reason, the receiving gateway doesn't like what it's getting. > >HAPI is generating a MSH segment with delimiters for MSH.1 thru MSH.12 >with a cr/lf immediately following. It looks perfectly valid, but the >interface chokes on it. I have to add the MSH.13 pipe delimiter after the >MSH.12 content in order for the message to be accepted. This is the same >for any message that doesn't have a value in the last possible field of a >segment. > >This is what HAPI produces: >MSH|^~\&| |State Laboratory >Institute^22D0650270^CLIA|ELRMADPH|MA|20050713113529||ORU^R01|2005071311352900000|P|2.3.1<hex >0D0A> > >This is what the interface likes: >MSH|^~\&| |State Laboratory >Institute^22D0650270^CLIA|ELRMADPH|MA|20050713113529||ORU^R01|2005071311352900000|P|2.3.1|<hex >0D0A> > >I've been delving into the HL7 specification docs on HL7.org but they're >not terribly helpful. I've got some pull with the interface vendor so if >they've done it wrong, we can have them change it. > >So, does anyone know which way is the right way?? Is HAPI failing to put a >trailing delimiter in some cases? > >thanks in advance. > >Jim > > > > >------------------------------------------------------- >This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening >July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual >core and dual graphics technology at this free one hour event hosted by HP, >AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel |