Skip to content
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

<CRLF> at the end of a file with find_groups=false will throw a "Segment not found" error #101

Open
AwfulMoo opened this issue Apr 9, 2022 · 1 comment

Comments

@AwfulMoo
Copy link

AwfulMoo commented Apr 9, 2022

When attempting to parse a message, with find_groups=False, files with "\r\n" on the final line will fail as the final segment will be "\n", which is then stripped to "".

This causes an key not found exception when attempting to retrieve the element name for that "segment".

HL7 spec version used: 2.3.1
Message type: ORU_R01

@svituz
Copy link
Member

svituz commented Mar 13, 2024

You'll need to replace the sequence '\n'r' to '\r' before parsing the message with the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants