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

Terser queries on OBR fields #7

Open
ConnorBarnhill opened this issue Nov 5, 2019 · 0 comments
Open

Terser queries on OBR fields #7

ConnorBarnhill opened this issue Nov 5, 2019 · 0 comments

Comments

@ConnorBarnhill
Copy link

Hi,

First off, thanks for contributing this package. Super helpful.

While using the ParseQuery method, I found myself doing the following:

for i, _ := range m.Segments("OBR") {
    OBRElementQuery, _ := hl7.ParseQuery(fmt.Sprintf("OBR(%d)-3", i + 1))
    OBRElement := OBRElementQuery.GetString(m)
}

I define/parse all of my other queries independent of the message but because the number of OBR segements varies I have to parse the query for each OBR segment of each message. Is there a better way to do this?

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

1 participant