Open jungwire opened 14 hours ago
Those characters are part of the MLLP message, the protocol defined by HL7 to send messages. MLLP is a very simple protocol that encloses the message between the bytes \x0b{HL7_MESSAGE}\x1c\r, so when you receive the message from the network with the protocol, you do need to extract it, getting rid of the bytes.
BTW, if you're implementing an HL7 server, you can try the MLLPServer
class which takes care of receiving and extracting the message from MLLP serialization. You can see how it works in the examples
directory
Hi, everyone
I have a problem during parsing of the ACK message. May code looks like this:
and my test ACK message like this:
'\x0bMSH|^~\\&|SA|SF|RA|RF|20241126151031||ACK^O21|12345|T|2.5\rMSA|AA|12345\r\x1c\r'
However, I get the following
Invalid name for Segment:
Error:After trying some things I figured out that removing the End of Block
\x1c\r
of the framing allows for correct parsing. But this seem like a work around.Any help is much appreciated