Sha256: 4ba62d0253903f8495dc7e896eeb2250ff2677ce75574851c41e0bb330e9f76e

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: I01
    # - Name: Authorization Information Qualifier
    # - Type: ID
    # - Min/Max: 2/2
    # - Description: Code to identify the type of information in the Authorization Information
    #
    # ### Notes:
    #
    # - Default value: `"00"`
    class I01 < Eddy::Element::ID

      # @param val [String] ("00")
      # @param req [String] (nil)
      # @param ref [String] (nil)
      # @return [void]
      def initialize(val: "00", req: nil, ref: nil)
        @id = "I01"
        @name = "Authorization Information Qualifier"
        @description = "Code to identify the type of information in the Authorization Information"
        super(
          min: 2,
          max: 2,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "00", # No Authorization Information Present (No Meaningful Information in I02)
          "01", # UCS Communications ID
          "02", # EDX Communications ID
          "03", # Additional Data Identification
          "04", # Rail Communications ID
          "05", # Department of Defense (DoD) Communication Identifier
          "06", # United States Federal Government Communication Identifier
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/manual/i/I01.authorization_information_qualifier.rb
eddy-0.5.0 lib/definitions/elements/manual/i/I01.authorization_information_qualifier.rb
eddy-0.4.0 lib/definitions/elements/manual/i/I01.authorization_information_qualifier.rb
eddy-0.3.0 lib/definitions/elements/manual/i/I01.authorization_information_qualifier.rb