Comments (1)
From the sample file you provided earlier, it looks like these segments aren't specified in the grammar so you'll have a difficult time accessing them (you can play with #find!
but I wouldn't suggest it). Here's the output of bin/edi-pp (after changing it to use Config.contrib
):
LoopVal[0205](
SegmentVal[AT7: Shipment Status Detail](
ID.empty[E1650: Shipment Status Code],
ID.empty[E1651: Shipment Status or Appointment Reason Code],
ID.value[E1652: Shipment Appointment Status Code](AB: Delivery Appointment Date and/or Time),
ID.value[E1651: Shipment Status or Appointment Reason Code](BG: Other),
DT.value[ E373: Date](2013-06-19),
TM.value[ E337: Time](23:59:0.0),
ID.value[ E623: Time Code](LT: Local Time (Preferred Usage - Explain in detail)))),
SegmentVal[L11: Business Instructions and Reference Number](
AN.value[ E127: Reference Identification](DL-RETURNED TO SHIPPER),
ID.value[ E128: Reference Identification Qualifier](RRS: Reconciliation Report Section Identification Code),
AN.empty[ E352: Description]),
SegmentVal[L11: Business Instructions and Reference Number](
AN.value[ E127: Reference Identification](49-THE CUSTOMER WAS NOT AVAILA),
ID.value[ E128: Reference Identification Qualifier](REC: Related Case),
AN.value[ E352: Description]( ON 3RD ATTEMPT)),
InvalidSegmentVal[MAN],
InvalidSegmentVal[CD3],
InvalidSegmentVal[CD3],
InvalidSegmentVal[N1],
InvalidSegmentVal[N3],
InvalidSegmentVal[N4]),
How you seek to this N1
will ultimately depend on the changes you make to the grammar. If MAN
is a sibling loop to 0200
and N1
is a child loop of MAN
, you could jump directly from ST
to MAN
, and the from MAN
to N1
. You'll need some documentation from your trading partner to be able to construct the grammar, though.
from stupidedi.
Related Issues (20)
- Generating 210 document: NoMethodError - undefined method `entry_segment_uses' for #<Stupidedi::Schema::LoopDef:0x3fd64e4d5d50 ...> HOT 6
- No way to access LOOP*** HOT 5
- how to actually write sub-elements separated by ":" ? HOT 3
- API Documentation link broken HOT 3
- Question: Is it possible to override or monkey patch validations? HOT 2
- Need help for parsing a very simple piece of file HOT 2
- Easy Guide HOT 3
- Support for pattern matching (Ruby 2.7+)
- Unable to set CSH segment HOT 2
- non-deterministic machine state revisitied HOT 4
- problems customizing a transaction set HOT 3
- Transaction splitting using notes/split.rb script: out of date? HOT 3
- 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
- Segment ST Does not occur HOT 2
- Parse EDI 850 ERROR HOT 1
- Accept Tempfile in Stupidedi::Reader.build HOT 1
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.