Sha256: 7c62db09cfad0aa9f1f205e7b7e18585e6f07154fe34d6674aa9fee747aa9687

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 455
    # - Name: Responsible Agency Code
    # - Type: ID
    # - Min/Max: 1/2
    # - Description: Code used in conjunction with Data Element 480 to identify the issuer of the standard
    #
    # ### Notes:
    #
    # - Default value: `"X"`
    class E455 < Eddy::Element::ID

      # @param val [String] ("X")
      # @param req [String] (nil)
      # @param ref [String] (nil)
      # @return [void]
      def initialize(val: "X", req: nil, ref: nil)
        @id = "455"
        @name = "Responsible Agency Code"
        @description = "Code used in conjunction with Data Element 480 to identify the issuer of the standard"
        super(
          min: 1,
          max: 2,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "T", # Transportation Data Coordinating Committee (TDCC)
          "X", # Accredited Standards Committee X12
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/manual/455.responsible_agency_code.rb
eddy-0.5.0 lib/definitions/elements/manual/455.responsible_agency_code.rb
eddy-0.4.0 lib/definitions/elements/manual/455.responsible_agency_code.rb
eddy-0.3.0 lib/definitions/elements/manual/455.responsible_agency_code.rb