Comments (2)
@kputnam hope u notice this
from stupidedi.
Hi Jemuel, I think the InvalidEnvelopeVal
happens when there's no grammar associated to identifiers in the envelope. Kind of like a "I don't know how to parse the stuff inside the ST/SE" warning. That InvalidEnvelopeVal
has a reason
property that should give details.
You can see the reason when you use bin/edi-pp
, it says this: unknown transaction set "005010" "IM" "210"
. So I think the problems is we don't have a grammar defined for IM-210 for the 5010 version of X12. Looks like there's a grammar for that in 4010 though. So if you have documentation you could make your own grammar and contribute it as a PR, or you can try using the 4010 grammar to parse the 5010 file:
config = Config.default.customize do |c|
c.transaction_set.customize do |x|
x.register("005010", "IM", "210") { Stupidedi::TransactionSets::FortyTen::Standards::IM210 }
end
end
If you run into validation problems, it's probably because 5010 has changed some things since 4010. To workaround that, you can make a copy of the 4010 grammar and put it in your own namespace, and change as needed. Just take care if you don't have detailed documentation, since your example file might not shed a full light on what the grammar should allow or not and you might have to continually revise as you get more files down the road.
from stupidedi.
Related Issues (20)
- iterating over files with multiple ISAs HOT 3
- Doesn't handle arbitrarily large input files, and never will be able to HOT 5
- Duplicate Keys HOT 3
- Unknown patient gender in 270 causes validation error HOT 2
- value PR is not allowed in element NM101 HOT 2
- Parse EDI 850 ERROR HOT 1
- Accept Tempfile in Stupidedi::Reader.build HOT 1
- Segment N1*PR~ cannot be reached
- Parsing an 837 and grabbing segment values HOT 2
- Is there a way to skip validations and build without some of the segments HOT 2
- 004010 version - B3-07 precision doesn't work as intended HOT 2
- value 091 is not allowed in element DTM01 Date/Time Qualifier HOT 2
- TD1 for X12 Release 4010 gets reduced to 2 fields instead of 10 for no reason HOT 1
- 835 - 005010X221A1 - NTE segment error HOT 2
- Stream writing HOT 2
- help wanted: Only the first element is return when iterating a repeated element HOT 2
- Inconsistent floating point output in 834 ICM data HOT 9
- Adding the additional accepted values for a segement HOT 1
- File permissions issue on v1.4.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stupidedi.