Hi George,

Are you sure the CR is missing? Many terminal applications don't show
segments on a new line when you print out encoded HL7 messages, because HL7
uses "\r" as a delimiter instead of the more normal "\n" or "\r\n". You
might try something along the lines of this to check:

System.out.println(message.encode().replace("\\r", "\r\n"));

Failing that, if you could provide some sample code illustrating the issue,
that would be great.

Cheers,
James

On Mon, Mar 21, 2011 at 1:58 PM, George Michel <[email protected]>wrote:

> Hi,
>
> I am trying to use HAPI to create HL7 messages. Similar to the example
> that uses a DefaultXMLParser, I have been able to create the message
> using a PipeParser. The problem is that the end of each segment does not
> have a pipe delimiter nor a carriage return. So there is no break. The
> example provided produces the same problem (after updating the code.) Is
> there a way to add these characters to each segment in the message? I
> also don't see a way to use the library unless these characters are
> attached.
>
> Thanks,
>
> George
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to