epic winter a écrit :
A couple questions for you. Your message reader breaks up messages by
'\n'. Isn't that the segment terminator?
The segment terminator is the carriage return character (\r ,or 0x0D). I
use a line-feed (\n, or 0x0A) as a message separator, but it is a
personal choice. In the section concerning batches in my HL7 spec, there
is no mention of such a separator. Maybe I should not put a message
separator, but it would make the parsing quite complex...
Also if you are reading in a batch how do you separate the FHS/FTS and
BHS/BTS segments from the actual messages?
To be honest, I don't use these segments, for two reasons: HAPI doesn't
support these "out of the box", and my HL7 receiving applications neither.
thanks
-Ryan
Frédéric
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel