amida-tech / mllp

HL7's MLLP (Minimum Lower Layer Protocol) server implementation in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in data transfert: one character out of many is deleted

Eriatolc opened this issue · comments

Hi,

First, thank you for your work. It is very useful for my project.

I wanted to point out one problem on your server. You are deleting a char too many between the moment you received the HL7 message from the client and the moment you are passing it in parameter of your event hl7.

For example, we have the following:
"HL7|blabla|" ==> MLLP Server ===> emit('hl7', "HL7|blabla");

Thus, your MLLP server doesn't give exactly the message it receives.
I will make a PR to fix this.

Best regards.