module Stupidedi
  module Versions
    module FunctionalGroups
      module ThirtyTen
        module SegmentDefs

          s = Schema
          e = ElementDefs
          r = ElementReqs

          PID = s::SegmentDef.build(:PID, "Product/Item Description",
            "To describe a product or process in coded or free-form format",
            e::E349 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
            e::E750 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            e::E559 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
            e::E751 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
            e::E352 .simple_use(r::Relational, s::RepeatCount.bounded(1)))
            # e::E752 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            # e::E822 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            # e::E1073.simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            # e::E819 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),

            # SyntaxNotes::C.build(4, 3),
            # SyntaxNotes::R.build(4, 5),
            # SyntaxNotes::C.build(7, 3),
            # SyntaxNotes::C.build(8, 4),
            # SyntaxNotes::C.build(9, 5))

        end
      end
    end
  end
end
