Closed boxfoot closed 3 years ago
@boxfoot I recently forked this project and tried to add support for what you are trying to do I think. I work in the medical EDI arena as well and have to parse 270/271 276/277 and 835. My solution involved adding a new macro called FORSEGLOOP which I semi documented here in the pull request. I also made a POC for testing it out here. You can find the source for it all here.
This all lead me to posting this new issue asking if there is any interest in making a micro service with a UI that utilizes this library via dynamic scripts. In my project at work I am at the point where we tested out all the generation and parsing scripts we need and now it is time to add to our main code. Unfortunately my CEO is short sided and can't see the vision so he wants me to directly embed the parsing and generating instead of building out a microservice. Maybe I am wrong and I just don't know how devs use EDI but my belief is that it would make more sense to have a simple drop in microservice instead of imbedding it. What are your thoughts?
@fpw23 Thanks for responding.
@boxfoot Sorry for not getting back to you on this, I've had my head underwater with projects related to AS2 protocol and JSON and haven't paid attention to EDI issues. I think @fpw23 is spot on, FORSEGLOOP is a great addition.
Closing, as work will eventually continue in the JS-EDI project.
Element selector language has been significantly enhanced to cover this use case.
https://github.com/ahuggins-nhs/js-edi/blob/main/packages/dom/query/README.md#loop-selector
Hi,
This library is fantastic -- thank you! I am trying to use it to parse an EDI document and having trouble figuring out how to deal with repeating HL blocks.
Let's say somewhere in my document I have this sequence (contrived example, and this is the 278 transaction set)
I would like to transform this into something like:
Do you have any suggestions for how to parse in this way? Thank you.