-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last segment has no segment separation character #56
Comments
thanks, after reviewing the docs I think I agree that the library should terminate the the last segment. since this might be a breaking change it will have to be a new major version. i'll close this when that happens. |
Thanks for your reply.
Bob Rupp ***@***.***>, 17 May 2021 Pzt, 21:28 tarihinde şunu
yazdı:
… thanks, after reviewing the docs I think I agree that the library should
terminate the the last segment. since this might be a breaking change it
will have to be a new major version. i'll close this when that happens.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEMTFIZKJUO3GHSVPX4AL3DTOFN6PANCNFSM43WUPSHA>
.
--
Hasan ERKEN
--
|
The library is working fine while parsing the incoming messages. It's just having trouble while sending out messages. I got it working by creating message with overriding toString method to add a segment separator in the end:
|
When I create a message like this:
`var msg = new hl7.Message(
"EPIC",
"EPICADT",
"SMS",
"199912271408",
"CHARRIS",
["ADT", "A04"], //This field has 2 components
);
msg.addSegment(
"PID",
"", //Blank field
["0493575", "", "", "2", "", "ID 1"], //Multiple components
"454721",
"",
["DOE", "JOHN", "", "", "", ""],
"19480203",
// new hl7.Field("First", "Second") //REPEATING FIELD
//Keep adding arguments to add more fields
);
msg.addSegment("OBX",
1, //Blank field
["JHDL", "HDL Cholesterol (CAD)"], //Multiple components
1,
62,
["CD:289", "mg/dL"],
[">40", "40"]
);
msg.addSegment("OBX",

1, //Blank field
["JTRIG", "Triglyceride (CAD)"], //Multiple components
1,
15,
["CD:289", "mg/dL"],
["35-150", "35", "150"]
)
`
I got an error of "Last segment has no segment separation character" in HL7 inspector tool.
By the way, thanks, for this useful library.
The text was updated successfully, but these errors were encountered: