Skip to content

Commit

Permalink
Remove elements in B10 and L11 not defined in 4010 (GH-12)
Browse files Browse the repository at this point in the history
  • Loading branch information
kputnam committed Jun 17, 2013
1 parent 92de0d0 commit 3c5ddbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 9 additions & 3 deletions lib/stupidedi/contrib/004010/guides/QM214.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ module Guides
r::Required, d::RepeatCount.bounded(1),
b::Element(e::Required, "Reference Identification"),
b::Element(e::Required, "Shipment Identification Number"),
b::Element(e::Required, "Standard Carrier Alpha Code")),
b::Element(e::Required, "Standard Carrier Alpha Code"),
b::Element(e::NotUsed, "Inquiry Request Number"),
b::Element(e::NotUsed, "Reference Identification Qualifier"),
b::Element(e::NotUsed, "Reference Identification"),
b::Element(e::NotUsed, "Yes/No Condition or Response Code")),

b::Segment(30, s::L11, "Business Instruction and Reference Number",
r::Situational, d::RepeatCount.bounded(300),
b::Element(e::Situational, "Reference Identification"),
b::Element(e::Situational, "Reference Identification Qualifier")),
b::Element(e::Situational, "Reference Identification Qualifier"),
b::Element(e::Situational, "Description")),

d::LoopDef.build("0100",
d::RepeatCount.bounded(10),
Expand Down Expand Up @@ -98,7 +103,8 @@ module Guides
b::Segment(150, s::L11, "Business Instructions and Reference Number",
r::Situational, d::RepeatCount.bounded(10),
b::Element(e::Situational, "Reference Identification"),
b::Element(e::Required, "Reference Identification Qualifier")),
b::Element(e::Required, "Reference Identification Qualifier"),
b::Element(e::Required, "Description")),

b::Segment(200, s::AT8, "Shipment Weight, Packaging and Quantity Data",
r::Situational, d::RepeatCount.bounded(10),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ module SegmentDefs
e::E128 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E127 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E1073.simple_use(r::Optional, s::RepeatCount.bounded(1)),
e::E373 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E337 .simple_use(r::Relational, s::RepeatCount.bounded(1)),

SyntaxNotes::R.build(1, 6),
SyntaxNotes::E.build(1, 5),
SyntaxNotes::P.build(5, 6),
SyntaxNotes::P.build(8, 9))
SyntaxNotes::P.build(5, 6))

end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ module SegmentDefs
e::E127 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E128 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E352 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
e::E373 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
e::E1073.simple_use(r::Optional, s::RepeatCount.bounded(1)),

SyntaxNotes::R.build(1,3),
SyntaxNotes::P.build(1,2))
Expand Down

0 comments on commit 3c5ddbf

Please sign in to comment.