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

Must Have A Name Issue #11

Open
Hanwen196 opened this issue Aug 11, 2020 · 2 comments
Open

Must Have A Name Issue #11

Hanwen196 opened this issue Aug 11, 2020 · 2 comments

Comments

@Hanwen196
Copy link

Hello, I was trying to parser REF and ORU hl7 message.

According to my local parser, I have the OBX inside and I want to read OBX.5.5 out to display.

My code for this function is below

    var message = this.hl7parser.create(dataItem.rawMessage);
    var result = message.get("OBX.5.5").toString(); 

However, it throws out an issue with Segment must have a name, see the picture below.

Can anyone help?

Many thanks.

image

image

@sginer
Copy link

sginer commented Jul 9, 2021

Hello, I Have the same pb.
It happen when the message to parse ends with cariage return
You must trim your message before to parse it !
Regards

@Bugs5382
Copy link

Bugs5382 commented Jun 4, 2024

@sginer or @Hanwen196 - I have fixed this issue in my package: https://github.com/Bugs5382/node-hl7-client

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

3 participants